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>
This commit is contained in:

committed by
John W. Linville

parent
857485c0c4
commit
906c730a2d
@@ -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 */
|
||||
|
Reference in New Issue
Block a user