diff --git a/mt7615/eeprom.c b/mt7615/eeprom.c index 22e4eabe..f4756bb9 100644 --- a/mt7615/eeprom.c +++ b/mt7615/eeprom.c @@ -125,6 +125,9 @@ mt7615_eeprom_parse_hw_band_cap(struct mt7615_dev *dev) case MT_EE_2GHZ: dev->mt76.cap.has_2ghz = true; break; + case MT_EE_DBDC: + dev->dbdc_support = true; + /* fall through */ default: dev->mt76.cap.has_2ghz = true; dev->mt76.cap.has_5ghz = true; diff --git a/mt7615/mt7615.h b/mt7615/mt7615.h index 571eadc0..e93f87af 100644 --- a/mt7615/mt7615.h +++ b/mt7615/mt7615.h @@ -278,6 +278,7 @@ struct mt7615_dev { bool fw_debug; bool flash_eeprom; + bool dbdc_support; spinlock_t token_lock; struct idr token; diff --git a/mt7615/pci_init.c b/mt7615/pci_init.c index 7224a007..06a0f8f7 100644 --- a/mt7615/pci_init.c +++ b/mt7615/pci_init.c @@ -25,6 +25,9 @@ static void mt7615_init_work(struct work_struct *work) mt7615_phy_init(dev); mt7615_mcu_del_wtbl_all(dev); mt7615_check_offload_capability(dev); + + if (dev->dbdc_support) + mt7615_register_ext_phy(dev); } static int mt7615_init_hardware(struct mt7615_dev *dev)