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>
This commit is contained in:
committed by
John W. Linville
parent
369391db1a
commit
881d948c23
@ -476,7 +476,7 @@ static void ieee80211_mesh_rx_bcn_presp(struct ieee80211_sub_if_data *sdata,
|
||||
struct ieee80211_local *local = sdata->local;
|
||||
struct ieee802_11_elems elems;
|
||||
struct ieee80211_channel *channel;
|
||||
u64 supp_rates = 0;
|
||||
u32 supp_rates = 0;
|
||||
size_t baselen;
|
||||
int freq;
|
||||
enum ieee80211_band band = rx_status->band;
|
||||
|
Reference in New Issue
Block a user