diff options
author | Jaewan Kim <jaewan@google.com> | 2023-03-22 16:16:34 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-03-24 13:45:51 +0300 |
commit | 5097f84437c9bd50b2c65b5f85395c34b2d545db (patch) | |
tree | 9805dd13d8de1feb7781510589f8bd29172bb7a9 /include/net | |
parent | 92d13386ec55816b3bdd6d578e59a71226e12806 (diff) | |
download | linux-5097f84437c9bd50b2c65b5f85395c34b2d545db.tar.xz |
wifi: nl80211: make nl80211_send_chandef non-static
Expose nl80211_send_chandef functionality for mac80211_hwsim or vendor
netlink can use it where needed.
Signed-off-by: Jaewan Kim <jaewan@google.com>
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Link: https://lore.kernel.org/r/20230322131637.2633968-3-jaewan@google.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/cfg80211.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 3cf236520288..9e04f69712b1 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -951,6 +951,15 @@ int cfg80211_chandef_dfs_required(struct wiphy *wiphy, enum nl80211_iftype iftype); /** + * nl80211_send_chandef - sends the channel definition. + * @msg: the msg to send channel definition + * @chandef: the channel definition to check + * + * Returns: 0 if sent the channel definition to msg, < 0 on error + **/ +int nl80211_send_chandef(struct sk_buff *msg, const struct cfg80211_chan_def *chandef); + +/** * ieee80211_chanwidth_rate_flags - return rate flags for channel width * @width: the channel width of the channel * |