summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-11-26 06:42:02 -0500
committerJohannes Berg <johannes.berg@intel.com>2014-11-26 14:56:42 -0500
commit98f0334263f177dd22ca7c685cde04b47cc57b05 (patch)
treeb91346fbd400ceb756d02aacb4f050398c9c7a38 /net/mac80211/mlme.c
parent5b97f49d653d366d8cb03cab40f8c45eb59dc70c (diff)
cfg80211: clean up beacon loss CQM event
Having it as a sub-event for RSSI thresholds is very ugly, but luckily no userspace actually uses the events yet. Move the event to its own function call internally and to its own event attribute in nl80211. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 36e39ed4dfd9..8a23a64b9a61 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -2266,9 +2266,7 @@ static void ieee80211_mgd_probe_ap(struct ieee80211_sub_if_data *sdata,
2266 "detected beacon loss from AP (missed %d beacons) - probing\n", 2266 "detected beacon loss from AP (missed %d beacons) - probing\n",
2267 beacon_loss_count); 2267 beacon_loss_count);
2268 2268
2269 ieee80211_cqm_rssi_notify(&sdata->vif, 2269 ieee80211_cqm_beacon_loss_notify(&sdata->vif, GFP_KERNEL);
2270 NL80211_CQM_RSSI_BEACON_LOSS_EVENT,
2271 GFP_KERNEL);
2272 } 2270 }
2273 2271
2274 /* 2272 /*
@@ -4901,3 +4899,13 @@ void ieee80211_cqm_rssi_notify(struct ieee80211_vif *vif,
4901 cfg80211_cqm_rssi_notify(sdata->dev, rssi_event, gfp); 4899 cfg80211_cqm_rssi_notify(sdata->dev, rssi_event, gfp);
4902} 4900}
4903EXPORT_SYMBOL(ieee80211_cqm_rssi_notify); 4901EXPORT_SYMBOL(ieee80211_cqm_rssi_notify);
4902
4903void ieee80211_cqm_beacon_loss_notify(struct ieee80211_vif *vif, gfp_t gfp)
4904{
4905 struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
4906
4907 trace_api_cqm_beacon_loss_notify(sdata->local, sdata);
4908
4909 cfg80211_cqm_beacon_loss_notify(sdata->dev, gfp);
4910}
4911EXPORT_SYMBOL(ieee80211_cqm_beacon_loss_notify);