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 <[email protected]> Closes: openwrt/openwrt#12361 Fixes: 7660a1b ("mt76: mt7615: register ext_phy if DBDC is detected") Cc: [email protected] Signed-off-by: Paul Fertser <[email protected]> Reviewed-by: Simon Horman <[email protected]> Acked-by: Felix Fietkau <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ac52864 commit 421033d

File tree

1 file changed

+3
-3
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7615

1 file changed

+3
-3
lines changed

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)