mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user