diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2017-01-25 06:43:41 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-02-08 04:43:40 -0500 |
commit | bee427b86217b78a0a5fc85575cc155e4c32bbf9 (patch) | |
tree | c145ffd541ff7a8081ae1f52ad785ea02b2aeeda /net/mac80211/mlme.c | |
parent | 769f07d8f0fb6a68a0eda6308bbe890bff894fd7 (diff) |
cfg80211: Pass new RSSI level in CQM RSSI notification
Update the drivers to pass the RSSI level as a cfg80211_cqm_rssi_notify
parameter and pass this value to userspace in a new nl80211 attribute.
This helps both userspace and also helps in the implementation of the
multiple RSSI thresholds CQM mechanism.
Note for marvell/mwifiex I pass 0 for the RSSI value because the new
RSSI value is not available to the driver at the time of the
cfg80211_cqm_rssi_notify call, but the driver queries the new value
immediately after that, so it is actually available just a moment later
if we wanted to defer caling cfg80211_cqm_rssi_notify until that moment.
Without this, the new cfg80211 code (patch 3) will call .get_station
which will send a duplicate HostCmd_CMD_RSSI_INFO command to the hardware.
Signed-off-by: Andrew Zaborowski <andrew.zaborowski@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index ee423688c92e..6e90301154d5 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -5048,7 +5048,7 @@ void ieee80211_cqm_rssi_notify(struct ieee80211_vif *vif, | |||
5048 | 5048 | ||
5049 | trace_api_cqm_rssi_notify(sdata, rssi_event, rssi_level); | 5049 | trace_api_cqm_rssi_notify(sdata, rssi_event, rssi_level); |
5050 | 5050 | ||
5051 | cfg80211_cqm_rssi_notify(sdata->dev, rssi_event, gfp); | 5051 | cfg80211_cqm_rssi_notify(sdata->dev, rssi_event, rssi_level, gfp); |
5052 | } | 5052 | } |
5053 | EXPORT_SYMBOL(ieee80211_cqm_rssi_notify); | 5053 | EXPORT_SYMBOL(ieee80211_cqm_rssi_notify); |
5054 | 5054 | ||