NetworkManager/src/supplicant-manager
Jiří Klimeš 956577a246 wifi: emit NEW_BSS on ScanDone to update APs in Wi-Fi device (rh #1267327)
When a Wi-Fi is switched to AP mode, NMDeviceWifi forgets the AP scan list.
Later, when the device goes back to normal managed mode, the device was not
able to acquire the AP list again (for a long time), because the list is only
populated when a new BSS is signalled. And that could take very long or never
happen as the supplicant would have to lost the BSS and announce it later.

Fix the problem by announcing known BSSs as a response to ScanDone signal.

Testcase:
$ nmcli con add type wifi ifname wlan0 con-name my-wifi-ap autoconnect off ssid MYSSID
$ nmcli con modify my-wifi-ap wifi.mode ap ipv4.method shared
$ nmcli con up my-wifi-ap
$ nmcli con down my-wifi-ap
$ nmcli device wifi list

https://bugzilla.redhat.com/show_bug.cgi?id=1267327
2015-10-02 09:45:15 +02:00
..
tests build: extract version macros from "nm-version.h" to new header file "nm-version-macros.h" 2015-09-30 23:10:29 +02:00
nm-supplicant-config.c supplicant: adjust fragment_size according to MTU (bgo #755145) 2015-09-23 12:41:11 +02:00
nm-supplicant-config.h supplicant: adjust fragment_size according to MTU (bgo #755145) 2015-09-23 12:41:11 +02:00
nm-supplicant-interface.c wifi: emit NEW_BSS on ScanDone to update APs in Wi-Fi device (rh #1267327) 2015-10-02 09:45:15 +02:00
nm-supplicant-interface.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-supplicant-manager.c core: final gdbus porting 2015-08-10 09:41:26 -04:00
nm-supplicant-manager.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-supplicant-settings-verify.c all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-supplicant-settings-verify.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-supplicant-types.h supplicant: make NMSupplicantInterface independent of NMSupplicantManager 2015-03-03 14:56:24 -06:00