Add an option for driver wrappers to report operational frequency
This commit is contained in:
parent
cd7d80f373
commit
4832ecd754
4 changed files with 16 additions and 1 deletions
|
@ -888,6 +888,8 @@ static void wpa_supplicant_event_associnfo(struct wpa_supplicant *wpa_s,
|
|||
wpa_hexdump(MSG_DEBUG, "beacon_ies",
|
||||
data->assoc_info.beacon_ies,
|
||||
data->assoc_info.beacon_ies_len);
|
||||
if (data->assoc_info.freq)
|
||||
wpa_printf(MSG_DEBUG, "freq=%u MHz", data->assoc_info.freq);
|
||||
|
||||
p = data->assoc_info.req_ies;
|
||||
l = data->assoc_info.req_ies_len;
|
||||
|
@ -975,6 +977,8 @@ static void wpa_supplicant_event_associnfo(struct wpa_supplicant *wpa_s,
|
|||
wpa_sm_set_ap_rsn_ie(wpa_s->wpa, NULL, 0);
|
||||
if (wpa_found || rsn_found)
|
||||
wpa_s->ap_ies_from_associnfo = 1;
|
||||
|
||||
wpa_s->assoc_freq = data->assoc_info.freq;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -326,6 +326,7 @@ struct wpa_supplicant {
|
|||
* before this has been cleared */
|
||||
struct wpa_ssid *current_ssid;
|
||||
int ap_ies_from_associnfo;
|
||||
unsigned int assoc_freq;
|
||||
|
||||
/* Selected configuration (based on Beacon/ProbeResp WPA IE) */
|
||||
int pairwise_cipher;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue