wifi: wfx: scan_lock is global to the device
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Wed, 4 Oct 2023 17:28:41 +0000 (19:28 +0200)
committerKalle Valo <kvalo@kernel.org>
Mon, 9 Oct 2023 06:53:07 +0000 (09:53 +0300)
commit04106ec5bb025f275d0e18553c253adf12a0cc8a
tree30f3f99662e2a1713d8c54dd342c9d9ab1e98d91
parentf091bcb62dc6d38ba7c024f083b78e3907a4f079
wifi: wfx: scan_lock is global to the device

Currently, one scan_lock is associated to each vif. However, concurrent
scan on vifs is explicitly prohibited by the device. Currently,
scan_lock is associated with a vif but it is always locked with
conf_mutex (there is a case where conf_mutex is not associated to
scan_lock but scan_lock is tested on all interfaces). So concurrent scan
on vifs cannot happen.

So, this patch relocate scan_lock to the device and simplify the code.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231004172843.195332-7-jerome.pouiller@silabs.com
drivers/net/wireless/silabs/wfx/main.c
drivers/net/wireless/silabs/wfx/scan.c
drivers/net/wireless/silabs/wfx/sta.c
drivers/net/wireless/silabs/wfx/wfx.h