diff --git a/src/wiphy.c b/src/wiphy.c index 5e1c219b..d279c5aa 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -2003,25 +2003,3 @@ bool wiphy_exit(void) return true; } - -static void wiphy_check_dellink(void *data, void *user_data) -{ - uint32_t index = L_PTR_TO_UINT(user_data); - struct wiphy *wiphy = data; - struct device *device; - - device = l_queue_remove_if(wiphy->netdev_list, device_match, - L_UINT_TO_PTR(index)); - if (device) { - l_warn("Removing leftover interface %s", device->name); - device_free(device); - } -} - -void wiphy_notify_dellink(uint32_t index) -{ - if (!wiphy_list) - return; - - l_queue_foreach(wiphy_list, wiphy_check_dellink, L_UINT_TO_PTR(index)); -} diff --git a/src/wiphy.h b/src/wiphy.h index f779822f..e2a32e2a 100644 --- a/src/wiphy.h +++ b/src/wiphy.h @@ -34,6 +34,4 @@ enum ie_rsn_cipher_suite wiphy_select_cipher(struct wiphy *wiphy, bool wiphy_init(struct l_genl_family *in); bool wiphy_exit(void); -void wiphy_notify_dellink(uint32_t index); - void __iwd_device_foreach(iwd_device_foreach_func func, void *user_data);