mac80211: make ieee80211_schedule_txq schedule empty TXQs
Currently there is no way for the driver to signal to mac80211 that it should
schedule a TXQ even if there are no packets on the mac80211 part of that queue.
This is problematic if the driver has an internal retry queue to deal with
software A-MPDU retry.
This patch changes the behavior of ieee80211_schedule_txq to always schedule
the queue, as its only user (ath9k) seems to expect such behavior already:
it calls this function on tx status and on powersave wakeup whenever its
internal retry queue is not empty.
Also add an extra argument to ieee80211_return_txq to get the same behavior.
This fixes an issue on ath9k where tx queues with packets to retry (and no
new packets in mac80211) would not get serviced.
Fixes: 89cea7493a
("ath9k: Switch to mac80211 TXQ scheduling and airtime APIs")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

committed by
Johannes Berg

parent
45fcef8b72
commit
2b4a669802
@@ -2728,7 +2728,7 @@ static void ath10k_htt_rx_tx_fetch_ind(struct ath10k *ar, struct sk_buff *skb)
|
||||
num_msdus++;
|
||||
num_bytes += ret;
|
||||
}
|
||||
ieee80211_return_txq(hw, txq);
|
||||
ieee80211_return_txq(hw, txq, false);
|
||||
ieee80211_txq_schedule_end(hw, txq->ac);
|
||||
|
||||
record->num_msdus = cpu_to_le16(num_msdus);
|
||||
|
@@ -4089,7 +4089,7 @@ static int ath10k_mac_schedule_txq(struct ieee80211_hw *hw, u32 ac)
|
||||
if (ret < 0)
|
||||
break;
|
||||
}
|
||||
ieee80211_return_txq(hw, txq);
|
||||
ieee80211_return_txq(hw, txq, false);
|
||||
ath10k_htt_tx_txq_update(hw, txq);
|
||||
if (ret == -EBUSY)
|
||||
break;
|
||||
@@ -4374,7 +4374,7 @@ static void ath10k_mac_op_wake_tx_queue(struct ieee80211_hw *hw,
|
||||
if (ret < 0)
|
||||
break;
|
||||
}
|
||||
ieee80211_return_txq(hw, txq);
|
||||
ieee80211_return_txq(hw, txq, false);
|
||||
ath10k_htt_tx_txq_update(hw, txq);
|
||||
out:
|
||||
ieee80211_txq_schedule_end(hw, ac);
|
||||
|
Reference in New Issue
Block a user