mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 02:00:15 +01:00
wifi: instead of asserting just return for NULL AP in update_seen_bssids_cache()
This commit is contained in:
parent
5b650f9ae3
commit
730da1090e
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue