Patchwork atheros: fix build when CONFIG_WPS is disabled

login
register
mail settings
Submitter Baruch Siach
Date April 24, 2012, 8:58 a.m.
Message ID <820877efc2e3ce8b368031450a7c9b795bdc2e31.1335257896.git.baruch@tkos.co.il>
Download mbox | patch
Permalink /patch/154625/
State Accepted
Commit 7aa4251f2ff1da6218256dfd5b7e7f23f954db1a
Headers show

Comments

Baruch Siach - April 24, 2012, 8:58 a.m.
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@tkos.co.il>
---
 src/drivers/driver_atheros.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

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"