summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Zaborowski <andrew.zaborowski@intel.com>2020-10-14 15:02:06 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2020-10-22 16:58:27 +0200
commitada71a4af6af7f2e830f266e757aabfe2e5dcabb (patch)
tree2e20d6c9baa6cf64ebf7619aa715bad405d6ce9b
parentd868ce153e80981fd24b04418d029a3c67d70fd1 (diff)
iwd: Remove a redundant set_current_ap call
set_current_ap is always called before remove_all_aps.
-rw-r--r--src/devices/wifi/nm-device-iwd.c2
1 files changed, 0 insertions, 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);