mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 05:16:57 +00:00
wifi: mt76: mt7915: set mt76 specific PS flag
mt76 tracks the PSM state of a sta internally with a wcid flag. TX to such clients is skipped based on the presence of this flag. This flag was not added to the PS state notify handler for MT7915 chips. Without this flag, mt76 queues pending frames to the hardware, accounting for airtime when a PSM notification is received while in a TX iteration. Set the PS flag for the STA WCID to prevent this from happening. TX gets skipped in presence of this flag. Signed-off-by: David Bauer <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
3a16c78c9e
commit
bada63e285
@@ -421,6 +421,11 @@ static void mt7915_mcu_rx_ps_sync(struct mt7915_dev *dev, struct sk_buff *skb)
|
||||
if (!sta)
|
||||
goto out;
|
||||
|
||||
if (p->ps_bit)
|
||||
set_bit(MT_WCID_FLAG_PS, &wcid->flags);
|
||||
else
|
||||
clear_bit(MT_WCID_FLAG_PS, &wcid->flags);
|
||||
|
||||
ieee80211_sta_ps_transition_ni(sta, !!p->ps_bit);
|
||||
|
||||
out:
|
||||
|
||||
Reference in New Issue
Block a user