hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/net/wireless/mediatek/mt76/mt7915/init.c
....@@ -528,10 +528,9 @@
528528 {
529529 struct ieee80211_sband_iftype_data *data;
530530 struct ieee80211_supported_band *band;
531
- struct mt76_dev *mdev = &phy->dev->mt76;
532531 int n;
533532
534
- if (mdev->cap.has_2ghz) {
533
+ if (phy->mt76->cap.has_2ghz) {
535534 data = phy->iftype[NL80211_BAND_2GHZ];
536535 n = mt7915_init_he_caps(phy, NL80211_BAND_2GHZ, data);
537536
....@@ -540,7 +539,7 @@
540539 band->n_iftype_data = n;
541540 }
542541
543
- if (mdev->cap.has_5ghz) {
542
+ if (phy->mt76->cap.has_5ghz) {
544543 data = phy->iftype[NL80211_BAND_5GHZ];
545544 n = mt7915_init_he_caps(phy, NL80211_BAND_5GHZ, data);
546545