linux/drivers/net/wireless
Andreas Fenkart c70ca8cb9a mwifiex: factor out mwifiex_cancel_pending_scan_cmd
Releasing the scan_pending lock in mwifiex_check_next_scan_command
introduces a short window where pending scan commands can be removed
or added before removing them all in mwifiex_cancel_pending_scan_cmd.
I think this is safe, since the worst thing to happen is that a
pending scan cmd is removed by the command handler. Adding new scan
commands is not possible while one is pending, see scan_processing flag.
Since all commands are removed from the queue anyway, we don't care if
some commands are removed by a different code path earlier, the final
state remains the same.
I assume, that the critical section needed for the check has been
extended over clearing the pending scan queue out of convenience. The
lock was already held and releasing it and grab it again was just
more work. It doesn't seem to be necessary because of concurrency.

Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2016-04-15 21:34:50 +03:00
..
admtek cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
ath cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
atmel cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
broadcom brcmfmac: create common function for handling brcmf_proto_hdrpull() 2016-04-14 15:57:56 +03:00
cisco cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
intel cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
intersil cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
marvell mwifiex: factor out mwifiex_cancel_pending_scan_cmd 2016-04-15 21:34:50 +03:00
mediatek cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
ralink cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
realtek rtl8xxxu: Adjust AFE crystal value on 8192eu 2016-04-14 15:45:30 +03:00
rsi cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
st cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
ti cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
zydas cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
Kconfig mac80211_hwsim: move Kconfig entry for sorting alphabetically 2015-11-18 15:23:36 +02:00
mac80211_hwsim.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
mac80211_hwsim.h
Makefile ath: unify Kconfig with other vendors 2015-11-18 14:28:31 +02:00
ray_cs.c ray_cs: Change 1 to true for bool type variable. 2015-06-02 23:30:14 +03:00
ray_cs.h
rayctl.h
rndis_wlan.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
wl3501_cs.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
wl3501.h