wifi: cfg80211: export DFS CAC time and usable state helper functions
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Tue, 12 Sep 2023 05:18:55 +0000 (10:48 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 13 Sep 2023 11:24:11 +0000 (13:24 +0200)
commit30ca8b0c4d6c9fb1d76e5894b1e8bf7c6a12224d
tree57dbb16b43551c721c19329cd39b8b253e97f46a
parentb13b6bbfbb627884f18982600f7b5a5200652531
wifi: cfg80211: export DFS CAC time and usable state helper functions

cfg80211 has cfg80211_chandef_dfs_usable() function to know whether
at least one channel in the chandef is in usable state or not. Also,
cfg80211_chandef_dfs_cac_time() function is there which tells the CAC
time required for the given chandef.

Make these two functions visible to drivers by exporting their symbol
to global list of kernel symbols.

Lower level drivers can make use of these two functions to be aware
if CAC is required on the given chandef and for how long. For example
drivers which maintains the CAC state internally can make use of these.

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Link: https://lore.kernel.org/r/20230912051857.2284-2-quic_adisi@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/chan.c
net/wireless/core.h