P2P: Allow WPS_PBC command on GO to select on P2P Device Address
authorJouni Malinen <jouni.malinen@atheros.com>
Mon, 7 Feb 2011 16:28:36 +0000 (18:28 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 7 Feb 2011 16:28:36 +0000 (18:28 +0200)
commitd601247ca9b1dff6bb97e6d8608bf32f54e6d98a
tree22858c6f9c7b479b178bd6712b24e5140e3b88e5
parent379ff7b9d41307ce48814a2be675e2f8ecc47f40
P2P: Allow WPS_PBC command on GO to select on P2P Device Address

An optional parameter, p2p_dev_addr, can now be given to WPS_PBC
command on P2P GO to indicate that only the P2P device with the
specified P2P Device Address is allowed to connect using PBC. If
any other device tries to use PBC, a session overlap is indicated
and the negotiation is rejected with M2D. The command format for
specifying the address is "WPS_PBC p2p_dev_addr=<address>", e.g.,
WPS_PBC p2p_dev_addr=02:03:04:05:06:07

In addition, show the PBC session overlap indication as a WPS failure
event on an AP/GO interface. This particular new case shows up as
"WPS-FAIL msg=4 config_error=12".
14 files changed:
hostapd/ctrl_iface.c
src/ap/drv_callbacks.c
src/ap/wps_hostapd.c
src/ap/wps_hostapd.h
src/eap_server/eap_server_wsc.c
src/wps/wps.c
src/wps/wps.h
src/wps/wps_er.c
src/wps/wps_i.h
src/wps/wps_registrar.c
wpa_supplicant/ap.c
wpa_supplicant/ap.h
wpa_supplicant/ctrl_iface.c
wpa_supplicant/p2p_supplicant.c