aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-03-16 18:34:33 +0100
committerJohn W. Linville <linville@tuxdriver.com>2008-03-25 16:41:55 -0400
commit906c730a2db950b7bce4ef17d65399acd791c360 (patch)
tree75df7353a1407fdcdca45e6f289ab0f25b2361af /include
parentiwlwifi: move host command sending functions to core module (diff)
downloadlinux-dev-906c730a2db950b7bce4ef17d65399acd791c360.tar.xz
linux-dev-906c730a2db950b7bce4ef17d65399acd791c360.zip
wireless: add wiphy channel freq to channel struct lookup helper
Add ieee80211_get_channel() which gets you a channel struct for a specific wiphy if that channel is present in that wiphy. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/wireless.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/wireless.h b/include/net/wireless.h
index c7f805ee5545..f4b77ab66bae 100644
--- a/include/net/wireless.h
+++ b/include/net/wireless.h
@@ -304,4 +304,10 @@ extern int ieee80211_channel_to_frequency(int chan);
*/
extern int ieee80211_frequency_to_channel(int freq);
+/**
+ * ieee80211_get_channel - get channel struct from wiphy for specified frequency
+ */
+extern struct ieee80211_channel *ieee80211_get_channel(struct wiphy *wiphy,
+ int freq);
+
#endif /* __NET_WIRELESS_H */