After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 701342 - WiFi periodically disconects and reconnects every few minutes
WiFi periodically disconects and reconnects every few minutes
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: Wi-Fi
0.9.8
Other Linux
: Normal major
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-05-31 10:54 UTC by icarusthecow
Modified: 2017-10-04 15:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
debug log of Network Manager while error occurs (118.95 KB, application/gzip)
2013-05-31 11:44 UTC, icarusthecow
  Details
wpa_supplicant log during disruption (820.61 KB, application/gzip)
2013-06-03 10:38 UTC, icarusthecow
  Details
add logic to the configure.ac to check for wpa_supplicant >= 1.1 (1.19 KB, patch)
2013-06-04 19:57 UTC, icarusthecow
none Details | Review

Description icarusthecow 2013-05-31 10:54:59 UTC
After connecting to the secured wireless (PEAP/MSCHAPv2), the connection is very jerky, with occasional hanging when loading a webpage. then every 5-15 minutes or so, the connection completely drops, and I have to restart it manually or wait a few minutes for it to reconnect itself.
Comment 1 icarusthecow 2013-05-31 11:44:47 UTC
Created attachment 245719 [details]
debug log of Network Manager while error occurs
Comment 2 icarusthecow 2013-06-01 17:43:03 UTC
I was scanning the logs and it looks like at the time of the issue its repeatedly roaming between access points. This should be atyptical and might be a result of some heuristic change. I think the roaming is was causing the disruption of connectivity. I plan to pull down the git code and see if i can bisect the problem to narrow down the issue
Comment 3 Jiri Klimes 2013-06-03 09:39:52 UTC
The frequent roaming is probably caused by low signal levels and not optimal wpa_supplicant decisions on roaming (trying to roam even if current signal is still good).
What wpa_supplicant version do you use? Could you get logs out of it?
https://live.gnome.org/NetworkManager/Debugging/#wpa_supplicant07

$ nmcli dev wifi list
Comment 4 icarusthecow 2013-06-03 10:38:49 UTC
Created attachment 245907 [details]
wpa_supplicant log during disruption

This is the wpa_supplicant log during the issue. Its possible that its a configuration error in wpa_supplicant causing constant reauth, and thats probably the likely cause, but I think it reflects some change in networkmanager because i dont get the issue with older versions, and havent changed the wpa_supplicant version (its v1.0 currently). So there was probably some change in how NetworkManager configures wpa_supplicant
Comment 5 icarusthecow 2013-06-04 19:57:17 UTC
Created attachment 246030 [details] [review]
add logic to the configure.ac to check for wpa_supplicant >= 1.1

Using wpa_supplicant 1.1 the issue goes away. Since wpa_supplicant 1.1 is listed as current stable, i see no reason not to require it as a dependency explicitly for now. In order to prevent issues on systems that haven't updated from 1.0 yet.
Comment 6 Dan Williams 2013-10-01 19:47:30 UTC
The problem is a bug in wpa_supplicant < 1.1, as you've discovered:

1370249525.914596: RSN: Flush PMKSA cache entry for 00:1f:45:96:eb:28
1370249525.914600: nl80211: Delete PMKID for 00:1f:45:96:eb:28
1370249525.914634: wlan0: RSN: removed current PMKSA entry
1370249525.914638: wpa_driver_nl80211_deauthenticate(addr=00:1f:45:96:eb:28 reason_code=1)

the supplicant is mistakenly removing the cache entry for the currently associated access point.

While the patch is well-intentioned, it also adds a dependency on wpa_supplicant during the build process, which isn't something that is required to either build or run NetworkManager.  So for that reason, the patch should not error if the supplicant cannot be found at configure time.

Second, the patch should at least mention *why* wpa_supplicant 1.1 or higher is required, with something like "wpa_supplicant 1.1 or higher is required due to bugs in older versions of the supplicant".
Comment 7 Beniamino Galvani 2017-10-04 15:14:14 UTC
Since wpa_supplicant 1.1 is quite old, I think we can reasonably expect that users have a higher version now. Therefore I'm closing this bug.