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
@@ -960,6 +960,9 @@ void ath_roc_complete(struct ath_softc *sc, enum ath_roc_complete_reason reason)
|
||||
void ath_scan_complete(struct ath_softc *sc, bool abort)
|
||||
{
|
||||
struct ath_common *common = ath9k_hw_common(sc->sc_ah);
|
||||
struct cfg80211_scan_info info = {
|
||||
.aborted = abort,
|
||||
};
|
||||
|
||||
if (abort)
|
||||
ath_dbg(common, CHAN_CTX, "HW scan aborted\n");
|
||||
@@ -969,7 +972,7 @@ void ath_scan_complete(struct ath_softc *sc, bool abort)
|
||||
sc->offchannel.scan_req = NULL;
|
||||
sc->offchannel.scan_vif = NULL;
|
||||
sc->offchannel.state = ATH_OFFCHANNEL_IDLE;
|
||||
ieee80211_scan_completed(sc->hw, abort);
|
||||
ieee80211_scan_completed(sc->hw, &info);
|
||||
clear_bit(ATH_OP_SCANNING, &common->op_flags);
|
||||
spin_lock_bh(&sc->chan_lock);
|
||||
if (test_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags))
|
||||
|
Reference in New Issue
Block a user