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:
parent
3644a72e59
commit
a0de63dfad
1 changed files with 3 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue