diff options
author | Michael-CY Lee <michael-cy.lee@mediatek.com> | 2023-12-22 04:09:13 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2024-02-08 17:00:44 +0300 |
commit | 68de13028b94572fc570b7eb1e0e2de1d751fe7e (patch) | |
tree | c159e529d1eeae5934e5b2c6c4369a98d43b85e7 /include/net/cfg80211.h | |
parent | f29a8be886f5dd12b97624a87d6c46e2cf8d1821 (diff) | |
download | linux-68de13028b94572fc570b7eb1e0e2de1d751fe7e.tar.xz |
wifi: cfg80211: Add utility for converting op_class into chandef
This utility is used in STA CSA handling. The op_class in the ECSA
Element can be converted into chandef.
Co-developed-by: Money Wang <money.wang@mediatek.com>
Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
Link: https://msgid.link/20231222010914.6521-2-michael-cy.lee@mediatek.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index cb5e34d640cd..e27ed2307cdb 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -8775,6 +8775,19 @@ bool ieee80211_operating_class_to_band(u8 operating_class, enum nl80211_band *band); /** + * ieee80211_operating_class_to_chandef - convert operating class to chandef + * + * @operating_class: the operating class to convert + * @chan: the ieee80211_channel to convert + * @chandef: a pointer to the resulting chandef + * + * Returns %true if the conversion was successful, %false otherwise. + */ +bool ieee80211_operating_class_to_chandef(u8 operating_class, + struct ieee80211_channel *chan, + struct cfg80211_chan_def *chandef); + +/** * ieee80211_chandef_to_operating_class - convert chandef to operation class * * @chandef: the chandef to convert |