summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-11-11 18:00:33 +0100
committerThomas Haller <thaller@redhat.com>2015-11-11 18:05:22 +0100
commitd5373959f9245faeebb1ba32b5b2b688d073ee6c (patch)
treeef053e907bb4d70787ed86e0df7c06ef295a4810
parent7cb323d92303df8c87d0c40c1c67b4d3a065275c (diff)
downloadNetworkManager-d5373959f9245faeebb1ba32b5b2b688d073ee6c.tar.gz
Revert "wifi: do no crash when getting BSSID fails"
Since commit 7cb323d92303df8c87d0c40c1c67b4d3a065275c, 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 commit e9bc18d2a7befb032052555ffba22bc72c9b8c2f.
-rw-r--r--src/devices/wifi/nm-device-wifi.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c
index 9a0fe99d08..f2470fa198 100644
--- a/src/devices/wifi/nm-device-wifi.c
+++ b/src/devices/wifi/nm-device-wifi.c
@@ -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 */