wireless: restrict to 32 legacy rates
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 21 Jan 2009 14:13:48 +0000 (15:13 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 21:01:09 +0000 (16:01 -0500)
commit881d948c23442173a011f1adcfe4c95bf7f27515
tree3d7e6a4bf23b960cf45a4d2c5734578168ce0424
parent369391db1aabd089cefaadaabb6d9fc82e78b0a7
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>
14 files changed:
drivers/net/wireless/b43/main.c
drivers/net/wireless/b43legacy/main.c
drivers/net/wireless/p54/p54.h
drivers/net/wireless/rt2x00/rt2x00.h
include/net/mac80211.h
include/net/wireless.h
net/mac80211/ieee80211_i.h
net/mac80211/mesh.c
net/mac80211/mesh.h
net/mac80211/mesh_plink.c
net/mac80211/mlme.c
net/mac80211/util.c
net/wireless/core.c
net/wireless/util.c