mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 22:48:01 +02:00
supplicant: log changes to max-scan-ssids of NMSupplicantInterface
(cherry picked from commit a7476ff082)
This commit is contained in:
parent
fa5434fa1c
commit
8c2b282b11
1 changed files with 8 additions and 3 deletions
|
|
@ -1204,13 +1204,18 @@ parse_capabilities (NMSupplicantInterface *self, GVariant *capabilities)
|
||||||
|
|
||||||
if (g_variant_lookup (capabilities, "MaxScanSSID", "i", &max_scan_ssids)) {
|
if (g_variant_lookup (capabilities, "MaxScanSSID", "i", &max_scan_ssids)) {
|
||||||
/* We need active scan and SSID probe capabilities to care about MaxScanSSIDs */
|
/* 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
|
/* 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
|
* and to ensure we don't disclose too many SSIDs from the hidden
|
||||||
* list, we'll limit to 5.
|
* list, we'll limit to 5.
|
||||||
*/
|
*/
|
||||||
priv->max_scan_ssids = CLAMP (max_scan_ssids, 0, 5);
|
max_scan_ssids = CLAMP (max_scan_ssids, 0, 5);
|
||||||
_LOGD ("supports %d scan SSIDs", priv->max_scan_ssids);
|
if (max_scan_ssids != priv->max_scan_ssids) {
|
||||||
|
priv->max_scan_ssids = max_scan_ssids;
|
||||||
|
_LOGD ("supports %d scan SSIDs", priv->max_scan_ssids);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue