aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ap_config.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-05-17 19:53:02 +0300
committerJouni Malinen <j@w1.fi>2011-05-17 19:53:02 +0300
commitfa5165586fa11ecdccb7c81d40979b51c2583fd2 (patch)
treee687abcd778d5ebb37fdbd50f3cabb2eccdacc3d /src/ap/ap_config.h
parentbcb90f750d16c9cab4c7699ab211616d0cd9bf46 (diff)
downloadexternal_wpa_supplicant_8_ti-fa5165586fa11ecdccb7c81d40979b51c2583fd2.zip
external_wpa_supplicant_8_ti-fa5165586fa11ecdccb7c81d40979b51c2583fd2.tar.gz
external_wpa_supplicant_8_ti-fa5165586fa11ecdccb7c81d40979b51c2583fd2.tar.bz2
WPS: Add a workaround for Windows 7 capability discovery for PBC
Windows 7 uses incorrect way of figuring out AP's WPS capabilities by acting as a Registrar and using M1 from the AP. The config methods attribute in that message is supposed to indicate only the configuration method supported by the AP in Enrollee role, i.e., to add an external Registrar. For that case, PBC shall not be used and as such, the PushButton config method is removed from M1 by default. If pbc_in_m1=1 is included in the configuration file, the PushButton config method is left in M1 (if included in config_methods parameter) to allow Windows 7 to use PBC instead of PIN (e.g., from a label in the AP).
Diffstat (limited to 'src/ap/ap_config.h')
-rw-r--r--src/ap/ap_config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h
index 25720b8..0a3e76e 100644
--- a/src/ap/ap_config.h
+++ b/src/ap/ap_config.h
@@ -318,6 +318,7 @@ struct hostapd_bss_config {
char *upc;
struct wpabuf *wps_vendor_ext[MAX_WPS_VENDOR_EXTENSIONS];
#endif /* CONFIG_WPS */
+ int pbc_in_m1;
#define P2P_ENABLED BIT(0)
#define P2P_GROUP_OWNER BIT(1)