mt76: mt7615: do not mark sched_scan disabled in mt7615_scan_work
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 30 Apr 2020 07:59:31 +0000 (09:59 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 12 May 2020 17:52:33 +0000 (19:52 +0200)
For the moment offload firmware supports just one entry in the scheduled
scan plan and so it runs till it is disabled by the userspace.
Do not mark the hw scheduled scan as disabled in mt7615_scan_work
after receiving a scan result

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/main.c

index 23bc7f1262d0bb2f27b16a21ca6211534366b507..5e54c7ffae0b78aab414afb5b5e6fc7912bd02e1 100644 (file)
@@ -818,7 +818,6 @@ void mt7615_scan_work(struct work_struct *work)
                        clear_bit(MT76_HW_SCANNING, &phy->mt76->state);
                        ieee80211_scan_completed(phy->mt76->hw, &info);
                } else {
-                       clear_bit(MT76_HW_SCHED_SCANNING, &phy->mt76->state);
                        ieee80211_sched_scan_results(phy->mt76->hw);
                }
                dev_kfree_skb(skb);