| .. | .. |
|---|
| 100 | 100 | |
|---|
| 101 | 101 | if (is_mt7663(&dev->mt76)) { |
|---|
| 102 | 102 | /* dual band */ |
|---|
| 103 | | - dev->mt76.cap.has_2ghz = true; |
|---|
| 104 | | - dev->mt76.cap.has_5ghz = true; |
|---|
| 103 | + dev->mphy.cap.has_2ghz = true; |
|---|
| 104 | + dev->mphy.cap.has_5ghz = true; |
|---|
| 105 | 105 | return; |
|---|
| 106 | 106 | } |
|---|
| 107 | 107 | |
|---|
| 108 | 108 | if (is_mt7622(&dev->mt76)) { |
|---|
| 109 | 109 | /* 2GHz only */ |
|---|
| 110 | | - dev->mt76.cap.has_2ghz = true; |
|---|
| 110 | + dev->mphy.cap.has_2ghz = true; |
|---|
| 111 | 111 | return; |
|---|
| 112 | 112 | } |
|---|
| 113 | 113 | |
|---|
| 114 | 114 | if (is_mt7611(&dev->mt76)) { |
|---|
| 115 | 115 | /* 5GHz only */ |
|---|
| 116 | | - dev->mt76.cap.has_5ghz = true; |
|---|
| 116 | + dev->mphy.cap.has_5ghz = true; |
|---|
| 117 | 117 | return; |
|---|
| 118 | 118 | } |
|---|
| 119 | 119 | |
|---|
| .. | .. |
|---|
| 121 | 121 | eeprom[MT_EE_WIFI_CONF]); |
|---|
| 122 | 122 | switch (val) { |
|---|
| 123 | 123 | case MT_EE_5GHZ: |
|---|
| 124 | | - dev->mt76.cap.has_5ghz = true; |
|---|
| 125 | | - break; |
|---|
| 126 | | - case MT_EE_2GHZ: |
|---|
| 127 | | - dev->mt76.cap.has_2ghz = true; |
|---|
| 124 | + dev->mphy.cap.has_5ghz = true; |
|---|
| 128 | 125 | break; |
|---|
| 129 | 126 | case MT_EE_DBDC: |
|---|
| 130 | 127 | dev->dbdc_support = true; |
|---|
| 131 | | - /* fall through */ |
|---|
| 128 | + fallthrough; |
|---|
| 129 | + case MT_EE_2GHZ: |
|---|
| 130 | + dev->mphy.cap.has_2ghz = true; |
|---|
| 131 | + break; |
|---|
| 132 | 132 | default: |
|---|
| 133 | | - dev->mt76.cap.has_2ghz = true; |
|---|
| 134 | | - dev->mt76.cap.has_5ghz = true; |
|---|
| 133 | + dev->mphy.cap.has_2ghz = true; |
|---|
| 134 | + dev->mphy.cap.has_5ghz = true; |
|---|
| 135 | 135 | break; |
|---|
| 136 | 136 | } |
|---|
| 137 | 137 | } |
|---|