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>
Šī revīzija ir iekļauta:
Johannes Berg
2009-01-21 15:13:48 +01:00
revīziju iesūtīja John W. Linville
vecāks 369391db1a
revīzija 881d948c23
14 mainīti faili ar 35 papildinājumiem un 29 dzēšanām

Parādīt failu

@@ -396,7 +396,7 @@ struct rt2x00lib_erp {
int ack_timeout;
int ack_consume_time;
u64 basic_rates;
u32 basic_rates;
int slot_time;