From: Felix Fietkau <nbd@nbd.name>
To: linux-wireless@vger.kernel.org
Cc: kvalo@codeaurora.org
Subject: [PATCH 3/7] mt76: toggle driver station powersave bit before notifying mac80211
Date: Tue, 3 Apr 2018 21:52:50 +0200 [thread overview]
Message-ID: <20180403195254.87700-3-nbd@nbd.name> (raw)
In-Reply-To: <20180403195254.87700-1-nbd@nbd.name>
Avoids race conditions from mac80211 enqueueing tx packets before the
tx-drop bit is cleared
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
drivers/net/wireless/mediatek/mt76/mac80211.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/mediatek/mt76/mac80211.c b/drivers/net/wireless/mediatek/mt76/mac80211.c
index ec531ce50d01..eb49e0a6758c 100644
--- a/drivers/net/wireless/mediatek/mt76/mac80211.c
+++ b/drivers/net/wireless/mediatek/mt76/mac80211.c
@@ -547,8 +547,8 @@ mt76_check_ps(struct mt76_dev *dev, struct sk_buff *skb)
else
clear_bit(MT_WCID_FLAG_PS, &wcid->flags);
- ieee80211_sta_ps_transition(sta, ps);
dev->drv->sta_ps(dev, sta, ps);
+ ieee80211_sta_ps_transition(sta, ps);
}
void mt76_rx_complete(struct mt76_dev *dev, struct sk_buff_head *frames,
--
2.14.2
next prev parent reply other threads:[~2018-04-03 19:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-03 19:52 [PATCH 1/7] mt76: stop tx queues from the driver callback instead of common code Felix Fietkau
2018-04-03 19:52 ` [PATCH 2/7] mt76: add missing VHT maximum A-MPDU length capability Felix Fietkau
2018-04-03 19:52 ` Felix Fietkau [this message]
2018-04-03 19:52 ` [PATCH 4/7] mt76: rework tx power handling Felix Fietkau
2018-04-03 19:52 ` [PATCH 5/7] mt76: fix potential sleep in atomic context Felix Fietkau
2018-04-03 19:52 ` [PATCH 6/7] mt76: set RX_FLAG_DUP_VALIDATED for A-MPDU reordered packets Felix Fietkau
2018-04-03 19:52 ` [PATCH 7/7] mt76: check qos ack policy before reordering packets Felix Fietkau
2018-04-24 17:30 ` [1/7] mt76: stop tx queues from the driver callback instead of common code Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180403195254.87700-3-nbd@nbd.name \
--to=nbd@nbd.name \
--cc=kvalo@codeaurora.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox