diff options
author | David S. Miller <davem@davemloft.net> | 2008-03-27 21:01:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-27 21:01:13 -0400 |
commit | ed85f2c3b2b72bd20f617ac749f5c22be8d0f66e (patch) | |
tree | cb077293e1b36a5d6e2a138deb9663078a2d850e /include | |
parent | bc09dff198e67a98a82c42000006b39f6d502031 (diff) | |
parent | e5225b397308f9eea86327293b73dc88068e0179 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.26
Diffstat (limited to 'include')
-rw-r--r-- | include/net/wireless.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/include/net/wireless.h b/include/net/wireless.h index f4b77ab66bae..667b4080d30f 100644 --- a/include/net/wireless.h +++ b/include/net/wireless.h | |||
@@ -304,10 +304,22 @@ extern int ieee80211_channel_to_frequency(int chan); | |||
304 | */ | 304 | */ |
305 | extern int ieee80211_frequency_to_channel(int freq); | 305 | extern int ieee80211_frequency_to_channel(int freq); |
306 | 306 | ||
307 | /* | ||
308 | * Name indirection necessary because the ieee80211 code also has | ||
309 | * a function named "ieee80211_get_channel", so if you include | ||
310 | * cfg80211's header file you get cfg80211's version, if you try | ||
311 | * to include both header files you'll (rightfully!) get a symbol | ||
312 | * clash. | ||
313 | */ | ||
314 | extern struct ieee80211_channel *__ieee80211_get_channel(struct wiphy *wiphy, | ||
315 | int freq); | ||
316 | |||
307 | /** | 317 | /** |
308 | * ieee80211_get_channel - get channel struct from wiphy for specified frequency | 318 | * ieee80211_get_channel - get channel struct from wiphy for specified frequency |
309 | */ | 319 | */ |
310 | extern struct ieee80211_channel *ieee80211_get_channel(struct wiphy *wiphy, | 320 | static inline struct ieee80211_channel * |
311 | int freq); | 321 | ieee80211_get_channel(struct wiphy *wiphy, int freq) |
312 | 322 | { | |
323 | return __ieee80211_get_channel(wiphy, freq); | ||
324 | } | ||
313 | #endif /* __NET_WIRELESS_H */ | 325 | #endif /* __NET_WIRELESS_H */ |