hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/net/wireless/mediatek/mt76/mt76x0/init.c
....@@ -245,7 +245,7 @@
245245 if (ret)
246246 return ret;
247247
248
- if (dev->mt76.cap.has_5ghz) {
248
+ if (dev->mphy.cap.has_5ghz) {
249249 struct ieee80211_supported_band *sband;
250250
251251 sband = &dev->mphy.sband_5g.sband;
....@@ -253,7 +253,7 @@
253253 mt76x0_init_txpower(dev, sband);
254254 }
255255
256
- if (dev->mt76.cap.has_2ghz)
256
+ if (dev->mphy.cap.has_2ghz)
257257 mt76x0_init_txpower(dev, &dev->mphy.sband_2g.sband);
258258
259259 mt76x02_init_debugfs(dev);