summaryrefslogtreecommitdiff
path: root/drivers/staging/ks7010/eap_packet.h
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2018-03-20 20:13:13 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-22 20:20:54 +0300
commit38fc31e73c475733d21a204811be04755deec8a2 (patch)
tree46824054e3e781aaa17ebaa571e98f01b9b0fae9 /drivers/staging/ks7010/eap_packet.h
parentc07040694193f2c1722cff00cc4c55b5ba4318b5 (diff)
downloadlinux-38fc31e73c475733d21a204811be04755deec8a2.tar.xz
staging: ks7010: replace some custom defines with the ones in uapi/linux/if_ether.h
This commit reviews some custom defines changing them for the globals defined in if_ether header file. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ks7010/eap_packet.h')
-rw-r--r--drivers/staging/ks7010/eap_packet.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/staging/ks7010/eap_packet.h b/drivers/staging/ks7010/eap_packet.h
index dca2a142e834..1bf1a8c94b0c 100644
--- a/drivers/staging/ks7010/eap_packet.h
+++ b/drivers/staging/ks7010/eap_packet.h
@@ -3,13 +3,10 @@
#define EAP_PACKET_H
#include <linux/compiler.h>
+#include <uapi/linux/if_ether.h>
#define WBIT(n) (1 << (n))
-#ifndef ETH_ALEN
-#define ETH_ALEN 6
-#endif
-
#define ETHER_HDR_SIZE 20
struct ether_hdr {
@@ -20,9 +17,6 @@ struct ether_hdr {
unsigned char h_command;
unsigned char h_vendor_id[3];
__be16 h_proto; /* packet type ID field */
-#define ETHER_PROTOCOL_TYPE_EAP 0x888e
-#define ETHER_PROTOCOL_TYPE_IP 0x0800
-#define ETHER_PROTOCOL_TYPE_ARP 0x0806
/* followed by length octets of data */
} __packed;