OSDN Git Service

rfkill: allow to get the software rfkill state
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 19 Dec 2021 19:51:24 +0000 (21:51 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Dec 2021 10:02:38 +0000 (11:02 +0100)
commit5bc9a9dd75351023793d8aa4116ead005d659729
tree752306b8657676e8f8d4e6991c491f401490caa2
parent75cca1fac2e11039fefb4f2118a8af50949345dc
rfkill: allow to get the software rfkill state

iwlwifi needs to be able to differentiate between the
software rfkill state and the hardware rfkill state.

The reason for this is that iwlwifi needs to notify any
change in the software rfkill state even when it doesn't
own the device (which means even when the hardware rfkill
is asserted).

In order to be able to know the software rfkill when the
host does not own the device, iwlwifi needs to be able to
ask the state of the software rfkill ignoring the state
of the hardware rfkill.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Link: https://lore.kernel.org/r/20211219195124.125689-1-emmanuel.grumbach@intel.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/rfkill.h
net/rfkill/core.c