Skip to contentSkip to conversation

wireless: add BlockAck frame structure

RFC In review Christian Lamparter 2 participants 2 messages Nov 13, 2009 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore
#0 lore raw

RFC 1/1 wireless: add BlockAck frame structure

This patch adds the BlockAck frame structure as described in 802.11n specification section 7.2.1.8.

---
I'm not sure if:
- everyone will be happy about ext. ieee80211_ba_cb structure?
- this structure should a part of ieee80211_bar?
---

include/linux/ieee80211.h +39 -1
index 49b1abd..cda0b23 100644
@@ -747,10 +747,48 @@ struct ieee80211_bar {
 	__le16 start_seq_num;
 } __attribute__((packed));
 
-/* 802.11 BAR control masks */
+/* 802.11 BA(R) control masks */
 #define IEEE80211_BAR_CTRL_ACK_POLICY_NORMAL     0x0000
+#define IEEE80211_BAR_CTRL_MULTI_TID		 0x0002
 #define IEEE80211_BAR_CTRL_CBMTID_COMPRESSED_BA  0x0004
 
+/**
+ * struct ieee80211_ba_cb - Compressed BlockAck variant
+ *
+ * This structure refers to "BA Information field" as
+ * described in 802.11n specification section 7.2.1.8.3
+ */
+struct ieee80211_ba_cb {
+	__le16 start_seq_num;
+	__u8 bitmap[8];
+} __attribute__((packed));
+
+/**
+ * struct ieee80211_ba - BlockAck frame
+ *
+ * This structure refers to "BlockAck frame" as
+ * described in 802.11n specification section 7.2.1.8.1
+ */
+struct ieee80211_ba {
+	__le16 frame_control;
+	__le16 duration;
+	__u8 ra[6];
+	__u8 ta[6];
+	__le16 control;
+	union {
+		struct {
+			__le16 start_seq_num;
+			__u8 bitmap[128];
+		} basic __attribute__((packed));
+
+		struct ieee80211_ba_cb cb;
+
+		struct {
+			__le16 per_tid;
+			struct ieee80211_ba_cb cb;
+		} cbmtid[0] __attribute__((packed));
+	} __attribute__((packed));
+} __attribute__((packed));
 
 #define IEEE80211_HT_MCS_MASK_LEN		10
 
#1 lore raw
Quoted 2 lines · Christian Lamparter

This patch adds the BlockAck frame structure as described in 802.11n specification section 7.2.1.8.

No users?