diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-03-09 17:45:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-13 16:02:36 -0400 |
commit | e4030a2f40a9575bccc71c3e156ca78c7d6fded6 (patch) | |
tree | 940ef924602957259fc7e00bfc9d51624e569c3d /drivers/net/wireless/rt2x00/rt2x00mac.c | |
parent | a4fe07d913096f4573512c9369f8ca824fbc2d8f (diff) |
rt2x00: Check IEEE80211_TXCTL_SEND_AFTER_DTIM flag
When mac sets the IEEE80211_TXCTL_SEND_AFTER_DTIM flag, we should
check if the ATIM queue is available in the driver and put the
frame in that queue for proper behavior (send frame after beacon interval).
Unfortunately not all drivers have this ATIM queue, and will lack
this feature for now.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00mac.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index a54f6873e9ea..76a2a7c118b2 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -99,7 +99,11 @@ int rt2x00mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
99 | /* | 99 | /* |
100 | * Determine which queue to put packet on. | 100 | * Determine which queue to put packet on. |
101 | */ | 101 | */ |
102 | queue = rt2x00queue_get_queue(rt2x00dev, control->queue); | 102 | if (control->flags & IEEE80211_TXCTL_SEND_AFTER_DTIM && |
103 | test_bit(DRIVER_REQUIRE_ATIM_QUEUE, &rt2x00dev->flags)) | ||
104 | queue = rt2x00queue_get_queue(rt2x00dev, RT2X00_BCN_QUEUE_ATIM); | ||
105 | else | ||
106 | queue = rt2x00queue_get_queue(rt2x00dev, control->queue); | ||
103 | if (unlikely(!queue)) { | 107 | if (unlikely(!queue)) { |
104 | ERROR(rt2x00dev, | 108 | ERROR(rt2x00dev, |
105 | "Attempt to send packet over invalid queue %d.\n" | 109 | "Attempt to send packet over invalid queue %d.\n" |