Skip to contentSkip to conversation

mac80211: move TX status handling

PATCH New Johannes Berg 1 participant 1 message Nov 18, 2009 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: move TX status handling

It's enough code to have its own file, I think.
Especially since I'm going to add to it.

---
 net/mac80211/Makefile      |    2 
 net/mac80211/ieee80211_i.h |   13 +
 net/mac80211/main.c        |  336 --------------------------------------------
 net/mac80211/status.c      |  337 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 351 insertions(+), 337 deletions(-)
net/mac80211/Makefile +1 -1
@@ -2,7 +2,7 @@ obj-$(CONFIG_MAC80211) += mac80211.o
 
 # mac80211 objects
 mac80211-y := \
-	main.o \
+	main.o status.o \
 	sta_info.o \
 	wep.o \
 	wpa.o \
net/mac80211/ieee80211_i.h +13 -0
@@ -23,6 +23,7 @@
 #include <linux/types.h>
 #include <linux/spinlock.h>
 #include <linux/etherdevice.h>
+#include <net/ieee80211_radiotap.h>
 #include <net/cfg80211.h>
 #include <net/mac80211.h>
 #include "key.h"
@@ -948,6 +949,18 @@ netdev_tx_t ieee80211_monitor_start_xmit
 netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
 				       struct net_device *dev);
 
+/*
+ * radiotap header for status frames
+ */
+struct ieee80211_tx_status_rtap_hdr {
+	struct ieee80211_radiotap_header hdr;
+	u8 rate;
+	u8 padding_for_rate;
+	__le16 tx_flags;
+	u8 data_retries;
+} __attribute__ ((packed));
+
+
 /* HT */
 void ieee80211_ht_cap_ie_to_sta_ht_cap(struct ieee80211_supported_band *sband,
 				       struct ieee80211_ht_cap *ht_cap_ie,
net/mac80211/main.c +0 -336

365 lines not on this page · raw message

net/mac80211/status.c new file +337 -0

337 lines not on this page · raw message