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)
commit6f779a66dc84450ceb4825024d3e337f42e633de
treea13544e76fa97366c54a86a74f2a4900d4a79168
parent0750cfd8b7fd491c9d7c8bd19d9ac380cd3c84ee
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