When the ifindex of the interface is changed, the obsolete ifindex is not removed from the drv->if_indices[] and have_idx() returns false positive. Signed-off-by: Alexander Savchenko <oleksandr.savchenko.dn@xxxxxxxxxxxxxx> --- src/drivers/driver_nl80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 2f8ed7428..f926ebaa7 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -1230,6 +1230,7 @@ static int wpa_driver_nl80211_own_ifindex(struct wpa_driver_nl80211_data *drv, nl80211_check_global(drv->global); wpa_printf(MSG_DEBUG, "nl80211: Update ifindex for a removed " "interface"); + del_ifidx(drv, drv->ifindex, IFIDX_ANY); if (wpa_driver_nl80211_finish_drv_init(drv, NULL, 0, NULL, WPA_P2P_MODE_WFD_R1) < 0) return -1; -- 2.17.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap