network: Be more careful in ignoring shared connection

It was possible for us to accidentally use the shared
connection for naming all access points.
https://bugzilla.gnome.org/show_bug.cgi?id=692921
This commit is contained in:
Matthias Clasen 2013-02-11 22:11:01 -05:00 committed by Bastien Nocera
parent 3644a72e59
commit a0de63dfad

View file

@ -1834,8 +1834,10 @@ populate_ap_list (NetDeviceWifi *device_wifi)
NMSetting *setting;
const GByteArray *ssid;
if (connection_is_shared (connection))
if (connection_is_shared (connection)) {
connection = NULL;
continue;
}
setting = nm_connection_get_setting_by_name (connection, NM_SETTING_WIRELESS_SETTING_NAME);
ssid = nm_setting_wireless_get_ssid (NM_SETTING_WIRELESS (setting));