Patchwork [1/2] atheros: fix build when CONFIG_WPS is disabled

login
register
mail settings
Submitter Baruch Siach
Date May 29, 2012, 2:18 p.m.
Message ID <aa8a9bf19f4d6e0577b99a01fa733a7482ace9ff.1338301025.git.baruch@tkos.co.il>
Download mbox | patch
Permalink /patch/161755/
State Accepted
Commit 7aa4251f2ff1da6218256dfd5b7e7f23f954db1a
Headers show

Comments

Baruch Siach - May 29, 2012, 2:18 p.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(-)
Jouni Malinen - June 8, 2012, 5:30 p.m.
On Tue, May 29, 2012 at 05:18:51PM +0300, Baruch Siach wrote:
> The use of ETH_P_80211_RAW does not depend on CONFIG_WPS, so make its
> definition independent as well.

Thanks, both patches applied.

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"