mac80211: add missing channel context release
authorJohannes Berg <johannes.berg@intel.com>
Tue, 20 Aug 2013 09:28:50 +0000 (11:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Aug 2013 10:04:48 +0000 (12:04 +0200)
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>
net/mac80211/ibss.c

index ea7b9c2c7e66db19a811244d82e907bdb79620f1..5e8bb3bee3c2e8db51b3fb9e5629a0284f00163f 100644 (file)
@@ -1138,6 +1138,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);