diff --git a/mt7615/init.c b/mt7615/init.c index e48345b0..9c41c11e 100644 --- a/mt7615/init.c +++ b/mt7615/init.c @@ -389,6 +389,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;