summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng/p80211hdr.h
diff options
context:
space:
mode:
authorMoritz Muehlenhoff2009-01-21 22:00:41 +0100
committerGreg Kroah-Hartman2009-04-03 23:53:16 +0200
commit28b17a4bdf148b7591c004efd10a8850d52849ec (patch)
treef5efadf76aa6850d79f475e5f16e2160450341f3 /drivers/staging/wlan-ng/p80211hdr.h
parentStaging: wlan-ng: Remove use of __WLAN_ATTRIB_PACK__ (diff)
downloadkernel-qcow2-linux-28b17a4bdf148b7591c004efd10a8850d52849ec.tar.gz
kernel-qcow2-linux-28b17a4bdf148b7591c004efd10a8850d52849ec.tar.xz
kernel-qcow2-linux-28b17a4bdf148b7591c004efd10a8850d52849ec.zip
Staging: wlan-ng: Remove use of WLAN_ADDR_LEN
Replace the driver local WLAN_ADDR_LEN constant through the kernel-wide ETH_ALEN definiton. Signed-off-by: Moritz Muehlenhoff <jmm@debian.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/wlan-ng/p80211hdr.h')
-rw-r--r--drivers/staging/wlan-ng/p80211hdr.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/staging/wlan-ng/p80211hdr.h b/drivers/staging/wlan-ng/p80211hdr.h
index f4a1a34ff0a7..0a7163fdfcdc 100644
--- a/drivers/staging/wlan-ng/p80211hdr.h
+++ b/drivers/staging/wlan-ng/p80211hdr.h
@@ -63,6 +63,8 @@
/*================================================================*/
/* System Includes */
+#include <linux/if_ether.h>
+
/*================================================================*/
/* Project Includes */
@@ -75,7 +77,6 @@
/* Constants */
/*--- Sizes -----------------------------------------------*/
-#define WLAN_ADDR_LEN 6
#define WLAN_CRC_LEN 4
#define WLAN_BSSID_LEN 6
#define WLAN_BSS_TS_LEN 8
@@ -225,9 +226,9 @@ typedef struct p80211_hdr_a3
{
u16 fc;
u16 dur;
- u8 a1[WLAN_ADDR_LEN];
- u8 a2[WLAN_ADDR_LEN];
- u8 a3[WLAN_ADDR_LEN];
+ u8 a1[ETH_ALEN];
+ u8 a2[ETH_ALEN];
+ u8 a3[ETH_ALEN];
u16 seq;
} __attribute__((packed)) p80211_hdr_a3_t;
@@ -235,11 +236,11 @@ typedef struct p80211_hdr_a4
{
u16 fc;
u16 dur;
- u8 a1[WLAN_ADDR_LEN];
- u8 a2[WLAN_ADDR_LEN];
- u8 a3[WLAN_ADDR_LEN];
+ u8 a1[ETH_ALEN];
+ u8 a2[ETH_ALEN];
+ u8 a3[ETH_ALEN];
u16 seq;
- u8 a4[WLAN_ADDR_LEN];
+ u8 a4[ETH_ALEN];
} __attribute__((packed)) p80211_hdr_a4_t;
typedef union p80211_hdr
@@ -282,7 +283,7 @@ inline static u16 p80211_headerlen(u16 fctl)
case WLAN_FTYPE_DATA:
hdrlen = WLAN_HDR_A3_LEN;
if ( WLAN_GET_FC_TODS(fctl) && WLAN_GET_FC_FROMDS(fctl) ) {
- hdrlen += WLAN_ADDR_LEN;
+ hdrlen += ETH_ALEN;
}
break;
case WLAN_FTYPE_CTL: