@@ -156,7 +156,7 @@ static void mt76_init_stream_cap(struct mt76_dev *dev,
156
156
void mt76_set_stream_caps (struct mt76_dev * dev , bool vht )
157
157
{
158
158
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 );
160
160
if (dev -> cap .has_5ghz )
161
161
mt76_init_stream_cap (dev , & dev -> phy .sband_5g .sband , vht );
162
162
}
@@ -219,14 +219,14 @@ mt76_init_sband(struct mt76_dev *dev, struct mt76_sband *msband,
219
219
220
220
static int
221
221
mt76_init_sband_2g (struct mt76_dev * dev , struct ieee80211_rate * rates ,
222
- int n_rates )
222
+ int n_rates , bool vht )
223
223
{
224
224
dev -> hw -> wiphy -> bands [NL80211_BAND_2GHZ ] = & dev -> phy .sband_2g .sband ;
225
225
226
226
return mt76_init_sband (dev , & dev -> phy .sband_2g ,
227
227
mt76_channels_2ghz ,
228
228
ARRAY_SIZE (mt76_channels_2ghz ),
229
- rates , n_rates , false );
229
+ rates , n_rates , vht );
230
230
}
231
231
232
232
static int
@@ -439,7 +439,7 @@ int mt76_register_device(struct mt76_dev *dev, bool vht,
439
439
mt76_phy_init (dev , hw );
440
440
441
441
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 );
443
443
if (ret )
444
444
return ret ;
445
445
}
0 commit comments