ieee80211: add struct ieee80211_hdr_qos
authorKalle Valo <kalle.valo@nokia.com>
Tue, 12 Jan 2010 08:43:00 +0000 (10:43 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 12 Jan 2010 19:21:03 +0000 (14:21 -0500)
The header can be used to create qos nullfunc frames, for example.

Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/linux/ieee80211.h

index a8c6069..8427019 100644 (file)
@@ -157,6 +157,16 @@ struct ieee80211_hdr_3addr {
        __le16 seq_ctrl;
 } __attribute__ ((packed));
 
+struct ieee80211_qos_hdr {
+       __le16 frame_control;
+       __le16 duration_id;
+       u8 addr1[6];
+       u8 addr2[6];
+       u8 addr3[6];
+       __le16 seq_ctrl;
+       __le16 qos_ctrl;
+} __attribute__ ((packed));
+
 /**
  * ieee80211_has_tods - check if IEEE80211_FCTL_TODS is set
  * @fc: frame control bytes in little-endian byteorder