WPS NFC: Use AP Channel information from credential container
This allows NFC Configuration Token to indicate the current AP operating channel, so that a single channel scan can be used to speed up the initial connection. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
d2f18378e1
commit
5cd4f66095
1 changed files with 6 additions and 0 deletions
|
@ -2210,6 +2210,12 @@ static int wpas_wps_use_cred(struct wpa_supplicant *wpa_s,
|
||||||
if (wpa_s->wpa_state == WPA_INTERFACE_DISABLED)
|
if (wpa_s->wpa_state == WPA_INTERFACE_DISABLED)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
if (!wpa_s->wps_ap_channel && attr->ap_channel) {
|
||||||
|
wpa_s->wps_ap_channel = WPA_GET_BE16(attr->ap_channel);
|
||||||
|
wpa_printf(MSG_DEBUG, "WPS: Credential container indicated AP Channel %d",
|
||||||
|
wpa_s->wps_ap_channel);
|
||||||
|
}
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "WPS: Request reconnection with new network "
|
wpa_printf(MSG_DEBUG, "WPS: Request reconnection with new network "
|
||||||
"based on the received credential added");
|
"based on the received credential added");
|
||||||
wpa_s->normal_scans = 0;
|
wpa_s->normal_scans = 0;
|
||||||
|
|
Loading…
Reference in a new issue