aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-01-21 09:13:48 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 16:01:09 -0500
commit881d948c23442173a011f1adcfe4c95bf7f27515 (patch)
tree3d7e6a4bf23b960cf45a4d2c5734578168ce0424 /net/mac80211/ieee80211_i.h
parent369391db1aabd089cefaadaabb6d9fc82e78b0a7 (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 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index a8c72742a8b1..70366efc792e 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -909,11 +909,11 @@ int ieee80211_sta_set_bssid(struct ieee80211_sub_if_data *sdata, u8 *bssid);
909void ieee80211_sta_req_auth(struct ieee80211_sub_if_data *sdata, 909void ieee80211_sta_req_auth(struct ieee80211_sub_if_data *sdata,
910 struct ieee80211_if_sta *ifsta); 910 struct ieee80211_if_sta *ifsta);
911struct sta_info *ieee80211_ibss_add_sta(struct ieee80211_sub_if_data *sdata, 911struct sta_info *ieee80211_ibss_add_sta(struct ieee80211_sub_if_data *sdata,
912 u8 *bssid, u8 *addr, u64 supp_rates); 912 u8 *bssid, u8 *addr, u32 supp_rates);
913int ieee80211_sta_deauthenticate(struct ieee80211_sub_if_data *sdata, u16 reason); 913int ieee80211_sta_deauthenticate(struct ieee80211_sub_if_data *sdata, u16 reason);
914int ieee80211_sta_disassociate(struct ieee80211_sub_if_data *sdata, u16 reason); 914int ieee80211_sta_disassociate(struct ieee80211_sub_if_data *sdata, u16 reason);
915u32 ieee80211_reset_erp_info(struct ieee80211_sub_if_data *sdata); 915u32 ieee80211_reset_erp_info(struct ieee80211_sub_if_data *sdata);
916u64 ieee80211_sta_get_rates(struct ieee80211_local *local, 916u32 ieee80211_sta_get_rates(struct ieee80211_local *local,
917 struct ieee802_11_elems *elems, 917 struct ieee802_11_elems *elems,
918 enum ieee80211_band band); 918 enum ieee80211_band band);
919void ieee80211_send_probe_req(struct ieee80211_sub_if_data *sdata, u8 *dst, 919void ieee80211_send_probe_req(struct ieee80211_sub_if_data *sdata, u8 *dst,
@@ -1026,7 +1026,7 @@ void ieee80211_tx_skb(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb,
1026void ieee802_11_parse_elems(u8 *start, size_t len, 1026void ieee802_11_parse_elems(u8 *start, size_t len,
1027 struct ieee802_11_elems *elems); 1027 struct ieee802_11_elems *elems);
1028int ieee80211_set_freq(struct ieee80211_sub_if_data *sdata, int freq); 1028int ieee80211_set_freq(struct ieee80211_sub_if_data *sdata, int freq);
1029u64 ieee80211_mandatory_rates(struct ieee80211_local *local, 1029u32 ieee80211_mandatory_rates(struct ieee80211_local *local,
1030 enum ieee80211_band band); 1030 enum ieee80211_band band);
1031 1031
1032void ieee80211_dynamic_ps_enable_work(struct work_struct *work); 1032void ieee80211_dynamic_ps_enable_work(struct work_struct *work);