Skip to content

Commit 96c7777

Browse files
committed
mt76: mt7915: fix DBDC default band selection on MT7915D
This code was accidentally dropped while adding 6 GHz support Fixes: b4d093e ("mt76: mt7915: add 6 GHz support") Signed-off-by: Felix Fietkau <[email protected]>
1 parent ad732da commit 96c7777

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7915

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ static void mt7915_eeprom_parse_band_config(struct mt7915_phy *phy)
152152
phy->mt76->cap.has_2ghz = true;
153153
return;
154154
}
155+
} else if (val == MT_EE_BAND_SEL_DEFAULT && dev->dbdc_support) {
156+
val = phy->band_idx ? MT_EE_BAND_SEL_5GHZ : MT_EE_BAND_SEL_2GHZ;
155157
}
156158

157159
switch (val) {

0 commit comments

Comments
 (0)