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>
This commit is contained in:
parent
795abc8e0a
commit
6d07e76020
2 changed files with 3 additions and 1 deletions
|
@ -313,6 +313,9 @@ static inline void WPA_PUT_LE64(u8 *a, u64 val)
|
||||||
#ifndef ETH_P_ALL
|
#ifndef ETH_P_ALL
|
||||||
#define ETH_P_ALL 0x0003
|
#define ETH_P_ALL 0x0003
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef ETH_P_IP
|
||||||
|
#define ETH_P_IP 0x0800
|
||||||
|
#endif
|
||||||
#ifndef ETH_P_80211_ENCAP
|
#ifndef ETH_P_80211_ENCAP
|
||||||
#define ETH_P_80211_ENCAP 0x890d /* TDLS comes under this category */
|
#define ETH_P_80211_ENCAP 0x890d /* TDLS comes under this category */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "utils/includes.h"
|
#include "utils/includes.h"
|
||||||
#include <linux/if_ether.h>
|
|
||||||
|
|
||||||
#include "utils/common.h"
|
#include "utils/common.h"
|
||||||
#include "common/defs.h"
|
#include "common/defs.h"
|
||||||
|
|
Loading…
Reference in a new issue