OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68232ef
)
mt76: mt7921: send EAPOL frames at lowest rate
author
Ryder Lee
<ryder.lee@mediatek.com>
Sat, 17 Jul 2021 05:05:49 +0000
(13:05 +0800)
committer
Felix Fietkau
<nbd@nbd.name>
Wed, 20 Oct 2021 08:36:30 +0000
(10:36 +0200)
The firmware rate control may choose the high rate for EAPOL frames,
so checking IEEE80211_TX_CTL_USE_MINRATE to use the lowest TX rate.
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/mac.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7921/mac.c
b/drivers/net/wireless/mediatek/mt76/mt7921/mac.c
index
d64a266
..
6ff8121
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7921/mac.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7921/mac.c
@@
-702,7
+702,8
@@
mt7921_mac_write_txwi_80211(struct mt7921_dev *dev, __le32 *txwi,
txwi[3] &= ~cpu_to_le32(MT_TXD3_PROTECT_FRAME);
}
- if (!ieee80211_is_data(fc) || multicast)
+ if (!ieee80211_is_data(fc) || multicast ||
+ info->flags & IEEE80211_TX_CTL_USE_MINRATE)
val |= MT_TXD2_FIX_RATE;
txwi[2] |= cpu_to_le32(val);