mt76: stop tx queues from the driver callback instead of common code
Allows the driver to control whether to send a BlockAckReq after waking up. MT76x2 needs this set to true, for MT7603 (to be submitted later) it needs to be false. Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:

committed by
Kalle Valo

parent
00dfae9a0a
commit
11b2a25f02
@@ -541,12 +541,10 @@ mt76_check_ps(struct mt76_dev *dev, struct sk_buff *skb)
|
||||
if (!!test_bit(MT_WCID_FLAG_PS, &wcid->flags) == ps)
|
||||
return;
|
||||
|
||||
if (ps) {
|
||||
if (ps)
|
||||
set_bit(MT_WCID_FLAG_PS, &wcid->flags);
|
||||
mt76_stop_tx_queues(dev, sta, true);
|
||||
} else {
|
||||
else
|
||||
clear_bit(MT_WCID_FLAG_PS, &wcid->flags);
|
||||
}
|
||||
|
||||
ieee80211_sta_ps_transition(sta, ps);
|
||||
dev->drv->sta_ps(dev, sta, ps);
|
||||
|
Reference in New Issue
Block a user