diff options
author | Evan Quan <quanliangl@hotmail.com> | 2023-12-11 18:06:24 +0800 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-12-12 10:36:56 +0100 |
commit | 10fa22b6fb68198ab6bf2ab468a11c54f083761d (patch) | |
tree | 61973f76572bfb66d1bfd0e54be0427ba04630a6 /net/wireless | |
parent | 383052d09a305e045a30ea387eb588390984cffb (diff) | |
download | linux-10fa22b6fb68198ab6bf2ab468a11c54f083761d.tar.gz linux-10fa22b6fb68198ab6bf2ab468a11c54f083761d.tar.bz2 linux-10fa22b6fb68198ab6bf2ab468a11c54f083761d.zip |
wifi: cfg80211: expose nl80211_chan_width_to_mhz for wide sharing
The newly added WBRF feature needs this interface for channel
width calculation.
Signed-off-by: Evan Quan <quanliangl@hotmail.com>
Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://msgid.link/20231211100630.2170152-4-Jun.Ma2@amd.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/chan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c index 2d21e423abdb..dfb4893421d7 100644 --- a/net/wireless/chan.c +++ b/net/wireless/chan.c @@ -141,7 +141,7 @@ static bool cfg80211_edmg_chandef_valid(const struct cfg80211_chan_def *chandef) return true; } -static int nl80211_chan_width_to_mhz(enum nl80211_chan_width chan_width) +int nl80211_chan_width_to_mhz(enum nl80211_chan_width chan_width) { int mhz; @@ -190,6 +190,7 @@ static int nl80211_chan_width_to_mhz(enum nl80211_chan_width chan_width) } return mhz; } +EXPORT_SYMBOL(nl80211_chan_width_to_mhz); static int cfg80211_chandef_get_width(const struct cfg80211_chan_def *c) { |