OSDN Git Service

staging: wfx: rewrite wfx_hw_scan()
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 17 Dec 2019 16:15:35 +0000 (16:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2019 14:56:30 +0000 (15:56 +0100)
commitd1c015b4ef6f2ab74b19c216cfff07742b7665cf
tree73069d085b1160225b972dc01b85274c9799fd8a
parent094ecec9be6096960cb4ae6a6256759bbba7aa0a
staging: wfx: rewrite wfx_hw_scan()

Scan requests from mac80211 must be splitted in a few hardware requests
(it is necessary to split channels with active scan and channels with
passive scan). Current code schedules a work_struct for each hardware
request and one delayed_work to handle scan timeout.

It is far simpler to run send all the hardware requests synchronously
and replace delayed_work with a simple wait_for_completion_timeout().

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191217161318.31402-51-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/hif_rx.c
drivers/staging/wfx/scan.c
drivers/staging/wfx/scan.h
drivers/staging/wfx/sta.c
drivers/staging/wfx/wfx.h