mac80211: Add support for beacon report radio measurement
Add the following to support beacon report radio measurement with the measurement mode field set to passive or active: 1. Propagate the required scan duration to the device 2. Report the scan start time (in terms of TSF) 3. Report each BSS's detection time (also in terms of TSF) TSF times refer to the BSS that the interface that requested the scan is connected to. Signed-off-by: Assaf Krauss <assaf.krauss@intel.com> Signed-off-by: Avraham Stern <avraham.stern@intel.com> [changed ath9k/10k, at76c59x-usb, iwlegacy, wl1251 and wlcore to match the new API] Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

committed by
Johannes Berg

parent
1d76250bd3
commit
7947d3e075
@@ -167,6 +167,10 @@ void cw1200_scan_work(struct work_struct *work)
|
||||
}
|
||||
|
||||
if (!priv->scan.req || (priv->scan.curr == priv->scan.end)) {
|
||||
struct cfg80211_scan_info info = {
|
||||
.aborted = priv->scan.status ? 1 : 0,
|
||||
};
|
||||
|
||||
if (priv->scan.output_power != priv->output_power)
|
||||
wsm_set_output_power(priv, priv->output_power * 10);
|
||||
if (priv->join_status == CW1200_JOIN_STATUS_STA &&
|
||||
@@ -188,7 +192,7 @@ void cw1200_scan_work(struct work_struct *work)
|
||||
cw1200_scan_restart_delayed(priv);
|
||||
wsm_unlock_tx(priv);
|
||||
mutex_unlock(&priv->conf_mutex);
|
||||
ieee80211_scan_completed(priv->hw, priv->scan.status ? 1 : 0);
|
||||
ieee80211_scan_completed(priv->hw, &info);
|
||||
up(&priv->scan.lock);
|
||||
return;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user