summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHari Prasath Gujulan Elango <hgujulan@visteon.com>2015-06-15 11:48:53 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-15 21:56:37 -0700
commit4c6b0ec2f1cf08419a08c189fd713a810ca9e86a (patch)
tree59eedfebc50ec056214a22a78a55fc8a93d33a66
parentf194f4e9e5eb313225f5c353c7147edc7688beb7 (diff)
downloadop-kernel-dev-4c6b0ec2f1cf08419a08c189fd713a810ca9e86a.zip
op-kernel-dev-4c6b0ec2f1cf08419a08c189fd713a810ca9e86a.tar.gz
staging: wlan-ng: Replace hard coded values with MACRO's
This patch replaces hard coded values with global definitions for the Ethernet IEEE 802.3 interface defined in standard header file. Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/wlan-ng/p80211conv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/wlan-ng/p80211conv.c b/drivers/staging/wlan-ng/p80211conv.c
index c0e6ac8..49f2ef8 100644
--- a/drivers/staging/wlan-ng/p80211conv.c
+++ b/drivers/staging/wlan-ng/p80211conv.c
@@ -129,7 +129,7 @@ int skb_ether_to_p80211(wlandevice_t *wlandev, u32 ethconv,
} else {
/* step 1: classify ether frame, DIX or 802.3? */
proto = ntohs(e_hdr.type);
- if (proto <= 1500) {
+ if (proto <= ETH_DATA_LEN) {
pr_debug("802.3 len: %d\n", skb->len);
/* codes <= 1500 reserved for 802.3 lengths */
/* it's 802.3, pass ether payload unchanged, */
@@ -531,7 +531,7 @@ int p80211_stt_findproto(u16 proto)
Need to do some testing to confirm.
*/
- if (proto == 0x80f3) /* APPLETALK */
+ if (proto == ETH_P_AARP) /* APPLETALK */
return 1;
return 0;
OpenPOWER on IntegriCloud