[PATCH] Removed #define required for older driver
Michal Kozlowski
kozmomike
Tue May 13 14:01:17 PDT 2008
Removed some #defines that where required about a year ago, but the
main madwifi driver handles this case correctly. This allows the
madwifi driver to use WPA2 authentication. Otherwise it fails on the
handshake since it can't handle the RSN IE
Cheers
Mike
diff --git a/driver_madwifi.c b/driver_madwifi.c
index 6ef8d2b..f63d9ee 100644
--- a/driver_madwifi.c
+++ b/driver_madwifi.c
@@ -777,15 +777,11 @@ madwifi_process_wpa_ie(struct
madwifi_driver_data *drv, struct sta_info *sta)
printf("Failed to get WPA/RSN information element.\n");
return -1; /* XXX not right */
}
iebuf = ie.wpa_ie;
-#ifdef MADWIFI_NG
if (iebuf[1] == 0 && ie.rsn_ie[1] > 0) {
- /* madwifi-ng svn #1453 added rsn_ie. Use it, if wpa_ie was not
- * set. This is needed for WPA2. */
iebuf = ie.rsn_ie;
}
-#endif /* MADWIFI_NG */
ielen = iebuf[1];
if (ielen == 0) {
printf("No WPA/RSN information element for station!?\n");
return -1; /* XXX not right */
--
1.5.2.5
More information about the Hostap
mailing list