projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ae0eab
)
wifi: mt76: mt7915: fix slot time for 5/6GHz
author
Felix Fietkau
<nbd@nbd.name>
Mon, 30 Dec 2024 19:41:51 +0000
(20:41 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Tue, 14 Jan 2025 12:34:36 +0000
(13:34 +0100)
It should only be set to 20 for long slot time on 2.4 GHz
Link:
https://patch.msgid.link/20241230194202.95065-3-nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7915/main.c
b/drivers/net/wireless/mediatek/mt76/mt7915/main.c
index 351285daac99f73a3bb822e6ba47c91569c0c589..2d4457fbb5abdb90ceced255bae026fcef3e89aa 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7915/main.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7915/main.c
@@
-634,7
+634,11
@@
static void mt7915_bss_info_changed(struct ieee80211_hw *hw,
mt7915_mac_enable_rtscts(dev, vif, info->use_cts_prot);
if (changed & BSS_CHANGED_ERP_SLOT) {
- int slottime = info->use_short_slot ? 9 : 20;
+ int slottime = 9;
+
+ if (phy->mt76->chandef.chan->band == NL80211_BAND_2GHZ &&
+ !info->use_short_slot)
+ slottime = 20;
if (slottime != phy->slottime) {
phy->slottime = slottime;