summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-04-27 08:03:38 +0200
committerThomas Haller <thaller@redhat.com>2020-04-28 18:35:59 +0200
commita7476ff082c6f1c13c46447b61360093f4aa82d1 (patch)
tree6564b8d197192ba7aa318f2ddb231b71413e02f9
parentb50702775f1b7a56ad81fe9be58294a29e805c8f (diff)
downloadNetworkManager-a7476ff082c6f1c13c46447b61360093f4aa82d1.tar.gz
supplicant: log changes to max-scan-ssids of NMSupplicantInterface
-rw-r--r--src/supplicant/nm-supplicant-interface.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/supplicant/nm-supplicant-interface.c b/src/supplicant/nm-supplicant-interface.c
index 099c3bf2ca..700563624a 100644
--- a/src/supplicant/nm-supplicant-interface.c
+++ b/src/supplicant/nm-supplicant-interface.c
@@ -1204,13 +1204,18 @@ parse_capabilities (NMSupplicantInterface *self, GVariant *capabilities)
if (g_variant_lookup (capabilities, "MaxScanSSID", "i", &max_scan_ssids)) {
/* We need active scan and SSID probe capabilities to care about MaxScanSSIDs */
- if (max_scan_ssids > 0 && have_active && have_ssid) {
+ if ( max_scan_ssids > 0
+ && have_active
+ && have_ssid) {
/* wpa_supplicant's NM_WPAS_MAX_SCAN_SSIDS value is 16, but for speed
* and to ensure we don't disclose too many SSIDs from the hidden
* list, we'll limit to 5.
*/
- priv->max_scan_ssids = CLAMP (max_scan_ssids, 0, 5);
- _LOGD ("supports %d scan SSIDs", priv->max_scan_ssids);
+ max_scan_ssids = CLAMP (max_scan_ssids, 0, 5);
+ if (max_scan_ssids != priv->max_scan_ssids) {
+ priv->max_scan_ssids = max_scan_ssids;
+ _LOGD ("supports %d scan SSIDs", priv->max_scan_ssids);
+ }
}
}
}