Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Unable to authenticate w/ AWUS036ACH and RTL88XXAU
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
eihli
n00b
n00b


Joined: 26 May 2021
Posts: 2

PostPosted: Wed May 26, 2021 12:25 am    Post subject: [SOLVED] Unable to authenticate w/ AWUS036ACH and RTL88XXAU Reply with quote

I'm getting stuck in the following loop.

Code:

May 25 19:11:36 [NetworkManager] <info>  [1621987896.9498] device (wlp0s20f0u6u2): supplicant interface state: disconnected -> inactive
May 25 19:11:36 [NetworkManager] <info>  [1621987896.9517] device (wlp0s20f0u6u2): supplicant interface state: inactive -> disconnected
May 25 19:11:40 [NetworkManager] <info>  [1621987900.6050] device (wlp0s20f0u6u2): supplicant interface state: disconnected -> associating
May 25 19:11:40 [NetworkManager] <info>  [1621987900.7677] device (wlp0s20f0u6u2): supplicant interface state: associating -> associated
May 25 19:11:44 [NetworkManager] <info>  [1621987904.7775] device (wlp0s20f0u6u2): supplicant interface state: associated -> disconnected
May 25 19:11:44 [NetworkManager] <info>  [1621987904.8833] device (wlp0s20f0u6u2): supplicant interface state: disconnected -> scanning
May 25 19:11:58 [NetworkManager] <info>  [1621987918.3364] device (wlp0s20f0u6u2): supplicant interface state: scanning -> associating
May 25 19:11:58 [NetworkManager] <info>  [1621987918.4733] device (wlp0s20f0u6u2): supplicant interface state: associating -> associated
May 25 19:12:02 [NetworkManager] <warn>  [1621987922.0632] device (wlp0s20f0u6u2): Activation: (wifi) association took too long
May 25 19:12:02 [NetworkManager] <info>  [1621987922.0633] device (wlp0s20f0u6u2): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
May 25 19:12:02 [NetworkManager] <warn>  [1621987922.0661] device (wlp0s20f0u6u2): Activation: (wifi) asking for new secrets
May 25 19:12:02 [NetworkManager] <info>  [1621987922.3776] device (wlp0s20f0u6u2): supplicant interface state: associated -> disconnected
May 25 19:12:08 [dbus-daemon] [session uid=1000 pid=4810] Activating service name='ca.desrt.dconf' requested by ':1.20' (uid=1000 pid=4955 comm="nm-applet ")
May 25 19:12:08 [NetworkManager] <info>  [1621987928.6643] device (wlp0s20f0u6u2): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
May 25 19:12:08 [NetworkManager] <info>  [1621987928.6656] device (wlp0s20f0u6u2): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
May 25 19:12:08 [NetworkManager] <info>  [1621987928.6665] device (wlp0s20f0u6u2): Activation: (wifi) connection 'Accio Internet' has security, and secrets exist.  No new secrets needed.
May 25 19:12:08 [NetworkManager] <info>  [1621987928.6666] Config: added 'ssid' value 'Accio Internet'
May 25 19:12:08 [NetworkManager] <info>  [1621987928.6666] Config: added 'scan_ssid' value '1'
May 25 19:12:08 [NetworkManager] <info>  [1621987928.6666] Config: added 'bgscan' value 'simple:30:-70:86400'
May 25 19:12:08 [NetworkManager] <info>  [1621987928.6666] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK'
May 25 19:12:08 [NetworkManager] <info>  [1621987928.6666] Config: added 'auth_alg' value 'OPEN'
May 25 19:12:08 [NetworkManager] <info>  [1621987928.6666] Config: added 'psk' value '<hidden>'
May 25 19:12:08 [dbus-daemon] [session uid=1000 pid=4810] Successfully activated service 'ca.desrt.dconf'
May 25 19:12:08 [NetworkManager] <info>  [1621987928.6774] device (wlp0s20f0u6u2): supplicant interface state: disconnected -> scanning
May 25 19:12:12 [NetworkManager] <info>  [1621987932.4250] device (wlp0s20f0u6u2): supplicant interface state: scanning -> associating
May 25 19:12:12 [NetworkManager] <info>  [1621987932.5925] device (wlp0s20f0u6u2): supplicant interface state: associating -> associated
May 25 19:12:23 [NetworkManager] <info>  [1621987943.0043] device (wlp0s20f0u6u2): supplicant interface state: associated -> disconnected
May 25 19:12:23 [NetworkManager] <info>  [1621987943.1095] device (wlp0s20f0u6u2): supplicant interface state: disconnected -> scanning
May 25 19:12:34 [NetworkManager] <warn>  [1621987954.0640] device (wlp0s20f0u6u2): Activation: (wifi) association took too long


I followed https://wiki.gentoo.org/wiki/AC1200_Wireless_Adapters to the best of my knowledge. Except I couldn't install https://github.com/abperiasamy/rtl8812AU_8821AU_linux. When I tried to `make`, I got an error:

Code:

/home/eihli/code/rtl8812AU_8821AU_linux-master/os_dep/osdep_service.c:2015:12: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
 2015 |    oldfs = get_fs();
      |            ^~~~~~
/home/eihli/code/rtl8812AU_8821AU_linux-master/os_dep/osdep_service.c:37:19: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
   37 |  #define get_ds() KERNEL_DS


So instead I used https://github.com/aircrack-ng/rtl8812au

As far as I can tell, when I plug the device in, everything is detected and good-to-go. This is the tail of `/var/log/everything/current` when I plug it in.

Code:

May 25 19:18:22 [NetworkManager] <info>  [1621988302.9820] radio killswitch /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6.2/1-6.2:1.0/ieee80211/phy1/rfkill3 disappeared
May 25 19:18:28 [kernel] [  902.239743] usb 1-6.2: new high-speed USB device number 15 using xhci_hcd
May 25 19:18:28 [kernel] [  902.370373] usb 1-6.2: New USB device found, idVendor=0bda, idProduct=8812, bcdDevice= 0.00
May 25 19:18:28 [kernel] [  902.370386] usb 1-6.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 25 19:18:28 [kernel] [  902.370391] usb 1-6.2: Product: 802.11n NIC
May 25 19:18:28 [kernel] [  902.370395] usb 1-6.2: Manufacturer: Realtek
May 25 19:18:28 [kernel] [  902.370398] usb 1-6.2: SerialNumber: 123456
May 25 19:18:28 [NetworkManager] <info>  [1621988308.5655] device (wlan0): driver supports Access Point (AP) mode
May 25 19:18:28 [NetworkManager] <info>  [1621988308.5659] manager: (wlan0): new 802.11 Wi-Fi device (/org/freedesktop/NetworkManager/Devices/6)
May 25 19:18:28 [mtp-probe] checking bus 1, device 15: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6.2"_
May 25 19:18:28 [mtp-probe] bus: 1, device: 15 was not an MTP device_
May 25 19:18:28 [kernel] [  902.493112] usb 1-6.2: 88XXau 00:c0:ca:ac:34:d5 hw_info[d7]
May 25 19:18:29 [NetworkManager] <info>  [1621988309.9017] rfkill4: found Wi-Fi radio killswitch (at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6.2/1-6.2:1.0/ieee80211/phy2/rfkill4) (driver rtl88XXau)
May 25 19:18:29 [kernel] [  903.831185] rtl88XXau 1-6.2:1.0 wlp0s20f0u6u2: renamed from wlan0
May 25 19:18:29 [NetworkManager] <info>  [1621988309.9711] device (wlan0): interface index 5 renamed iface from 'wlan0' to 'wlp0s20f0u6u2'
May 25 19:18:29 [NetworkManager] <info>  [1621988309.9729] device (wlp0s20f0u6u2): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
May 25 19:18:29 [mtp-probe] checking bus 1, device 15: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6.2"_
May 25 19:18:29 [mtp-probe] bus: 1, device: 15 was not an MTP device_
May 25 19:18:30 [NetworkManager] <info>  [1621988310.4323] device (wlp0s20f0u6u2): set-hw-addr: set MAC address to C6:F9:4B:93:75:48 (scanning)
May 25 19:18:30 [kernel] [  904.359487] IPv6: ADDRCONF(NETDEV_CHANGE): wlp0s20f0u6u2: link becomes ready
May 25 19:18:30 [NetworkManager] <info>  [1621988310.6584] device (wlp0s20f0u6u2): supplicant interface state: internal-starting -> disconnected
May 25 19:18:30 [NetworkManager] <info>  [1621988310.6585] device (wlp0s20f0u6u2): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
May 25 19:18:32 [ModemManager] <info>  [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6.2': not supported by any plugin_


The module shows up when I do an `lsmod`:

Code:

eihli@impatico ~/code/rtl8812AU_8821AU_linux-master $ lsmod | grep 88
88XXau               2125824  0


When I try connecting with `wpa_supplicant`, I get stuck in the following loop that I assume parallels the NetworkManager loop above.

Code:

wlp0s20f0u6u2: CTRL-EVENT-STARTED-CHANNEL-SWITCH freq=5745 ht_enabled=1 ch_offset=1 ch_width=40 MHz cf1=5755 cf2=0
wlp0s20f0u6u2: Associated with 18:e8:29:65:86:f6
wlp0s20f0u6u2: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp0s20f0u6u2: CTRL-EVENT-DISCONNECTED bssid=18:e8:29:65:86:f6 reason=2
wlp0s20f0u6u2: CTRL-EVENT-ASSOC-REJECT status_code=1
wlp0s20f0u6u2: Trying to associate with 18:e8:29:64:86:f6 (SSID='Accio Internet' freq=2437 MHz)


I see "reason=2" is "Previous authentication no longer valid" https://www.toomanyatoms.com/computer/disconnection_codes.html, but I couldn't follow that trail to any particular help.

I wish I knew what info would help debug this. Any ideas are much appreciated.


Last edited by eihli on Thu May 27, 2021 8:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
eihli
n00b
n00b


Joined: 26 May 2021
Posts: 2

PostPosted: Thu May 27, 2021 8:21 pm    Post subject: Reply with quote

The problem appears to be an issue with the 5.12 kernel. This patch fixed the issue.

https://github.com/aircrack-ng/rtl8812au/pull/857
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum