mac80211: add station aid into ieee80211_tx_control
authorChr <chunkeey@web.de>
Tue, 1 Apr 2008 19:45:18 +0000 (21:45 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Apr 2008 19:05:57 +0000 (15:05 -0400)
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>
include/net/mac80211.h
net/mac80211/tx.c

index 01b32152b89e53074fae44e9494cbf9aef9d58a7..999f970da6ba6983a41b599419c30ef89ce9a16f 100644 (file)
@@ -302,6 +302,7 @@ struct ieee80211_tx_control {
        u8 iv_len;              /* length of the IV field in octets */
        u8 queue;               /* hardware queue to use for this frame;
                                 * 0 = highest, hw->queues-1 = lowest */
+       u16 aid;                /* Station AID */
        int type;       /* internal */
 };
 
index 80f4343a3007e6351294962805974e64c3acf8df..ea3fa0f919066c176a3e34cb6bcb02ced5792ec6 100644 (file)
@@ -741,6 +741,7 @@ ieee80211_tx_h_misc(struct ieee80211_tx_data *tx)
        }
 
        if (tx->sta) {
+               control->aid = tx->sta->aid;
                tx->sta->tx_packets++;
                tx->sta->tx_fragments++;
                tx->sta->tx_bytes += tx->skb->len;