]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Set all BSS interfaces down when tearing down AP in MBSS mode
authorMaxime Bizon <mbizon@freebox.fr>
Thu, 20 Mar 2014 18:23:43 +0000 (19:23 +0100)
committerJouni Malinen <j@w1.fi>
Thu, 27 Mar 2014 14:45:25 +0000 (16:45 +0200)
If the interface was not added by hostapd, it could have been left up
when disabling the AP.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
src/drivers/driver_nl80211.c

index c342062d463947ee655d733bddc667e59a64577a..d270d6b3c60ad88b89c51f23a67a8bb684ddf896 100644 (file)
@@ -10018,6 +10018,8 @@ static int wpa_driver_nl80211_if_remove(struct i802_bss *bss,
                                /* Unsubscribe management frames */
                                nl80211_teardown_ap(bss);
                                nl80211_destroy_bss(bss);
+                               if (!bss->added_if)
+                                       i802_set_iface_flags(bss, 0);
                                os_free(bss);
                                bss = NULL;
                                break;