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 767918 - Request periodic scans while WiFi list is open
Request periodic scans while WiFi list is open
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: network-indicator
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 732651 771332 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-06-21 17:51 UTC by Dan Williams
Modified: 2018-02-21 12:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0001-network-request-periodic-scans-while-the-WiFi-list-i.patch (2.22 KB, patch)
2016-06-21 17:52 UTC, Dan Williams
none Details | Review
0001-network-request-periodic-scans-while-the-WiFi-list-i.patch (2.12 KB, patch)
2016-06-27 15:46 UTC, Dan Williams
committed Details | Review

Description Dan Williams 2016-06-21 17:51:19 UTC
NM upstream would like to reduce periodic scanning, and that means that clients should start implementing scan requests themselves while their wifi lists are open if they use that model.  Similar to how the Windows and macOS WiFi lists update themselves when they are open.

Once enough clients have been updated (eg, nm-applet, gnome-shell, KDE, geoclue, etc) we can reduce periodic scanning in NM itself.
Comment 1 Dan Williams 2016-06-21 17:52:50 UTC
Created attachment 330148 [details] [review]
0001-network-request-periodic-scans-while-the-WiFi-list-i.patch
Comment 2 Dan Williams 2016-06-21 17:53:30 UTC
A further enhancement would be to show a spinner or something while the scan is happening, but NM doesn't yet expose a "now scanning" property for wifi devices.
Comment 3 Florian Müllner 2016-06-21 17:58:42 UTC
Should we mark bug 732651 as a duplicate?
Comment 4 Florian Müllner 2016-06-21 18:04:04 UTC
Review of attachment 330148 [details] [review]:

::: js/ui/status/network.js
@@ +795,3 @@
+    _onScanTimeout: function() {
+        this._requestAndScheduleScan();
+        return GLib.SOURCE_REMOVE;

Not sure this or
  this._device.request_scan_simple(null);
  return GLib.SOURCE_CONTINUE;
is more obvious ...
Comment 5 Dan Williams 2016-06-27 15:43:40 UTC
*** Bug 732651 has been marked as a duplicate of this bug. ***
Comment 6 Dan Williams 2016-06-27 15:46:21 UTC
Created attachment 330450 [details] [review]
0001-network-request-periodic-scans-while-the-WiFi-list-i.patch

Ok, how about this then?
Comment 7 Florian Müllner 2016-06-27 15:48:01 UTC
Review of attachment 330450 [details] [review]:

LGTM
Comment 8 Florian Müllner 2016-09-12 23:32:25 UTC
*** Bug 771332 has been marked as a duplicate of this bug. ***
Comment 9 Michael Catanzaro 2016-12-20 17:04:28 UTC
(In reply to Dan Williams from comment #0)
> Once enough clients have been updated (eg, nm-applet, gnome-shell, KDE,
> geoclue, etc) we can reduce periodic scanning in NM itself.

Did you file a bug for gnome-control-center or should I?
Comment 10 Bastien Nocera 2018-02-20 15:07:39 UTC
(In reply to Michael Catanzaro from comment #9)
> (In reply to Dan Williams from comment #0)
> > Once enough clients have been updated (eg, nm-applet, gnome-shell, KDE,
> > geoclue, etc) we can reduce periodic scanning in NM itself.
> 
> Did you file a bug for gnome-control-center or should I?

In the end nobody did, and we only recently found it we should have been doing this. Bug was filed as:
https://bugzilla.gnome.org/show_bug.cgi?id=793647

In which version of NetworkManager was the change implemented?
Comment 11 Bastien Nocera 2018-02-21 12:06:55 UTC
(In reply to Bastien Nocera from comment #10)
> In which version of NetworkManager was the change implemented?

Answering my own question, it was implemented in NetworkManager 1.10:
* Background scanning is now disabled for non-WPA-Enterprise Wi-Fi networks.