mt7603: stop tx queues on sta sleep

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2016-02-26 19:00:18 +01:00
parent 1b7134dfac
commit 53e0f26068
+9
View File
@@ -292,6 +292,15 @@ static void
mt7603_sta_notify(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
enum sta_notify_cmd cmd, struct ieee80211_sta *sta)
{
struct mt7603_dev *dev = hw->priv;
switch (cmd) {
case STA_NOTIFY_SLEEP:
mt76_stop_tx_queues(&dev->mt76, sta);
break;
case STA_NOTIFY_AWAKE:
break;
}
}
static int