cfg80211: seperate get channel number from ies
PATCH 1/1 cfg80211: seperate get channel number from ies
Get channel number from ies is a common logic, so seperate it to a new function, which could also be used by lower driver.
Signed-off-by Wen Gong <[email protected]>
--- include/net/cfg80211.h | 9 +++++++++ net/wireless/scan.c | 41 ++++++++++++++++++++++++++--------------- 2 files changed, 35 insertions(+), 15 deletions(-)
include/net/cfg80211.h +9 -0
@@ -6268,6 +6268,15 @@ static inline void cfg80211_gen_new_bssid(const u8 *bssid, u8 max_bssid,u64_to_ether_addr (new_bssid_u64, new_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 +*/ +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
net/wireless/scan.c +26 -15
57 lines not on this page · raw message
Signature · 1 line
2.31.1