patch-2.4.19 linux-2.4.19/drivers/net/wireless/ieee802_11.h
Next file: linux-2.4.19/drivers/net/wireless/orinoco.c
Previous file: linux-2.4.19/drivers/net/wireless/hermes.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Fri Aug 2 17:39:44 2002
- Orig file:
linux-2.4.18/drivers/net/wireless/ieee802_11.h
- Orig date:
Mon Feb 25 11:38:03 2002
diff -urN linux-2.4.18/drivers/net/wireless/ieee802_11.h linux-2.4.19/drivers/net/wireless/ieee802_11.h
@@ -1,6 +1,13 @@
#ifndef _IEEE802_11_H
#define _IEEE802_11_H
+#define IEEE802_11_DATA_LEN 2304
+/* Actually, the standard seems to be inconsistent about what the
+ maximum frame size really is. S6.2.1.1.2 says 2304 octets, but the
+ figure in section 7.1.2 says 2312 octects. */
+#define IEEE802_11_HLEN 30
+#define IEEE802_11_FRAME_LEN (IEEE802_11_DATA_LEN + IEEE802_11_HLEN)
+
struct ieee802_11_hdr {
u16 frame_ctl;
u16 duration_id;
@@ -9,7 +16,6 @@
u8 addr3[ETH_ALEN];
u16 seq_ctl;
u8 addr4[ETH_ALEN];
- u16 data_len;
} __attribute__ ((packed));
/* Frame control field constants */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)