Skip to content

Commit

Permalink
mac80211: add missing channel context release
Browse files Browse the repository at this point in the history
IBSS needs to release the channel context when leaving
but I evidently missed that. Fix it.

Cc: [email protected]
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
jmberg-intel committed Aug 21, 2013
1 parent dee8a97 commit 2a3ba63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/mac80211/ibss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2a3ba63

Please sign in to comment.