]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: allow specifying a reason for hw_rfkill
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 22 Mar 2021 20:46:31 +0000 (22:46 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Apr 2021 11:05:56 +0000 (13:05 +0200)
commita0f1bea01904c5363a4b61892ee6afc9d464a3f7
treea13544e76fa97366c54a86a74f2a4900d4a79168
parentaf2414e59776a3c27d2da8585250d8b3f0a23847
cfg80211: allow specifying a reason for hw_rfkill

rfkill now allows to report a reason for the hw_rfkill state.
Allow cfg80211 drivers to specify this reason.
Keep the current API to use the default reason
(RFKILL_HARD_BLOCK_SIGNAL).

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Link: https://lore.kernel.org/r/20210322204633.102581-4-emmanuel.grumbach@intel.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/core.c