nl80211: Add support for additional scan parameters for beacon report
Add support for: 1. Setting scan dwell time 2. Parsing scan start TSF and beacon received TSF reported by the driver 3. Setting driver capabilities for the above These capabilities are needed for Beacon Report radio measurement. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
This commit is contained in:
parent
c16b9f8d33
commit
96a5f14ee4
3 changed files with 43 additions and 0 deletions
|
@ -1110,6 +1110,16 @@ static void send_scan_event(struct wpa_driver_nl80211_data *drv, int aborted,
|
|||
wpa_printf(MSG_DEBUG, "nl80211: Scan included frequencies:%s",
|
||||
msg);
|
||||
}
|
||||
|
||||
if (tb[NL80211_ATTR_SCAN_START_TIME_TSF] &&
|
||||
tb[NL80211_ATTR_SCAN_START_TIME_TSF_BSSID]) {
|
||||
info->scan_start_tsf =
|
||||
nla_get_u64(tb[NL80211_ATTR_SCAN_START_TIME_TSF]);
|
||||
os_memcpy(info->scan_start_tsf_bssid,
|
||||
nla_data(tb[NL80211_ATTR_SCAN_START_TIME_TSF_BSSID]),
|
||||
ETH_ALEN);
|
||||
}
|
||||
|
||||
wpa_supplicant_event(drv->ctx, EVENT_SCAN_RESULTS, &event);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue