]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/ctrl_iface.c
Add framework for exclusive radio operations
authorJouni Malinen <j@w1.fi>
Sun, 24 Nov 2013 19:42:17 +0000 (21:42 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 5 Jan 2014 20:37:03 +0000 (22:37 +0200)
commitb1ae396f59b1e5b31b011eb1f6bb7aa794a88f94
treec8cb48cbe89e8c1afd9d687145e49f096cc0b07e
parentdd43aaa5098f4ef9bce5263f94e8197b0df266c9
Add framework for exclusive radio operations

The new radio work item concept can be used to request time for an
operation that requires exclusive radio control, e.g., a scan. Once the
radio is available, the registered callback function will be called.
radio_work_done() must be called once the exclusive radio operation has
been completed, so that the radio is freed for other operations. The
special case of deinit=1 is used to free the context data during
interface removal. That does not allow the callback function to start
the radio operation, i.e., it needs to free the allocated resources
and return.

Signed-hostap: Jouni Malinen <j@w1.fi>
wpa_supplicant/ctrl_iface.c
wpa_supplicant/wpa_supplicant.c
wpa_supplicant/wpa_supplicant_i.h