path: root/wpa_supplicant/ap.h
diff options
authorJouni Malinen <jouni.malinen@atheros.com>2011-02-07 16:28:36 (GMT)
committerJouni Malinen <j@w1.fi>2011-02-07 16:28:36 (GMT)
commitd601247ca9b1dff6bb97e6d8608bf32f54e6d98a (patch)
tree22858c6f9c7b479b178bd6712b24e5140e3b88e5 /wpa_supplicant/ap.h
parent379ff7b9d41307ce48814a2be675e2f8ecc47f40 (diff)
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".
Diffstat (limited to 'wpa_supplicant/ap.h')
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/ap.h b/wpa_supplicant/ap.h
index d3bab24..b913be3 100644
--- a/wpa_supplicant/ap.h
+++ b/wpa_supplicant/ap.h
@@ -21,7 +21,8 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s);
void wpa_supplicant_ap_rx_eapol(struct wpa_supplicant *wpa_s,
const u8 *src_addr, const u8 *buf, size_t len);
-int wpa_supplicant_ap_wps_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid);
+int wpa_supplicant_ap_wps_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid,
+ const u8 *p2p_dev_addr);
int wpa_supplicant_ap_wps_pin(struct wpa_supplicant *wpa_s, const u8 *bssid,
const char *pin, char *buf, size_t buflen);
int wpa_supplicant_ap_wps_cancel(struct wpa_supplicant *wpa_s);