wcn36xx: Add hardware scan offload support
commit2f3bef4b247e4843ebf81123004fa9252b948724
authorLoic Poulain <loic.poulain@linaro.org>
Fri, 8 Dec 2017 09:35:30 +0000 (8 10:35 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 14 Dec 2017 15:28:59 +0000 (14 17:28 +0200)
treec22182d64d1344ebe75742237e1ce7a4d238a381
parentd06f26c5c8a41f246a9c40862a77a55725cedbd3
wcn36xx: Add hardware scan offload support

Current hw_scan implementation does not trigger offloaded
hardware scan and seems to only put the device in a kind of
listening mode (beacon/probe-response) for software scan.
Since no probe request are generated by the software, current
scanning method is similar to a passive scan.

This patch introduces support for 'true' hardware offloaded scan.
Hardware scan is configured and started via the start-scan-offload
firmware message. Once scan has been completed a scan indicator
message is received from firmware.

Moreover, this patch includes support for directed probe-request,
allowing connection with hidden APs. It also fixes scan issues with
band-steering AP which are not 'visible' with passive scan (due to
hidden ssid in beacons).

Let's keep the 'legacy' scanning method in case scan-offload is not
supported.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wcn36xx/hal.h
drivers/net/wireless/ath/wcn36xx/main.c
drivers/net/wireless/ath/wcn36xx/smd.c
drivers/net/wireless/ath/wcn36xx/smd.h