mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
main: set wcid drop mask based on station sleep/wake events
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -271,13 +271,16 @@ mt76_sta_notify(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
{
|
||||
struct mt76_sta *msta = (struct mt76_sta *) sta->drv_priv;
|
||||
struct mt76_dev *dev = hw->priv;
|
||||
int idx = msta->wcid.idx;
|
||||
|
||||
switch (cmd) {
|
||||
case STA_NOTIFY_SLEEP:
|
||||
msta->sleeping = true;
|
||||
mt76_set(dev, MT_WCID_DROP(idx), MT_WCID_DROP_MASK(idx));
|
||||
mt76_stop_tx_queues(dev, sta);
|
||||
break;
|
||||
case STA_NOTIFY_AWAKE:
|
||||
mt76_clear(dev, MT_WCID_DROP(idx), MT_WCID_DROP_MASK(idx));
|
||||
msta->sleeping = false;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user