You are not logged in.

#1 2018-09-21 01:37:20

corellon
Member
Registered: 2015-10-31
Posts: 5

[SOLVED] Can't connect to wifi AP's via USB adapter.

...for the use by the author while editing...


Introduction:

My problem is well summarized by the title, but I can expand anyway.

In case its useful to diagnosing the problem, HERE is a link to the Wifi adapter's driver page. I didn't use this driver, as I believed there were other drivers in the AUR that could do the job. I believe I am (partially) justified in this belief by the fact that I'm able to scan for AP's using the Inamax adapter. I do not believe my motherboard, the Asus Prime Z270-A, has a wifi adapter.

Below is the 'dkms status' of the kernel module I ended up installing. Link to rtl8822bu's AUR page HERE, for your convenience.

As a side note, I was able to connect to the AP in question with my Pixel 2 smartphone, no issues. I did not have to provide encryption information when connecting from my phone, so I'm assuming this will also be the case for my linux desktop in question...

I am currently connect to the internet on the device in question via ethernet cable, but I'd still like to get wifi working anyway.


dkms status:

# dkms status
rtl8822bu, 5.2.4_20170919, 4.18.9-arch1-1-ARCH, x86_64: installed

$ ip a:

...
5: wlp0s20f0u2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 42:0d:4e:e4:14:fb brd ff:ff:ff:ff:ff:ff

# iw dev wlp0s20f0u2 scan | less:

BSS 18:d0:71:b9:ae:e7(on wlp0s20f0u2)
        TSF: 9448736111 usec (0d, 02:37:28)
        freq: 2437
        beacon interval: 100 TUs
        capability: ESS ShortSlotTime RadioMeasure (0x1401)
        signal: -73.00 dBm
        last seen: 0 ms ago
        SSID: Omni_Guest_Lodge
        Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0
        DS Parameter set: channel 6
        ERP: <no flags>
        ERP D4.0: <no flags>
        Extended supported rates: 6.0 9.0 12.0 48.0
        BSS Load:
                 * station count: 0
                 * channel utilisation: 6/255
                 * available admission capacity: 0 [*32us]
        HT capabilities:
                Capabilities: 0x19ad
                        RX LDPC
                        HT20
                        SM Power Save disabled
                        RX HT20 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 7935 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 4 usec (0x05)
                HT RX MCS rate indexes supported: 0-23
                HT TX MCS rate indexes are undefined
        HT operation:
                 * primary channel: 6
                 * secondary channel offset: no secondary
                 * STA channel width: 20 MHz
                 * RIFS: 1
                 * HT protection: no
                 * non-GF present: 0
                 * OBSS non-GF present: 0
                 * dual beacon: 0
                 * dual CTS protection: 0
                 * STBC beacon: 0
                 * L-SIG TXOP Prot: 0
                 * PCO active: 0
                 * PCO phase: 0
        Extended capabilities:
                 * Extended Channel Switching
                 * BSS Transition
                 * Operating Mode Notification
        WMM:     * Parameter version 1
                 * u-APSD
                 * BE: CW 15-63, AIFSN 3
                 * BK: CW 15-1023, AIFSN 7
                 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
                 * VO: CW 3-7, AIFSN 1, TXOP 1504 usec
...

$ lsusb:

...
Bus 001 Device 006: ID 0bda:b812 Realtek Semiconductor Corp.
...

Some (relevant?) dmesg information. $ dmesg:

[ 5370.198867] usb 1-2: new high-speed USB device number 6 using xhci_hcd
[ 5370.339372] usb 1-2: New USB device found, idVendor=0bda, idProduct=b812, bcdDevice= 2.10
[ 5370.339379] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5370.339383] usb 1-2: Product: USB3.0 802.11ac 1200M Adapter
[ 5370.339386] usb 1-2: Manufacturer: Realtek
[ 5370.339390] usb 1-2: SerialNumber: 123456
[ 5370.489715] audit: type=1130 audit(1537470881.106:40): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 5370.490051] rtl88x2bu 1-2:1.0 wlp0s20f0u2: renamed from wlan0

Attempt to connect with 'iw':

# iw dev wlp0s20f0u2 connect "Omni_Guest_Lodge"
command failed: Operation already in progress (-114)
# iw dev wlp0s20f0u2 link
Not connected.

Attempt with 'wpa_cli':

I followed the steps detailed in the arch wiki, made sure to use:

set_network 0 key_mgmt NONE

... nothing. Attempted dhcpcd afterwards just in case:

# dhcpcd interface

... nothing.


Conclusion:

Any guesses? Despite the length of time I've used arch, I still consider myself a newbie. For this reason, If you believe I've missed something obvious (I wouldn't be surprised) or you'd like me to provide additional information I'd be happy to oblige. Just ask!


...for the use by the author while editing...

Last edited by corellon (2018-09-21 03:37:59)

Offline

#2 2018-09-21 02:38:16

corellon
Member
Registered: 2015-10-31
Posts: 5

Re: [SOLVED] Can't connect to wifi AP's via USB adapter.

Attempting to connect via 'wpa_supplicant' proper (not 'wpa_cli') seems to have yielded some results.

This is the wpa_supplicant command I entered. It seems to be what may have finally triggered a connection to the AP.

# wpa_supplicant -B -i wlp0s20f0u2 -D wext,nl80211 -c /etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument

/etc/wpa_supplicant/wpa_supplicant.conf:

network={
        ssid="Omni_Guest_Lodge"
        key_mgmt=NONE
}

Last edited by corellon (2018-09-21 03:22:43)

Offline

#3 2018-09-21 02:54:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Can't connect to wifi AP's via USB adapter.

corellon wrote:
...error messages I can't recall...

That is really unhelpful. Putting it in code blocks is just perverse. Paste the full error: https://bbs.archlinux.org/viewtopic.php?id=57855


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2018-09-21 03:11:17

corellon
Member
Registered: 2015-10-31
Posts: 5

Re: [SOLVED] Can't connect to wifi AP's via USB adapter.

jasonwryan wrote:
corellon wrote:
...error messages I can't recall...

That is really unhelpful. Putting it in code blocks is just perverse. Paste the full error: https://bbs.archlinux.org/viewtopic.php?id=57855

Noted.

Offline

Board footer

Powered by FluxBB