mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 20:10:17 +01:00
wifi: do no crash when getting BSSID fails
https://bodhi.fedoraproject.org/updates/NetworkManager-1.0.6-7.fc23#comment-342089
(cherry picked from commit e9bc18d2a7)
This commit is contained in:
parent
f85ccf9a9e
commit
e0e043ef39
1 changed files with 5 additions and 1 deletions
|
|
@ -1649,7 +1649,11 @@ try_fill_ssid_for_hidden_ap (NMAccessPoint *ap)
|
|||
g_return_if_fail (nm_ap_get_ssid (ap) == NULL);
|
||||
|
||||
bssid = nm_ap_get_address (ap);
|
||||
g_assert (bssid);
|
||||
if (!bssid) {
|
||||
nm_log_dbg (LOGD_WIFI, "failed to get BSSID for hidden AP %s",
|
||||
str_if_set (nm_ap_get_supplicant_path (ap), "(none)"));
|
||||
return;
|
||||
}
|
||||
|
||||
/* Look for this AP's BSSID in the seen-bssids list of a connection,
|
||||
* and if a match is found, copy over the SSID */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue