From 53e0f260689958b2ad2ee01565e4768d67e70025 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 26 Feb 2016 19:00:18 +0100 Subject: [PATCH] mt7603: stop tx queues on sta sleep Signed-off-by: Felix Fietkau --- mt7603_main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mt7603_main.c b/mt7603_main.c index 601fa7c7..64600666 100644 --- a/mt7603_main.c +++ b/mt7603_main.c @@ -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