Skip to content

Commit 8aea8e3

Browse files
committed
mt76: allow VHT rate on 2.4GHz
Allow chips that support 11ac to use 256QAM on 2.4GHz Signed-off-by: DENG Qingfang <[email protected]>
1 parent 1456a53 commit 8aea8e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mac80211.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static void mt76_init_stream_cap(struct mt76_dev *dev,
156156
void mt76_set_stream_caps(struct mt76_dev *dev, bool vht)
157157
{
158158
if (dev->cap.has_2ghz)
159-
mt76_init_stream_cap(dev, &dev->phy.sband_2g.sband, false);
159+
mt76_init_stream_cap(dev, &dev->phy.sband_2g.sband, vht);
160160
if (dev->cap.has_5ghz)
161161
mt76_init_stream_cap(dev, &dev->phy.sband_5g.sband, vht);
162162
}
@@ -219,14 +219,14 @@ mt76_init_sband(struct mt76_dev *dev, struct mt76_sband *msband,
219219

220220
static int
221221
mt76_init_sband_2g(struct mt76_dev *dev, struct ieee80211_rate *rates,
222-
int n_rates)
222+
int n_rates, bool vht)
223223
{
224224
dev->hw->wiphy->bands[NL80211_BAND_2GHZ] = &dev->phy.sband_2g.sband;
225225

226226
return mt76_init_sband(dev, &dev->phy.sband_2g,
227227
mt76_channels_2ghz,
228228
ARRAY_SIZE(mt76_channels_2ghz),
229-
rates, n_rates, false);
229+
rates, n_rates, vht);
230230
}
231231

232232
static int
@@ -439,7 +439,7 @@ int mt76_register_device(struct mt76_dev *dev, bool vht,
439439
mt76_phy_init(dev, hw);
440440

441441
if (dev->cap.has_2ghz) {
442-
ret = mt76_init_sband_2g(dev, rates, n_rates);
442+
ret = mt76_init_sband_2g(dev, rates, n_rates, vht);
443443
if (ret)
444444
return ret;
445445
}

0 commit comments

Comments
 (0)