forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
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;