[PATCH] Compile problem with WE 14

Pavel Roskin proski
Mon Dec 9 14:00:14 PST 2002


Hello!

The CVS version of HostAP doesn't compile with Wireless Extesions 14
(Linux 2.4.20).  IWEVCUSTOM is defined starting with WE 15.

Patch:
=========================================
--- driver/modules/hostap_ap.c
+++ driver/modules/hostap_ap.c
@@ -2372,7 +2372,7 @@ static int prism2_ap_translate_scan(stru
 	struct iw_event iwe;
 	char *current_ev = buffer;
 	char *end_buf = buffer + IW_SCAN_MAX_DATA;
-#ifndef PRISM2_HOSTAPD
+#if !defined(PRISM2_HOSTAPD) && (WIRELESS_EXT > 14)
 	char buf[64];
 #endif

@@ -2453,6 +2453,7 @@ static int prism2_ap_translate_scan(stru
 					IW_EV_FREQ_LEN);
 			}

+#if WIRELESS_EXT > 14
 			memset(&iwe, 0, sizeof(iwe));
 			iwe.cmd = IWEVCUSTOM;
 			sprintf(buf, "beacon_interval=%d",
@@ -2460,6 +2461,7 @@ static int prism2_ap_translate_scan(stru
 			iwe.u.data.length = strlen(buf);
 			current_ev = iwe_stream_add_point(current_ev, end_buf,
 							  &iwe, buf);
+#endif /* WIRELESS_EXT > 14 */
 		}
 #endif /* PRISM2_HOSTAPD */

=========================================

-- 
Regards,
Pavel Roskin




More information about the Hostap mailing list