]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant_i.h
wpa_supplicant: Complete radio works on disable event
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Thu, 13 Feb 2014 09:24:00 +0000 (11:24 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 15 Feb 2014 22:06:23 +0000 (00:06 +0200)
commitb3253ebb73d6d52ac636c5cc6d958955a5a98fca
treee89372485cb2632ccb34c9e46d0799c1f76a94f2
parent55497a51a89d3708e9dbd7ced3e83fd80fa18a36
wpa_supplicant: Complete radio works on disable event

While testing rfkill blocking of a scanning interface, it
was seen that the ongoing scan never completes. This happens
since EVENT_SCAN_RESULTS is discarded on a disabled interface.

Fix this and also other possible radio work completion issues
by removing all the radio works (including started) of the
disabled interface.

To be able to remove already started radio works, make their
callbacks be reentrant with deinit flag (when the work
is started), so each radio work should be able to handle
its own termination.

Signed-hostap: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
wpa_supplicant/ctrl_iface.c
wpa_supplicant/events.c
wpa_supplicant/gas_query.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/scan.c
wpa_supplicant/sme.c
wpa_supplicant/wpa_supplicant.c
wpa_supplicant/wpa_supplicant_i.h