[PATCH] atheros: fix build when CONFIG_WPS is disabled

Baruch Siach baruch
Tue Apr 24 01:58:44 PDT 2012


The use of ETH_P_80211_RAW does not depend on CONFIG_WPS, so make its
definition independent as well.

Signed-hostap: Baruch Siach <baruch at tkos.co.il>
---
 src/drivers/driver_atheros.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index 37147ea..db2b3ff 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -39,11 +39,11 @@
 
 #ifdef CONFIG_WPS
 #include <netpacket/packet.h>
+#endif /* CONFIG_WPS */
 
 #ifndef ETH_P_80211_RAW
 #define ETH_P_80211_RAW 0x0019
 #endif
-#endif /* CONFIG_WPS */
 
 #include "linux_wext.h"
 
-- 
1.7.10




More information about the Hostap mailing list