mt76: mt7615: disable hw/sched scan ops for non-offload firmware

Avoid having to attempt hw scan and fall back to software for every scan
on devices/firmware without hw scan support

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2020-04-09 12:26:05 +02:00
parent 25d812dddc
commit 08b8bd2bc9
3 changed files with 15 additions and 1 deletions
+7
View File
@@ -143,6 +143,13 @@ static void mt7615_init_work(struct work_struct *work)
mt7615_mac_init(dev);
mt7615_phy_init(dev);
mt7615_mcu_del_wtbl_all(dev);
if (!mt7615_firmware_offload(dev)) {
dev->ops->hw_scan = NULL;
dev->ops->cancel_hw_scan = NULL;
dev->ops->sched_scan_start = NULL;
dev->ops->sched_scan_stop = NULL;
}
}
static int mt7615_init_hardware(struct mt7615_dev *dev)