diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2021-12-19 22:51:24 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2021-12-20 13:02:38 +0300 |
commit | 5bc9a9dd75351023793d8aa4116ead005d659729 (patch) | |
tree | 752306b8657676e8f8d4e6991c491f401490caa2 /include/linux/rfkill.h | |
parent | 75cca1fac2e11039fefb4f2118a8af50949345dc (diff) | |
download | linux-5bc9a9dd75351023793d8aa4116ead005d659729.tar.xz |
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>
Diffstat (limited to 'include/linux/rfkill.h')
-rw-r--r-- | include/linux/rfkill.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h index 231e06b74b50..c35f3962dc4f 100644 --- a/include/linux/rfkill.h +++ b/include/linux/rfkill.h @@ -230,6 +230,13 @@ void rfkill_set_states(struct rfkill *rfkill, bool sw, bool hw); bool rfkill_blocked(struct rfkill *rfkill); /** + * rfkill_soft_blocked - Query soft rfkill block state + * + * @rfkill: rfkill struct to query + */ +bool rfkill_soft_blocked(struct rfkill *rfkill); + +/** * rfkill_find_type - Helper for finding rfkill type by name * @name: the name of the type * |