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>
Este cometimento está contido em:

cometido por
John W. Linville

ascendente
369391db1a
cometimento
881d948c23
@@ -144,7 +144,7 @@ struct p54_common {
|
||||
unsigned int output_power;
|
||||
u32 tsf_low32;
|
||||
u32 tsf_high32;
|
||||
u64 basic_rate_mask;
|
||||
u32 basic_rate_mask;
|
||||
u16 wakeup_timer;
|
||||
u16 aid;
|
||||
struct ieee80211_tx_queue_stats tx_stats[8];
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador