diff options
author | 2012-08-01 17:00:55 +0200 | |
---|---|---|
committer | 2013-04-16 15:29:43 +0200 | |
commit | 1ce3e82b0eb472161313183be0033e46d5c4bbaf (patch) | |
tree | 120caf85a20d1f9b480b69cbb284dfd3a3ca5483 /include/net/cfg80211.h | |
parent | mac80211: unify CSA action frame/beacon processing (diff) | |
download | linux-1ce3e82b0eb472161313183be0033e46d5c4bbaf.tar.gz linux-1ce3e82b0eb472161313183be0033e46d5c4bbaf.tar.bz2 linux-1ce3e82b0eb472161313183be0033e46d5c4bbaf.zip |
cfg80211: add ieee80211_operating_class_to_band
This function converts a (global only!) operating
class to an internal band identifier. This will
be needed for extended channel switch support.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/cfg80211.h')
-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 57870b646974..dff96d8cafcd 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -4024,6 +4024,17 @@ bool cfg80211_reg_can_beacon(struct wiphy *wiphy, void cfg80211_ch_switch_notify(struct net_device *dev, struct cfg80211_chan_def *chandef); +/** + * ieee80211_operating_class_to_band - convert operating class to band + * + * @operating_class: the operating class to convert + * @band: band pointer to fill + * + * Returns %true if the conversion was successful, %false otherwise. + */ +bool ieee80211_operating_class_to_band(u8 operating_class, + enum ieee80211_band *band); + /* * cfg80211_tdls_oper_request - request userspace to perform TDLS operation * @dev: the device on which the operation is requested |