Add a new method "pair" to indicate the connect request perform the
Wi-Fi Direct R2 methods like bootstrapping and pairing for connection.
This fixes control interface command parsing which expects method as
mandatory.
Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
wpa_s = wpa_s->global->p2p_init_wpa_s;
}
- /* <addr> <"pbc" | "pin" | PIN> [label|display|keypad|p2ps]
+ /* <addr> <"pbc" | "pin" | "pair" | PIN> [label|display|keypad|p2ps]
* [persistent|persistent=<network id>]
* [join] [auth] [go_intent=<0..15>] [freq=<in MHz>] [provdisc]
* [ht40] [vht] [he] [edmg] [auto] [ssid=<hexdump>]
wps_method = WPS_PBC;
} else if (os_strstr(pos, "p2ps") != NULL) {
wps_method = WPS_P2PS;
- } else if (p2p2) {
+ } else if (os_strncmp(pos, "pair", 4) == 0 && p2p2) {
wps_method = WPS_NOT_READY;
} else {
pin = pos;