aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/cfg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index f215ad48985a..b98dc8ce8e25 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -3018,11 +3018,12 @@ static void ieee80211_csa_finalize(struct ieee80211_sub_if_data *sdata)
3018 switch (sdata->vif.type) { 3018 switch (sdata->vif.type) {
3019 case NL80211_IFTYPE_AP: 3019 case NL80211_IFTYPE_AP:
3020 err = ieee80211_assign_beacon(sdata, sdata->u.ap.next_beacon); 3020 err = ieee80211_assign_beacon(sdata, sdata->u.ap.next_beacon);
3021 kfree(sdata->u.ap.next_beacon);
3022 sdata->u.ap.next_beacon = NULL;
3023
3021 if (err < 0) 3024 if (err < 0)
3022 return; 3025 return;
3023 changed |= err; 3026 changed |= err;
3024 kfree(sdata->u.ap.next_beacon);
3025 sdata->u.ap.next_beacon = NULL;
3026 break; 3027 break;
3027 case NL80211_IFTYPE_ADHOC: 3028 case NL80211_IFTYPE_ADHOC:
3028 err = ieee80211_ibss_finish_csa(sdata); 3029 err = ieee80211_ibss_finish_csa(sdata);