NetworkManager/src/core/supplicant
Thomas Haller 07c6f933d1
wifi: fix aggressively roaming (background Wi-Fi scanning) based on seen-bssids
"wifi.seen-bssids" looks like a regular property, but it is not. Unlike
almost all other properties, it does not contain user configuration,
rather it gets filled by the daemon.

The values are thus stored in "/var/lib/NetworkManager/seen-bssids"
file, and the daemon maintains the values separately from the profile.
Only before exporting the profile on D-Bus, the value gets merged (see
NM_SETTINGS_CONNECTION_GET_PRIVATE(self)->>getsettings_cached and
nm_connection_to_dbus_full().

Hence, looking at nm_setting_wireless_get_num_seen_bssids() is not
working. Fix that.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1253

Fixes: 0f3203338c ('wifi: roam aggressively if we on a multi-AP network')

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1577
2023-03-22 17:15:54 +01:00
..
tests wifi: fix aggressively roaming (background Wi-Fi scanning) based on seen-bssids 2023-03-22 17:15:54 +01:00
nm-supplicant-config.c wifi: fix aggressively roaming (background Wi-Fi scanning) based on seen-bssids 2023-03-22 17:15:54 +01:00
nm-supplicant-config.h wifi: fix aggressively roaming (background Wi-Fi scanning) based on seen-bssids 2023-03-22 17:15:54 +01:00
nm-supplicant-interface.c glib-aux: drop duplicate _nm_dbus_error_has_name() for nm_dbus_error_is() 2022-11-14 08:04:16 +01:00
nm-supplicant-interface.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nm-supplicant-manager.c glib-aux: drop duplicate _nm_dbus_error_has_name() for nm_dbus_error_is() 2022-11-14 08:04:16 +01:00
nm-supplicant-manager.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nm-supplicant-settings-verify.c supplicant: add NMSetting8021xAuthFlags for TLS v1.3 / enable a version 2022-11-08 07:15:14 +01:00
nm-supplicant-settings-verify.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-supplicant-types.h supplicant: add BIP interface capability 2022-04-04 10:43:24 +02:00