diff options
author | Ivo van Doorn <IvDoorn@gmail.com> | 2005-10-03 10:50:40 -0400 |
---|---|---|
committer | James Ketrenos <jketreno@linux.intel.com> | 2005-10-03 10:50:40 -0400 |
commit | 7c254d3dba0fae124b1d33f784ca23572ac386b0 (patch) | |
tree | 033b9cacdabd184bac9f543308976234ce97146b /net/ieee80211/ieee80211_rx.c | |
parent | 604116a32eaef4e10d05ae3361450b3f4a4e6a90 (diff) |
This will move the ieee80211_is_ofdm_rate function to the ieee80211.h
header, and I also added the ieee80211_is_cck_rate counterpart.
Various drivers currently create there own version of these functions,
but I guess the ieee80211 stack is the best place to provide such
routines.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
Diffstat (limited to 'net/ieee80211/ieee80211_rx.c')
-rw-r--r-- | net/ieee80211/ieee80211_rx.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/net/ieee80211/ieee80211_rx.c b/net/ieee80211/ieee80211_rx.c index fcf05bf677b8..2f4b16c1c143 100644 --- a/net/ieee80211/ieee80211_rx.c +++ b/net/ieee80211/ieee80211_rx.c | |||
@@ -1020,22 +1020,6 @@ static int ieee80211_handle_assoc_resp(struct ieee80211_device *ieee, struct iee | |||
1020 | 1020 | ||
1021 | /***************************************************/ | 1021 | /***************************************************/ |
1022 | 1022 | ||
1023 | static inline int ieee80211_is_ofdm_rate(u8 rate) | ||
1024 | { | ||
1025 | switch (rate & ~IEEE80211_BASIC_RATE_MASK) { | ||
1026 | case IEEE80211_OFDM_RATE_6MB: | ||
1027 | case IEEE80211_OFDM_RATE_9MB: | ||
1028 | case IEEE80211_OFDM_RATE_12MB: | ||
1029 | case IEEE80211_OFDM_RATE_18MB: | ||
1030 | case IEEE80211_OFDM_RATE_24MB: | ||
1031 | case IEEE80211_OFDM_RATE_36MB: | ||
1032 | case IEEE80211_OFDM_RATE_48MB: | ||
1033 | case IEEE80211_OFDM_RATE_54MB: | ||
1034 | return 1; | ||
1035 | } | ||
1036 | return 0; | ||
1037 | } | ||
1038 | |||
1039 | static inline int ieee80211_network_init(struct ieee80211_device *ieee, struct ieee80211_probe_response | 1023 | static inline int ieee80211_network_init(struct ieee80211_device *ieee, struct ieee80211_probe_response |
1040 | *beacon, | 1024 | *beacon, |
1041 | struct ieee80211_network *network, | 1025 | struct ieee80211_network *network, |