P2PS: WPS changes needed for P2PS default PIN
This provides additional WPS definitions and rules for negotiating use of P2PS default PIN configuration method. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
1a94b0adcc
commit
4f88fc0464
9 changed files with 48 additions and 5 deletions
|
@ -4567,7 +4567,7 @@ static int p2p_ctrl_connect(struct wpa_supplicant *wpa_s, char *cmd,
|
|||
int pd;
|
||||
int ht40, vht;
|
||||
|
||||
/* <addr> <"pbc" | "pin" | PIN> [label|display|keypad]
|
||||
/* <addr> <"pbc" | "pin" | PIN> [label|display|keypad|p2ps]
|
||||
* [persistent|persistent=<network id>]
|
||||
* [join] [auth] [go_intent=<0..15>] [freq=<in MHz>] [provdisc]
|
||||
* [ht40] [vht] */
|
||||
|
@ -4631,6 +4631,8 @@ static int p2p_ctrl_connect(struct wpa_supplicant *wpa_s, char *cmd,
|
|||
*pos++ = '\0';
|
||||
if (os_strncmp(pos, "display", 7) == 0)
|
||||
wps_method = WPS_PIN_DISPLAY;
|
||||
else if (os_strncmp(pos, "p2ps", 4) == 0)
|
||||
wps_method = WPS_P2PS;
|
||||
}
|
||||
if (!wps_pin_str_valid(pin)) {
|
||||
os_memcpy(buf, "FAIL-INVALID-PIN\n", 17);
|
||||
|
|
|
@ -1268,6 +1268,8 @@ static void wpas_start_wps_enrollee(struct wpa_supplicant *wpa_s,
|
|||
#endif /* CONFIG_WPS_NFC */
|
||||
} else {
|
||||
u16 dev_pw_id = DEV_PW_DEFAULT;
|
||||
if (wpa_s->p2p_wps_method == WPS_P2PS)
|
||||
dev_pw_id = DEV_PW_P2PS_DEFAULT;
|
||||
if (wpa_s->p2p_wps_method == WPS_PIN_KEYPAD)
|
||||
dev_pw_id = DEV_PW_REGISTRAR_SPECIFIED;
|
||||
wpas_wps_start_pin(wpa_s, res->peer_interface_addr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue