[PATCH] mac80211: add missing channel context release

DORMANTno replies

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2013-08-21 09:31:34
Subsystem: mac80211, the rest · Maintainers: Johannes Berg, Linus Torvalds

From: Johannes Berg <redacted>

IBSS needs to release the channel context when leaving
but I evidently missed that. Fix it.

Change-Id: Iaa87fdd143d5a1a7eac5b0bb63d11dca372a6bb3
Signed-off-by: Johannes Berg <redacted>
---
 net/mac80211/ibss.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
index 74de0f1..5fb1b14 100644
--- a/net/mac80211/ibss.c
+++ b/net/mac80211/ibss.c
@@ -1304,6 +1304,7 @@ int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata)
 	clear_bit(SDATA_STATE_OFFCHANNEL_BEACON_STOPPED, &sdata->state);
 	ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON_ENABLED |
 						BSS_CHANGED_IBSS);
+	ieee80211_vif_release_channel(sdata);
 	synchronize_rcu();
 	kfree(presp);
 
-- 
1.8.4.rc2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help