forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c
....@@ -52,15 +52,15 @@
5252
5353 mt76x02_eeprom_parse_hw_cap(dev);
5454 dev_dbg(dev->mt76.dev, "2GHz %d 5GHz %d\n",
55
- dev->mt76.cap.has_2ghz, dev->mt76.cap.has_5ghz);
55
+ dev->mphy.cap.has_2ghz, dev->mphy.cap.has_5ghz);
5656
5757 if (dev->no_2ghz) {
58
- dev->mt76.cap.has_2ghz = false;
58
+ dev->mphy.cap.has_2ghz = false;
5959 dev_dbg(dev->mt76.dev, "mask out 2GHz support\n");
6060 }
6161
6262 if (is_mt7630(dev)) {
63
- dev->mt76.cap.has_5ghz = false;
63
+ dev->mphy.cap.has_5ghz = false;
6464 dev_dbg(dev->mt76.dev, "mask out 5GHz support\n");
6565 }
6666