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>
This commit is contained in:
@@ -2266,9 +2266,7 @@ static void ieee80211_mgd_probe_ap(struct ieee80211_sub_if_data *sdata,
|
||||
"detected beacon loss from AP (missed %d beacons) - probing\n",
|
||||
beacon_loss_count);
|
||||
|
||||
ieee80211_cqm_rssi_notify(&sdata->vif,
|
||||
NL80211_CQM_RSSI_BEACON_LOSS_EVENT,
|
||||
GFP_KERNEL);
|
||||
ieee80211_cqm_beacon_loss_notify(&sdata->vif, GFP_KERNEL);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -4901,3 +4899,13 @@ void ieee80211_cqm_rssi_notify(struct ieee80211_vif *vif,
|
||||
cfg80211_cqm_rssi_notify(sdata->dev, rssi_event, gfp);
|
||||
}
|
||||
EXPORT_SYMBOL(ieee80211_cqm_rssi_notify);
|
||||
|
||||
void ieee80211_cqm_beacon_loss_notify(struct ieee80211_vif *vif, gfp_t gfp)
|
||||
{
|
||||
struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
|
||||
|
||||
trace_api_cqm_beacon_loss_notify(sdata->local, sdata);
|
||||
|
||||
cfg80211_cqm_beacon_loss_notify(sdata->dev, gfp);
|
||||
}
|
||||
EXPORT_SYMBOL(ieee80211_cqm_beacon_loss_notify);
|
||||
|
Reference in New Issue
Block a user