|
@@ -9490,7 +9490,7 @@ static int wpa_driver_nl80211_if_remove(struct i802_bss *bss,
|
|
|
|
|
|
wpa_printf(MSG_DEBUG, "nl80211: %s(type=%d ifname=%s) ifindex=%d added_if=%d",
|
|
wpa_printf(MSG_DEBUG, "nl80211: %s(type=%d ifname=%s) ifindex=%d added_if=%d",
|
|
__func__, type, ifname, ifindex, bss->added_if);
|
|
__func__, type, ifname, ifindex, bss->added_if);
|
|
- if (ifindex > 0 && bss->added_if)
|
|
|
|
|
|
+ if (ifindex > 0 && (bss->added_if || bss->ifindex != ifindex))
|
|
nl80211_remove_iface(drv, ifindex);
|
|
nl80211_remove_iface(drv, ifindex);
|
|
|
|
|
|
if (type != WPA_IF_AP_BSS)
|
|
if (type != WPA_IF_AP_BSS)
|