Wi-Fi Authenticated and then Disconnected with DEAUTH_LEAVING

To connect a laptop to a Wi-Fi network I was using one of the USB devices.

I found that the network could be configured but the connection wasn’t being made.

To understand why the computer was failing to connect to the Wi-Fi iI looked at the syslog using

tail -f /var/log/messages

I found that it was authenticating and then aborting the authentication with the reason DEAUTH_LEAVING.

aborting authentication with 22:11:bb:ee:77:99 by local choice (Reason: 3=DEAUTH_LEAVING)

Here’s the messages log:

Jan 17 07:38:10 comp56 NetworkManager[447]: <info>  [1484638690.0736] Config: added 'ssid' value 'mywifi'
Jan 17 07:38:10 comp56 NetworkManager[447]: <info>  [1484638690.0736] Config: added 'scan_ssid' value '1'
Jan 17 07:38:10 comp56 NetworkManager[447]: <info>  [1484638690.0737] Config: added 'key_mgmt' value 'WPA-PSK'
Jan 17 07:38:10 comp56 NetworkManager[447]: <info>  [1484638690.0737] Config: added 'psk' value '<omitted>'
Jan 17 07:38:10 comp56 NetworkManager[447]: <info>  [1484638690.0769] sup-iface[0x80ccb680,aax000f79546295]: config: set interface ap_scan to 1
Jan 17 07:38:10 comp56 NetworkManager[447]: <info>  [1484638690.2228] device (aax000f79546295): supplicant interface state: inactive -> scanning
Jan 17 07:38:11 comp56 kernel: [  451.709320] aax000f79546295: authenticate with 22:11:bb:ee:77:99
Jan 17 07:38:11 comp56 NetworkManager[447]: <info>  [1484638691.1161] device (aax000f79546295): supplicant interface state: scanning -> authenticating
Jan 17 07:38:11 comp56 kernel: [  451.752904] aax000f79546295: send auth to 22:11:bb:ee:77:99 (try 1/3)
Jan 17 07:38:11 comp56 kernel: [  451.755677] aax000f79546295: authenticated
Jan 17 07:38:16 comp56 kernel: [  456.754570] aax000f79546295: aborting authentication with 22:11:bb:ee:77:99 by local choice (Reason: 3=DEAUTH_LEAVING)
Jan 17 07:38:16 comp56 NetworkManager[447]: <info>  [1484638696.1383] device (aax000f79546295): supplicant interface state: authenticating -> disconnected
Jan 17 07:38:26 comp56 NetworkManager[447]: <info>  [1484638706.1465] device (aax000f79546295): supplicant interface state: disconnected -> scanning
Jan 17 07:38:26 comp56 kernel: [  467.617419] aax000f79546295: authenticate with 22:11:bb:ee:77:99
Jan 17 07:38:27 comp56 NetworkManager[447]: <info>  [1484638707.0208] device (aax000f79546295): supplicant interface state: scanning -> authenticating
Jan 17 07:38:27 comp56 kernel: [  467.657640] aax000f79546295: send auth to 22:11:bb:ee:77:99 (try 1/3)

lsusb to find the chipset.

In my case it was RTL8188CUS.

Bus 001 Device 004: ID — Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

I found a number of articles on the Internet which reference the GitHub rtl8192cu-fixes chipset driver by pvaret.

Here’s the one which I followed:

https://sites.google.com/site/easylinuxtipsproject/reserve-7