Patchwork atheros: fix build when WPS and IEEE80211R are both disabled

login
register
mail settings
Submitter Baruch Siach
Date June 21, 2012, 3:23 p.m.
Message ID <0009564cd2bed1e5dfb14b728fba55ea21d86e09.1340292153.git.baruch@tkos.co.il>
Download mbox | patch
Permalink /patch/166345/
State Accepted
Commit e2e984ea06393ddc1277d5375e0e2b498147cf05
Headers show

Comments

Baruch Siach - June 21, 2012, 3:23 p.m.
Signed-hostap: Baruch Siach <baruch@tkos.co.il>
---
 src/drivers/driver_atheros.c |    2 ++
 1 file changed, 2 insertions(+)
Jouni Malinen - June 23, 2012, 5:35 p.m.
Thanks, applied.

Patch

diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index 1f31ed1..6690bbb 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -877,10 +877,12 @@  static int atheros_receive_pkt(struct atheros_driver_data *drv)
 			return ret;
 	}
 
+#if defined(CONFIG_WPS) || defined(CONFIG_IEEE80211R)
 	drv->sock_raw = l2_packet_init(drv->iface, NULL, ETH_P_80211_RAW,
 				       atheros_raw_receive, drv, 1);
 	if (drv->sock_raw == NULL)
 		return -1;
+#endif /* CONFIG_WPS || CONFIG_IEEE80211R */
 	if (l2_packet_get_own_addr(drv->sock_xmit, drv->own_addr))
 		return -1;
 	return ret;