aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-12-13 19:57:02 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-16 15:21:28 -0500
commitd659a3ec838866482779f594c4520f553468c492 (patch)
tree89acffd97e29dfe8e08034c5edb0dcfca3028913 /drivers/staging
parentb8d6307894a73a10be6395b8ed3ffb3cb9255f9d (diff)
staging: brcm80211: Remove ETHER_HDR_LEN, use ETH_HLEN
Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/brcm80211/include/proto/ethernet.h1
-rw-r--r--drivers/staging/brcm80211/sys/wlc_mac80211.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/brcm80211/include/proto/ethernet.h b/drivers/staging/brcm80211/include/proto/ethernet.h
index a8638db431db..888165e1ab5c 100644
--- a/drivers/staging/brcm80211/include/proto/ethernet.h
+++ b/drivers/staging/brcm80211/include/proto/ethernet.h
@@ -23,7 +23,6 @@
23 23
24#define ETHER_TYPE_LEN 2 24#define ETHER_TYPE_LEN 2
25#define ETHER_CRC_LEN 4 25#define ETHER_CRC_LEN 4
26#define ETHER_HDR_LEN (ETH_ALEN * 2 + ETHER_TYPE_LEN)
27#define ETHER_MIN_LEN 64 26#define ETHER_MIN_LEN 64
28#define ETHER_MIN_DATA 46 27#define ETHER_MIN_DATA 46
29#define ETHER_MAX_LEN 1518 28#define ETHER_MAX_LEN 1518
diff --git a/drivers/staging/brcm80211/sys/wlc_mac80211.c b/drivers/staging/brcm80211/sys/wlc_mac80211.c
index 407f5ec55230..8a89b5fe8e60 100644
--- a/drivers/staging/brcm80211/sys/wlc_mac80211.c
+++ b/drivers/staging/brcm80211/sys/wlc_mac80211.c
@@ -1727,7 +1727,7 @@ void *wlc_attach(void *wl, u16 vendor, u16 device, uint unit, bool piomode,
1727 1727
1728 /* some code depends on packed structures */ 1728 /* some code depends on packed structures */
1729 ASSERT(sizeof(struct ether_addr) == ETH_ALEN); 1729 ASSERT(sizeof(struct ether_addr) == ETH_ALEN);
1730 ASSERT(sizeof(struct ether_header) == ETHER_HDR_LEN); 1730 ASSERT(sizeof(struct ether_header) == ETH_HLEN);
1731 ASSERT(sizeof(d11regs_t) == SI_CORE_SIZE); 1731 ASSERT(sizeof(d11regs_t) == SI_CORE_SIZE);
1732 ASSERT(sizeof(ofdm_phy_hdr_t) == D11_PHY_HDR_LEN); 1732 ASSERT(sizeof(ofdm_phy_hdr_t) == D11_PHY_HDR_LEN);
1733 ASSERT(sizeof(cck_phy_hdr_t) == D11_PHY_HDR_LEN); 1733 ASSERT(sizeof(cck_phy_hdr_t) == D11_PHY_HDR_LEN);