mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 12:30:07 +01:00
Revert "wifi: do no crash when getting BSSID fails"
Since commit7cb323d923, nm_ap_new_from_properties() will always return an AP with BSSID set. Restore the assertion during try_fill_ssid_for_hidden_ap(). This reverts commite9bc18d2a7.
This commit is contained in:
parent
7cb323d923
commit
d5373959f9
1 changed files with 1 additions and 5 deletions
|
|
@ -1498,11 +1498,7 @@ try_fill_ssid_for_hidden_ap (NMAccessPoint *ap)
|
|||
g_return_if_fail (nm_ap_get_ssid (ap) == NULL);
|
||||
|
||||
bssid = nm_ap_get_address (ap);
|
||||
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;
|
||||
}
|
||||
g_return_if_fail (bssid);
|
||||
|
||||
/* 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