Skip to content

Commit 421033d

Browse files
paulfertserKalle Valo
authored andcommitted
wifi: mt76: mt7615: do not advertise 5 GHz on first phy of MT7615D (DBDC)
On DBDC devices the first (internal) phy is only capable of using 2.4 GHz band, and the 5 GHz band is exposed via a separate phy object, so avoid the false advertising. Reported-by: Rani Hod <rani.hod@gmail.com> Closes: openwrt/openwrt#12361 Fixes: 7660a1b ("mt76: mt7615: register ext_phy if DBDC is detected") Cc: stable@vger.kernel.org Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Acked-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230605073408.8699-1-fercerpav@gmail.com
1 parent ac52864 commit 421033d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • drivers/net/wireless/mediatek/mt76/mt7615

drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ mt7615_eeprom_parse_hw_band_cap(struct mt7615_dev *dev)
128128
case MT_EE_5GHZ:
129129
dev->mphy.cap.has_5ghz = true;
130130
break;
131-
case MT_EE_2GHZ:
132-
dev->mphy.cap.has_2ghz = true;
133-
break;
134131
case MT_EE_DBDC:
135132
dev->dbdc_support = true;
136133
fallthrough;
134+
case MT_EE_2GHZ:
135+
dev->mphy.cap.has_2ghz = true;
136+
break;
137137
default:
138138
dev->mphy.cap.has_2ghz = true;
139139
dev->mphy.cap.has_5ghz = true;

0 commit comments

Comments
 (0)