| .. | .. |
|---|
| 528 | 528 | { |
|---|
| 529 | 529 | struct ieee80211_sband_iftype_data *data; |
|---|
| 530 | 530 | struct ieee80211_supported_band *band; |
|---|
| 531 | | - struct mt76_dev *mdev = &phy->dev->mt76; |
|---|
| 532 | 531 | int n; |
|---|
| 533 | 532 | |
|---|
| 534 | | - if (mdev->cap.has_2ghz) { |
|---|
| 533 | + if (phy->mt76->cap.has_2ghz) { |
|---|
| 535 | 534 | data = phy->iftype[NL80211_BAND_2GHZ]; |
|---|
| 536 | 535 | n = mt7915_init_he_caps(phy, NL80211_BAND_2GHZ, data); |
|---|
| 537 | 536 | |
|---|
| .. | .. |
|---|
| 540 | 539 | band->n_iftype_data = n; |
|---|
| 541 | 540 | } |
|---|
| 542 | 541 | |
|---|
| 543 | | - if (mdev->cap.has_5ghz) { |
|---|
| 542 | + if (phy->mt76->cap.has_5ghz) { |
|---|
| 544 | 543 | data = phy->iftype[NL80211_BAND_5GHZ]; |
|---|
| 545 | 544 | n = mt7915_init_he_caps(phy, NL80211_BAND_5GHZ, data); |
|---|
| 546 | 545 | |
|---|