diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-09 06:13:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:06 -0400 |
commit | d9fe60dea7779d412b34679f1177c5ca1940ea8d (patch) | |
tree | a51e16b013f7c1d16ded502cb32c03872bcbfcaa /net/mac80211/ieee80211_i.h | |
parent | 40333e4fb476014cdd939d27e20eb54573172b32 (diff) |
802.11: clean up/fix HT support
This patch cleans up a number of things:
* the unusable definition of the HT capabilities/HT information
information elements
* variable names that are hard to understand
* mac80211: move ieee80211_handle_ht to ht.c and remove the unused
enable_ht parameter
* mac80211: fix bug with MCS rate 32 in ieee80211_handle_ht
* mac80211: fix bug with casting the result of ieee80211_bss_get_ie
to an information element _contents_ rather than the
whole element, add size checking (another out-of-bounds
access bug fixed!)
* mac80211: remove some unused return values in favour of BUG_ON
checking
* a few minor other things
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.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index f49cb9e8bb42..ae4ca3e8b443 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -817,7 +817,7 @@ struct ieee802_11_elems { | |||
817 | u8 *wmm_info; | 817 | u8 *wmm_info; |
818 | u8 *wmm_param; | 818 | u8 *wmm_param; |
819 | struct ieee80211_ht_cap *ht_cap_elem; | 819 | struct ieee80211_ht_cap *ht_cap_elem; |
820 | struct ieee80211_ht_addt_info *ht_info_elem; | 820 | struct ieee80211_ht_info *ht_info_elem; |
821 | u8 *mesh_config; | 821 | u8 *mesh_config; |
822 | u8 *mesh_id; | 822 | u8 *mesh_id; |
823 | u8 *peer_link; | 823 | u8 *peer_link; |
@@ -880,9 +880,6 @@ static inline int ieee80211_bssid_match(const u8 *raddr, const u8 *addr) | |||
880 | int ieee80211_hw_config(struct ieee80211_local *local); | 880 | int ieee80211_hw_config(struct ieee80211_local *local); |
881 | int ieee80211_if_config(struct ieee80211_sub_if_data *sdata, u32 changed); | 881 | int ieee80211_if_config(struct ieee80211_sub_if_data *sdata, u32 changed); |
882 | void ieee80211_tx_set_protected(struct ieee80211_tx_data *tx); | 882 | void ieee80211_tx_set_protected(struct ieee80211_tx_data *tx); |
883 | u32 ieee80211_handle_ht(struct ieee80211_local *local, int enable_ht, | ||
884 | struct ieee80211_ht_info *req_ht_cap, | ||
885 | struct ieee80211_ht_bss_info *req_bss_cap); | ||
886 | void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata, | 883 | void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata, |
887 | u32 changed); | 884 | u32 changed); |
888 | void ieee80211_configure_filter(struct ieee80211_local *local); | 885 | void ieee80211_configure_filter(struct ieee80211_local *local); |
@@ -963,11 +960,14 @@ int ieee80211_monitor_start_xmit(struct sk_buff *skb, struct net_device *dev); | |||
963 | int ieee80211_subif_start_xmit(struct sk_buff *skb, struct net_device *dev); | 960 | int ieee80211_subif_start_xmit(struct sk_buff *skb, struct net_device *dev); |
964 | 961 | ||
965 | /* HT */ | 962 | /* HT */ |
966 | int ieee80211_ht_cap_ie_to_ht_info(struct ieee80211_ht_cap *ht_cap_ie, | 963 | void ieee80211_ht_cap_ie_to_sta_ht_cap(struct ieee80211_ht_cap *ht_cap_ie, |
967 | struct ieee80211_ht_info *ht_info); | 964 | struct ieee80211_sta_ht_cap *ht_cap); |
968 | int ieee80211_ht_addt_info_ie_to_ht_bss_info( | 965 | void ieee80211_ht_info_ie_to_ht_bss_info( |
969 | struct ieee80211_ht_addt_info *ht_add_info_ie, | 966 | struct ieee80211_ht_info *ht_add_info_ie, |
970 | struct ieee80211_ht_bss_info *bss_info); | 967 | struct ieee80211_ht_bss_info *bss_info); |
968 | u32 ieee80211_handle_ht(struct ieee80211_local *local, | ||
969 | struct ieee80211_sta_ht_cap *req_ht_cap, | ||
970 | struct ieee80211_ht_bss_info *req_bss_cap); | ||
971 | void ieee80211_send_bar(struct ieee80211_sub_if_data *sdata, u8 *ra, u16 tid, u16 ssn); | 971 | void ieee80211_send_bar(struct ieee80211_sub_if_data *sdata, u8 *ra, u16 tid, u16 ssn); |
972 | 972 | ||
973 | void ieee80211_sta_stop_rx_ba_session(struct ieee80211_sub_if_data *sdata, u8 *da, | 973 | void ieee80211_sta_stop_rx_ba_session(struct ieee80211_sub_if_data *sdata, u8 *da, |