diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-01-21 09:13:48 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:01:09 -0500 |
commit | 881d948c23442173a011f1adcfe4c95bf7f27515 (patch) | |
tree | 3d7e6a4bf23b960cf45a4d2c5734578168ce0424 /include/net/wireless.h | |
parent | 369391db1aabd089cefaadaabb6d9fc82e78b0a7 (diff) |
wireless: restrict to 32 legacy rates
Since the standards only define 12 legacy rates, 32 is certainly
a sane upper limit and we don't need to use u64 everywhere. Add
sanity checking that no more than 32 rates are registered and
change the variables to u32 throughout.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/wireless.h')
-rw-r--r-- | include/net/wireless.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/wireless.h b/include/net/wireless.h index 9e73aae40c5d..6c5b08204232 100644 --- a/include/net/wireless.h +++ b/include/net/wireless.h | |||
@@ -367,7 +367,7 @@ ieee80211_get_channel(struct wiphy *wiphy, int freq) | |||
367 | */ | 367 | */ |
368 | struct ieee80211_rate * | 368 | struct ieee80211_rate * |
369 | ieee80211_get_response_rate(struct ieee80211_supported_band *sband, | 369 | ieee80211_get_response_rate(struct ieee80211_supported_band *sband, |
370 | u64 basic_rates, int bitrate); | 370 | u32 basic_rates, int bitrate); |
371 | 371 | ||
372 | /** | 372 | /** |
373 | * regulatory_hint - driver hint to the wireless core a regulatory domain | 373 | * regulatory_hint - driver hint to the wireless core a regulatory domain |