Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mt76: allow VHT rate on 2.4GHz #333

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,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)
mt76_init_stream_cap(phy, &phy->sband_2g.sband, false);
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);
}
Expand Down Expand Up @@ -223,13 +223,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,
int n_rates)
int n_rates, bool vht)
{
phy->hw->wiphy->bands[NL80211_BAND_2GHZ] = &phy->sband_2g.sband;

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

static int
Expand Down Expand Up @@ -358,7 +358,7 @@ int mt76_register_phy(struct mt76_phy *phy, bool vht,
mt76_phy_init(phy, phy->hw);

if (phy->cap.has_2ghz) {
ret = mt76_init_sband_2g(phy, rates, n_rates);
ret = mt76_init_sband_2g(phy, rates, n_rates, vht);
if (ret)
return ret;
}
Expand Down Expand Up @@ -454,7 +454,7 @@ int mt76_register_device(struct mt76_dev *dev, bool vht,
mt76_phy_init(phy, hw);

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