diff options
author | Chr <chunkeey@web.de> | 2008-04-01 15:45:18 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-08 15:05:57 -0400 |
commit | fff7710937f755099209357e5b5740d42a2c9f97 (patch) | |
tree | 662338e2e4ae258fcca7b32b1b803137c56b3487 | |
parent | 2aee82de5238625a7664f88d6ebff9de467bb685 (diff) |
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>
-rw-r--r-- | include/net/mac80211.h | 1 | ||||
-rw-r--r-- | net/mac80211/tx.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 01b32152b89e..999f970da6ba 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -302,6 +302,7 @@ struct ieee80211_tx_control { | |||
302 | u8 iv_len; /* length of the IV field in octets */ | 302 | u8 iv_len; /* length of the IV field in octets */ |
303 | u8 queue; /* hardware queue to use for this frame; | 303 | u8 queue; /* hardware queue to use for this frame; |
304 | * 0 = highest, hw->queues-1 = lowest */ | 304 | * 0 = highest, hw->queues-1 = lowest */ |
305 | u16 aid; /* Station AID */ | ||
305 | int type; /* internal */ | 306 | int type; /* internal */ |
306 | }; | 307 | }; |
307 | 308 | ||
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 80f4343a3007..ea3fa0f91906 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -741,6 +741,7 @@ ieee80211_tx_h_misc(struct ieee80211_tx_data *tx) | |||
741 | } | 741 | } |
742 | 742 | ||
743 | if (tx->sta) { | 743 | if (tx->sta) { |
744 | control->aid = tx->sta->aid; | ||
744 | tx->sta->tx_packets++; | 745 | tx->sta->tx_packets++; |
745 | tx->sta->tx_fragments++; | 746 | tx->sta->tx_fragments++; |
746 | tx->sta->tx_bytes += tx->skb->len; | 747 | tx->sta->tx_bytes += tx->skb->len; |