From ada71a4af6af7f2e830f266e757aabfe2e5dcabb Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Wed, 14 Oct 2020 15:02:06 +0200 Subject: [PATCH] iwd: Remove a redundant set_current_ap call set_current_ap is always called before remove_all_aps. --- src/devices/wifi/nm-device-iwd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/devices/wifi/nm-device-iwd.c b/src/devices/wifi/nm-device-iwd.c index c946ab224..c479b3d45 100644 --- a/src/devices/wifi/nm-device-iwd.c +++ b/src/devices/wifi/nm-device-iwd.c @@ -181,8 +181,6 @@ remove_all_aps(NMDeviceIwd *self) if (c_list_is_empty(&priv->aps_lst_head)) return; - set_current_ap(self, NULL, FALSE); - c_list_for_each_entry_safe (ap, ap_safe, &priv->aps_lst_head, aps_lst) ap_add_remove(self, FALSE, ap, FALSE);