It is only supported on MT7615 Signed-off-by: Felix Fietkau <nbd@xxxxxxxx> --- drivers/net/wireless/mediatek/mt76/mt7615/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/init.c b/drivers/net/wireless/mediatek/mt76/mt7615/init.c index 79b177ac4261..2f6ad2b24464 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/init.c @@ -383,6 +383,9 @@ int mt7615_register_ext_phy(struct mt7615_dev *dev) struct mt76_phy *mphy; int ret; + if (!is_mt7615(&dev->mt76)) + return -EOPNOTSUPP; + if (test_bit(MT76_STATE_RUNNING, &dev->mphy.state)) return -EINVAL; -- 2.24.0