Browse Source

mac80211: add station aid into ieee80211_tx_control

This patch is necessary for the upcoming Accesspoint patch for p54.

Signed-off-by: Christian Lamparter <chunkeey@web.de>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Chr 17 years ago
parent
commit
fff7710937
2 changed files with 2 additions and 0 deletions
  1. 1 0
      include/net/mac80211.h
  2. 1 0
      net/mac80211/tx.c

+ 1 - 0
include/net/mac80211.h

@@ -302,6 +302,7 @@ struct ieee80211_tx_control {
 	u8 iv_len;		/* length of the IV field in octets */
 	u8 iv_len;		/* length of the IV field in octets */
 	u8 queue;		/* hardware queue to use for this frame;
 	u8 queue;		/* hardware queue to use for this frame;
 				 * 0 = highest, hw->queues-1 = lowest */
 				 * 0 = highest, hw->queues-1 = lowest */
+	u16 aid;		/* Station AID */
 	int type;	/* internal */
 	int type;	/* internal */
 };
 };
 
 

+ 1 - 0
net/mac80211/tx.c

@@ -741,6 +741,7 @@ ieee80211_tx_h_misc(struct ieee80211_tx_data *tx)
 	}
 	}
 
 
 	if (tx->sta) {
 	if (tx->sta) {
+		control->aid = tx->sta->aid;
 		tx->sta->tx_packets++;
 		tx->sta->tx_packets++;
 		tx->sta->tx_fragments++;
 		tx->sta->tx_fragments++;
 		tx->sta->tx_bytes += tx->skb->len;
 		tx->sta->tx_bytes += tx->skb->len;