Commit e4030a2f authored by Ivo van Doorn's avatar Ivo van Doorn Committed by John W. Linville

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: default avatarIvo van Doorn <IvDoorn@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent a4fe07d9
...@@ -99,6 +99,10 @@ int rt2x00mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb, ...@@ -99,6 +99,10 @@ int rt2x00mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb,
/* /*
* Determine which queue to put packet on. * Determine which queue to put packet on.
*/ */
if (control->flags & IEEE80211_TXCTL_SEND_AFTER_DTIM &&
test_bit(DRIVER_REQUIRE_ATIM_QUEUE, &rt2x00dev->flags))
queue = rt2x00queue_get_queue(rt2x00dev, RT2X00_BCN_QUEUE_ATIM);
else
queue = rt2x00queue_get_queue(rt2x00dev, control->queue); queue = rt2x00queue_get_queue(rt2x00dev, control->queue);
if (unlikely(!queue)) { if (unlikely(!queue)) {
ERROR(rt2x00dev, ERROR(rt2x00dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment