android_kernel_xiaomi_sm8350/net/wimax
Inaky Perez-Gonzalez 81d3f90538 wimax: allow WIMAX_RF_QUERY calls when state is still uninitialized
Until now, calls to wimax_rfkill() will be blocked until the device is
at least past the WIMAX_ST_UNINITIALIZED state, return -ENOMEDIUM when
the device is in the WIMAX_ST_DOWN state.

In parallel, wimax-tools would issue a wimax_rfkill(WIMAX_RF_QUERY)
call right after opening a handle with wimaxll_open() as means to
verify if the interface is really a WiMAX interface [newer kernel
version will have a call specifically for this].

The combination of these two facts is that in some cases, before the
driver has finalized initializing its device's firmware, a
wimaxll_open() call would fail, when it should not.

Thus, change the wimax_rfkill() code to allow queries when the device
is in WIMAX_ST_UNINITIALIZED state.

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
2009-10-19 15:56:14 +09:00
..
debug-levels.h wimax: Add netlink interface to get device state 2009-05-28 18:02:20 -07:00
debugfs.c wimax: Add netlink interface to get device state 2009-05-28 18:02:20 -07:00
id-table.c wimax: fix oops in wimax_dev_get_by_genl_info() when looking up non-wimax iface 2009-02-12 17:00:20 -08:00
Kconfig wimax: depend on rfkill properly 2009-06-04 10:58:15 -04:00
Makefile wimax: Add netlink interface to get device state 2009-05-28 18:02:20 -07:00
op-msg.c wimax: allow user space to send messages once the device is registered 2009-10-19 15:56:13 +09:00
op-reset.c wimax: basic API: kernel/user messaging, rfkill and reset 2009-01-07 10:00:17 -08:00
op-rfkill.c wimax: allow WIMAX_RF_QUERY calls when state is still uninitialized 2009-10-19 15:56:14 +09:00
op-state-get.c wimax: Add netlink interface to get device state 2009-05-28 18:02:20 -07:00
stack.c wimax: allow specifying debug levels as command line option 2009-10-19 15:55:50 +09:00
wimax-internal.h