diff options
author | Wen Gong <wgong@codeaurora.org> | 2021-09-30 11:15:33 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2021-10-21 18:25:16 +0300 |
commit | 97981d89a1d47942a2d7517631d2400b99fe3f93 (patch) | |
tree | 37492dae2e3cd18b5cacc2d8dedf7448f3135561 /include | |
parent | f2622138f9352a2be7a45dfe430c88bbfe6218d3 (diff) | |
download | linux-97981d89a1d47942a2d7517631d2400b99fe3f93.tar.xz |
cfg80211: separate get channel number from ies
Get channel number from ies is a common logic, so separate it to a new
function, which could also be used by lower driver.
Signed-off-by: Wen Gong <wgong@codeaurora.org>
Link: https://lore.kernel.org/r/20210930081533.4898-1-wgong@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/cfg80211.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 02737dde06d9..241b29b0796e 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -6377,6 +6377,17 @@ static inline void cfg80211_gen_new_bssid(const u8 *bssid, u8 max_bssid, } /** + * cfg80211_get_ies_channel_number - returns the channel number from ies + * @ie: IEs + * @ielen: length of IEs + * @band: enum nl80211_band of the channel + * + * Returns the channel number, or -1 if none could be determined. + */ +int cfg80211_get_ies_channel_number(const u8 *ie, size_t ielen, + enum nl80211_band band); + +/** * cfg80211_is_element_inherited - returns if element ID should be inherited * @element: element to check * @non_inherit_element: non inheritance element |