OCV: Add support to override channel info OCI element (STA)
To support the STA testbed role, the STA has to use specified channel information in OCI element sent to the AP in EAPOL-Key msg 2/4, SA Query Request, and SA Query Response frames. Add override parameters to use the specified channel while populating OCI element in all these frames. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
c2080e8657
commit
2d118f557a
7 changed files with 47 additions and 0 deletions
|
@ -2573,6 +2573,16 @@ static void sme_send_sa_query_req(struct wpa_supplicant *wpa_s,
|
|||
return;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_TESTING_OPTIONS
|
||||
if (wpa_s->oci_freq_override_saquery_req) {
|
||||
wpa_printf(MSG_INFO,
|
||||
"TEST: Override SA Query Request OCI frequency %d -> %d MHz",
|
||||
ci.frequency,
|
||||
wpa_s->oci_freq_override_saquery_req);
|
||||
ci.frequency = wpa_s->oci_freq_override_saquery_req;
|
||||
}
|
||||
#endif /* CONFIG_TESTING_OPTIONS */
|
||||
|
||||
if (ocv_insert_extended_oci(&ci, req + req_len) < 0)
|
||||
return;
|
||||
|
||||
|
@ -2727,6 +2737,16 @@ static void sme_process_sa_query_request(struct wpa_supplicant *wpa_s,
|
|||
return;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_TESTING_OPTIONS
|
||||
if (wpa_s->oci_freq_override_saquery_resp) {
|
||||
wpa_printf(MSG_INFO,
|
||||
"TEST: Override SA Query Response OCI frequency %d -> %d MHz",
|
||||
ci.frequency,
|
||||
wpa_s->oci_freq_override_saquery_resp);
|
||||
ci.frequency = wpa_s->oci_freq_override_saquery_resp;
|
||||
}
|
||||
#endif /* CONFIG_TESTING_OPTIONS */
|
||||
|
||||
if (ocv_insert_extended_oci(&ci, resp + resp_len) < 0)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue