Recently acquired my first laptop and the world of wireless access is all rather foreign to me.
I’m getting apparently quite random authentication failures when connecting to a wireless router, and am fumbling around in the dark somewhat as to the exact cause.
(KDE, Network Manager, wpa_supplicant)
The driver in use is rtl8821ce from forum user Sauerland’s home repository.
Looking at the log for wpa_supplicant on a successful authentication I see the following:
1565812781.727495: wlan1: Trying to associate with 4c:38:d8:03:c1:9f (SSID='ORION-a-5G' freq=5220 MHz)
1565812781.790247: wlan1: Associated with 4c:38:d8:03:c1:9f
1565812781.790274: wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
1565812781.790315: wlan1: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=GB
1565812781.815898: wlan1: WPA: Key negotiation completed with 4c:38:d8:03:c1:9f [PTK=CCMP GTK=TKIP]
1565812781.815931: wlan1: CTRL-EVENT-CONNECTED - Connection to 4c:38:d8:03:c1:9f completed [id=0 id_str=]
On a failed authentication:
1565813819.717660: wlan1: Trying to associate with 4c:38:d8:03:c1:9f (SSID='ORION-a-5G' freq=5220 MHz)
1565813819.822618: wlan1: Associated with 4c:38:d8:03:c1:9f
1565813819.822655: wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
1565813819.822689: wlan1: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=GB
1565813823.869094: wlan1: CTRL-EVENT-DISCONNECTED bssid=4c:38:d8:03:c1:9f reason=2
1565813823.869144: wlan1: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
1565813823.869159: wlan1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="ORION-a-5G" auth_failures=1 duration=10 reason=WRONG_KEY
I note (if I’m interpreting correctly) that immediately before the key negotiation there is:
wlan1: CTRL-EVENT-DISCONNECTED bssid=4c:38:d8:03:c1:9f reason=2
I wonder what is “reason=2”, as that may give a clue… “googling” this didn’t turn up anything that seemed relevant.
When working there is no problem with the connection itself, the following fragment from “iwconfig” shows (I believe) the actual wireless link to be OK, that’s after some 60-70 minutes of use.
Link Quality=70/100 Signal level=31/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
I’ve discounted the signal level and quality by physically moving the laptop closer to the wireless access point, (quality and level then both approach 100/100), and I still see the random authentication failures.