aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 95667b088c5b..5232b0102143 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1050,6 +1050,7 @@ static int ieee80211_stop_ap(struct wiphy *wiphy, struct net_device *dev)
1050 struct ieee80211_local *local = sdata->local; 1050 struct ieee80211_local *local = sdata->local;
1051 struct beacon_data *old_beacon; 1051 struct beacon_data *old_beacon;
1052 struct probe_resp *old_probe_resp; 1052 struct probe_resp *old_probe_resp;
1053 struct cfg80211_chan_def chandef;
1053 1054
1054 old_beacon = rtnl_dereference(sdata->u.ap.beacon); 1055 old_beacon = rtnl_dereference(sdata->u.ap.beacon);
1055 if (!old_beacon) 1056 if (!old_beacon)
@@ -1091,8 +1092,10 @@ static int ieee80211_stop_ap(struct wiphy *wiphy, struct net_device *dev)
1091 ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON_ENABLED); 1092 ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON_ENABLED);
1092 1093
1093 if (sdata->wdev.cac_started) { 1094 if (sdata->wdev.cac_started) {
1095 chandef = sdata->vif.bss_conf.chandef;
1094 cancel_delayed_work_sync(&sdata->dfs_cac_timer_work); 1096 cancel_delayed_work_sync(&sdata->dfs_cac_timer_work);
1095 cfg80211_cac_event(sdata->dev, NL80211_RADAR_CAC_ABORTED, 1097 cfg80211_cac_event(sdata->dev, &chandef,
1098 NL80211_RADAR_CAC_ABORTED,
1096 GFP_KERNEL); 1099 GFP_KERNEL);
1097 } 1100 }
1098 1101