mt76: refresh patch

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2021-11-27 20:54:48 +08:00
parent e2e94600f3
commit 041036b367
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -1,6 +1,20 @@
From ed0b9c38becdbf9379787ca0b4db557f03a31dd7 Mon Sep 17 00:00:00 2001
From: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Date: Mon, 23 Nov 2020 10:46:37 +0800
Subject: [PATCH] mt76: allow VHT rate on 2.4GHz
Allow chips that support 11ac to use 256QAM on 2.4GHz
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
---
mac80211.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/mac80211.c b/mac80211.c
index 766681a4..06aa4228 100644
--- a/mac80211.c
+++ b/mac80211.c
@@ -160,7 +160,7 @@ static void mt76_init_stream_cap(struct
@@ -264,7 +264,7 @@ static void mt76_init_stream_cap(struct mt76_phy *phy,
void mt76_set_stream_caps(struct mt76_phy *phy, bool vht)
{
if (phy->cap.has_2ghz)
@ -8,8 +22,8 @@
+ mt76_init_stream_cap(phy, &phy->sband_2g.sband, vht);
if (phy->cap.has_5ghz)
mt76_init_stream_cap(phy, &phy->sband_5g.sband, vht);
}
@@ -223,13 +223,13 @@ mt76_init_sband(struct mt76_phy *phy, st
if (phy->cap.has_6ghz)
@@ -333,13 +333,13 @@ mt76_init_sband(struct mt76_phy *phy, struct mt76_sband *msband,
static int
mt76_init_sband_2g(struct mt76_phy *phy, struct ieee80211_rate *rates,
@ -20,12 +34,12 @@
return mt76_init_sband(phy, &phy->sband_2g, mt76_channels_2ghz,
ARRAY_SIZE(mt76_channels_2ghz), rates,
- n_rates, false);
+ n_rates, vht);
- n_rates, true, false);
+ n_rates, true, vht);
}
static int
@@ -358,7 +358,7 @@ int mt76_register_phy(struct mt76_phy *p
@@ -475,7 +475,7 @@ int mt76_register_phy(struct mt76_phy *phy, bool vht,
mt76_phy_init(phy, phy->hw);
if (phy->cap.has_2ghz) {
@ -34,7 +48,7 @@
if (ret)
return ret;
}
@@ -454,7 +454,7 @@ int mt76_register_device(struct mt76_dev
@@ -594,7 +594,7 @@ int mt76_register_device(struct mt76_dev *dev, bool vht,
mt76_phy_init(phy, hw);
if (phy->cap.has_2ghz) {