wifi: instead of asserting just return for NULL AP in update_seen_bssids_cache()

This commit is contained in:
Jiří Klimeš 2011-07-07 13:14:37 +02:00
parent 5b650f9ae3
commit 730da1090e

View file

@ -970,7 +970,10 @@ update_seen_bssids_cache (NMDeviceWifi *self, NMAccessPoint *ap)
NMActRequest *req;
NMConnection *connection;
g_return_if_fail (ap != NULL);
g_return_if_fail (NM_IS_DEVICE_WIFI (self));
if (ap == NULL)
return;
/* Don't cache the BSSID for Ad-Hoc APs */
if (nm_ap_get_mode (ap) != NM_802_11_MODE_INFRA)