wcn36xx: handle scan cancellation when firmware support is missing
authorDaniel Mack <daniel@zonque.org>
Tue, 17 Apr 2018 13:23:35 +0000 (15:23 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 24 Apr 2018 06:06:13 +0000 (09:06 +0300)
commit89722f5767ac71b66e3077b6a158495eb316a43c
tree41f4308374371261319767f6e36c474d45ff7c10
parent80c764d32122eceb26754d9ffa9718c124c8072e
wcn36xx: handle scan cancellation when firmware support is missing

For firmwares that don't have the SCAN_OFFLOAD feature bit set, do
not call into wcn36xx_smd_stop_hw_scan(). Instead, stop the asynchronous
work and call into ieee80211_scan_completed() immediately.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wcn36xx/main.c