diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-08-20 05:28:50 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-08-21 06:04:48 -0400 |
commit | 2a3ba63c235fdcd37f6451bdf4a0c7865a3930cf (patch) | |
tree | 1bc4bb0f731ea4435d271c4baacb2c53a3ad0bce /net | |
parent | dee8a9732e713480075adbbca8eb220c5b8d1216 (diff) |
mac80211: add missing channel context release
IBSS needs to release the channel context when leaving
but I evidently missed that. Fix it.
Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/ibss.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index ea7b9c2c7e66..5e8bb3bee3c2 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c | |||
@@ -1138,6 +1138,7 @@ int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata) | |||
1138 | clear_bit(SDATA_STATE_OFFCHANNEL_BEACON_STOPPED, &sdata->state); | 1138 | clear_bit(SDATA_STATE_OFFCHANNEL_BEACON_STOPPED, &sdata->state); |
1139 | ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON_ENABLED | | 1139 | ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON_ENABLED | |
1140 | BSS_CHANGED_IBSS); | 1140 | BSS_CHANGED_IBSS); |
1141 | ieee80211_vif_release_channel(sdata); | ||
1141 | synchronize_rcu(); | 1142 | synchronize_rcu(); |
1142 | kfree(presp); | 1143 | kfree(presp); |
1143 | 1144 | ||