The 2 following patches try to prepare the connman code for hidden SSID auto connection. The general idea is to have a service list updated with both the hidden SSID and the stored information, so that connman can safely pick a hidden service when choosing one to auto connect to.
The first patch saves wifi information when calling service_save(), in particular it saves the wifi BSSID when the service has a non NULL network wifi pointer. That basically saves the last BSSID we connected to from this service. We're also saving the security mode and passphrase so that we can auto connect to secure networks. Then the second patch is the one updating the service list based on the scan results and the stored information. When we get a nameless service from service_load() that means we're trying to load information for a hidden network. We then look for a matching BSSID, and if the latter is found, we update the service identifier and the network name accordingly. Samuel Ortiz (2): service: save wifi network settings service: nameless wifi services completion plugins/supplicant.c | 5 +- src/service.c | 130 +++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 131 insertions(+), 4 deletions(-) _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
