aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-10-09 06:13:49 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-10-31 19:00:06 -0400
commitd9fe60dea7779d412b34679f1177c5ca1940ea8d (patch)
treea51e16b013f7c1d16ded502cb32c03872bcbfcaa /net/mac80211/ieee80211_i.h
parent40333e4fb476014cdd939d27e20eb54573172b32 (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.h16
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)
880int ieee80211_hw_config(struct ieee80211_local *local); 880int ieee80211_hw_config(struct ieee80211_local *local);
881int ieee80211_if_config(struct ieee80211_sub_if_data *sdata, u32 changed); 881int ieee80211_if_config(struct ieee80211_sub_if_data *sdata, u32 changed);
882void ieee80211_tx_set_protected(struct ieee80211_tx_data *tx); 882void ieee80211_tx_set_protected(struct ieee80211_tx_data *tx);
883u32 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);
886void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata, 883void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata,
887 u32 changed); 884 u32 changed);
888void ieee80211_configure_filter(struct ieee80211_local *local); 885void ieee80211_configure_filter(struct ieee80211_local *local);
@@ -963,11 +960,14 @@ int ieee80211_monitor_start_xmit(struct sk_buff *skb, struct net_device *dev);
963int ieee80211_subif_start_xmit(struct sk_buff *skb, struct net_device *dev); 960int ieee80211_subif_start_xmit(struct sk_buff *skb, struct net_device *dev);
964 961
965/* HT */ 962/* HT */
966int ieee80211_ht_cap_ie_to_ht_info(struct ieee80211_ht_cap *ht_cap_ie, 963void 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);
968int ieee80211_ht_addt_info_ie_to_ht_bss_info( 965void 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);
968u32 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);
971void ieee80211_send_bar(struct ieee80211_sub_if_data *sdata, u8 *ra, u16 tid, u16 ssn); 971void ieee80211_send_bar(struct ieee80211_sub_if_data *sdata, u8 *ra, u16 tid, u16 ssn);
972 972
973void ieee80211_sta_stop_rx_ba_session(struct ieee80211_sub_if_data *sdata, u8 *da, 973void ieee80211_sta_stop_rx_ba_session(struct ieee80211_sub_if_data *sdata, u8 *da,