aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-01-08 03:33:24 (GMT)
committerJouni Malinen <j@w1.fi>2008-01-08 03:33:24 (GMT)
commit2b47b49506332f24722b2d9f748e7b2c37d1e008 (patch)
treeef67f26b7ea69b7db3830a7ef24500468f8c3505 /hostapd
parent33ef1f91b589a7fc9aa41aecc6bac1e48616e8b4 (diff)
downloadhostap-history-2b47b49506332f24722b2d9f748e7b2c37d1e008.zip
hostap-history-2b47b49506332f24722b2d9f748e7b2c37d1e008.tar.gz
hostap-history-2b47b49506332f24722b2d9f748e7b2c37d1e008.tar.bz2
madwifi: Allow association without WPA/RSN IE if WPS is enabled
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/driver_madwifi.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hostapd/driver_madwifi.c b/hostapd/driver_madwifi.c
index 993a31b..e37b607 100644
--- a/hostapd/driver_madwifi.c
+++ b/hostapd/driver_madwifi.c
@@ -810,6 +810,15 @@ madwifi_process_wpa_ie(struct madwifi_driver_data *drv, struct sta_info *sta)
#endif /* MADWIFI_NG */
ielen = iebuf[1];
if (ielen == 0) {
+#ifdef CONFIG_WPS
+ if (hapd->conf->wps_state) {
+ wpa_printf(MSG_DEBUG, "STA did not include WPA/RSN IE "
+ "in (Re)Association Request - possible WPS "
+ "use");
+ sta->flags |= WLAN_STA_MAYBE_WPS;
+ return 0;
+ }
+#endif /* CONFIG_WPS */
printf("No WPA/RSN information element for station!?\n");
return -1; /* XXX not right */
}