Skip to content

Commit

Permalink
mt76: allow VHT rate on 2.4GHz
Browse files Browse the repository at this point in the history
Allow chips that support 11ac to use 256QAM on 2.4GHz

Signed-off-by: DENG Qingfang <[email protected]>
  • Loading branch information
dengqf6 committed Dec 5, 2019
1 parent 1456a53 commit 8aea8e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ static void mt76_init_stream_cap(struct mt76_dev *dev,
void mt76_set_stream_caps(struct mt76_dev *dev, bool vht)
{
if (dev->cap.has_2ghz)
mt76_init_stream_cap(dev, &dev->phy.sband_2g.sband, false);
mt76_init_stream_cap(dev, &dev->phy.sband_2g.sband, vht);
if (dev->cap.has_5ghz)
mt76_init_stream_cap(dev, &dev->phy.sband_5g.sband, vht);
}
Expand Down Expand Up @@ -219,14 +219,14 @@ mt76_init_sband(struct mt76_dev *dev, struct mt76_sband *msband,

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

return mt76_init_sband(dev, &dev->phy.sband_2g,
mt76_channels_2ghz,
ARRAY_SIZE(mt76_channels_2ghz),
rates, n_rates, false);
rates, n_rates, vht);
}

static int
Expand Down Expand Up @@ -439,7 +439,7 @@ int mt76_register_device(struct mt76_dev *dev, bool vht,
mt76_phy_init(dev, hw);

if (dev->cap.has_2ghz) {
ret = mt76_init_sband_2g(dev, rates, n_rates);
ret = mt76_init_sband_2g(dev, rates, n_rates, vht);
if (ret)
return ret;
}
Expand Down

0 comments on commit 8aea8e3

Please sign in to comment.