hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/net/wireless/mediatek/mt76/mac80211.c
....@@ -160,9 +160,9 @@
160160
161161 void mt76_set_stream_caps(struct mt76_phy *phy, bool vht)
162162 {
163
- if (phy->dev->cap.has_2ghz)
163
+ if (phy->cap.has_2ghz)
164164 mt76_init_stream_cap(phy, &phy->sband_2g.sband, false);
165
- if (phy->dev->cap.has_5ghz)
165
+ if (phy->cap.has_5ghz)
166166 mt76_init_stream_cap(phy, &phy->sband_5g.sband, vht);
167167 }
168168 EXPORT_SYMBOL_GPL(mt76_set_stream_caps);
....@@ -463,13 +463,13 @@
463463 dev_set_drvdata(dev->dev, dev);
464464 mt76_phy_init(dev, hw);
465465
466
- if (dev->cap.has_2ghz) {
466
+ if (phy->cap.has_2ghz) {
467467 ret = mt76_init_sband_2g(dev, rates, n_rates);
468468 if (ret)
469469 return ret;
470470 }
471471
472
- if (dev->cap.has_5ghz) {
472
+ if (phy->cap.has_5ghz) {
473473 ret = mt76_init_sband_5g(dev, rates + 4, n_rates - 4, vht);
474474 if (ret)
475475 return ret;