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 748593 - [review] dcbw/wifi-ap-list: use the supplicant's BSS list instead of tracking our own
[review] dcbw/wifi-ap-list: use the supplicant's BSS list instead of tracking...
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: Wi-Fi
unspecified
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks: nm-review
 
 
Reported: 2015-04-28 16:07 UTC by Dan Williams
Modified: 2015-05-06 20:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Williams 2015-04-28 16:07:17 UTC
NM has a bunch of logic to track the age of APs in the scan list and remove them when they haven't been seen for a while.  This doesn't work well when the machine is in motion, like walking or driving or on a train.

Since the supplicant already has all this logic to age APs, let's just use it.  We now push some AP aging properties to the supplicant (BSSExpireAge and BSSExpireCount) which will tell the supplicant to remove an AP when it either (a) hasn't been seen for 250 seconds or (b) hasn't been seen in the last two scans, whichever comes first.

Then there's a bunch of cleanups in nm-wifi-ap.c to remove unused code.
Comment 1 Beniamino Galvani 2015-04-29 16:08:24 UTC
> wifi: follow supplicant's scan list instead of managing AP lifetime internally

-	if (priv->scanlist_cull_id) {
-		g_source_remove (priv->scanlist_cull_id);
-		priv->scanlist_cull_id = 0;
+	if (priv->ap_dump_id) {
+		g_source_remove (priv->ap_dump_id);
+		priv->ap_dump_id = 0;
 	}

Not important, but since yesterday there is a nm_clear_g_source () for this :)
Comment 2 Dan Williams 2015-04-30 15:14:22 UTC
Fixed and repushed with one additional commit to remove an unused platform wifi function.
Comment 3 Beniamino Galvani 2015-05-05 13:00:46 UTC
Seems good to me.
Comment 4 Thomas Haller 2015-05-06 14:10:31 UTC
LGTM, pushed two minor fixups
Comment 5 Dan Williams 2015-05-06 20:25:37 UTC
Squashed and merged to master.