Patchwork hostapd: set all BSS interfaces down when tearing down AP in MBSS mode

login
register
mail settings
Submitter Maxime Bizon
Date March 20, 2014, 6:23 p.m.
Message ID <1395339823-4458-1-git-send-email-mbizon@freebox.fr>
Download mbox | patch
Permalink /patch/332348/
State Accepted
Headers show

Comments

Maxime Bizon - March 20, 2014, 6:23 p.m.
Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
---
 src/drivers/driver_nl80211.c |    2 ++
 1 file changed, 2 insertions(+)
Jouni Malinen - March 27, 2014, 2:42 p.m.
Thanks, applied.

Patch

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index dcd002e..fb2847f 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -9905,6 +9905,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;