aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-03-26 09:35:30 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-26 09:35:30 (GMT)
commit6d07e760209879a3f94ee48f1e8022180d8ca176 (patch)
tree87f158e2bc1b25d9ce87954b9297b21bb18324c1
parent795abc8e0a369d24d6ca80c5f998bd516918649f (diff)
downloadhostap-6d07e760209879a3f94ee48f1e8022180d8ca176.zip
hostap-6d07e760209879a3f94ee48f1e8022180d8ca176.tar.gz
hostap-6d07e760209879a3f94ee48f1e8022180d8ca176.tar.bz2
wlantest: Use local ETH_P_IP define instead of linux/if_ether.h
There is no strong need for pulling in linux/if_ether.h here since all that is needed if ETH_P_IP and we already cover multiple other ETH_P_* values in utils/common.h. Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--src/utils/common.h3
-rw-r--r--wlantest/rx_data.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/common.h b/src/utils/common.h
index 0b9cc3d..6f0de69 100644
--- a/src/utils/common.h
+++ b/src/utils/common.h
@@ -313,6 +313,9 @@ static inline void WPA_PUT_LE64(u8 *a, u64 val)
#ifndef ETH_P_ALL
#define ETH_P_ALL 0x0003
#endif
+#ifndef ETH_P_IP
+#define ETH_P_IP 0x0800
+#endif
#ifndef ETH_P_80211_ENCAP
#define ETH_P_80211_ENCAP 0x890d /* TDLS comes under this category */
#endif
diff --git a/wlantest/rx_data.c b/wlantest/rx_data.c
index 4c55e7d..b53542f 100644
--- a/wlantest/rx_data.c
+++ b/wlantest/rx_data.c
@@ -7,7 +7,6 @@
*/
#include "utils/includes.h"
-#include <linux/if_ether.h>
#include "utils/common.h"
#include "common/defs.h"