aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJasper Bryant-Greene <jasper@amiton.co.nz>2008-08-02 20:04:37 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-22 16:29:58 -0400
commitf698d856f65c3fea091cc303a135967965c5b880 (patch)
tree94c7c2d561e5191646dc5798683c0aca97973773 /net/mac80211/ieee80211_i.h
parentfef1643bf0cdd092a52dc3378479e4811fd65152 (diff)
replace net_device arguments with ieee80211_{local,sub_if_data} as appropriate
This patch replaces net_device arguments to mac80211 internal functions with ieee80211_{local,sub_if_data} as appropriate. It also does the same for many 802.11s mesh functions, and changes the mesh path table to be indexed on sub_if_data rather than net_device. If the mesh part needs to be a separate patch let me know, but since mesh uses a lot of mac80211 functions which were being converted anyway, the changes go hand-in-hand somewhat. This patch probably does not convert all the functions which could be converted, but it is a large chunk and followup patches will be provided. Signed-off-by: Jasper Bryant-Greene <jasper@amiton.co.nz> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 168f845c1737..b5d3f58a7845 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -851,65 +851,65 @@ u32 ieee80211_handle_ht(struct ieee80211_local *local, int enable_ht,
851 851
852/* ieee80211_ioctl.c */ 852/* ieee80211_ioctl.c */
853extern const struct iw_handler_def ieee80211_iw_handler_def; 853extern const struct iw_handler_def ieee80211_iw_handler_def;
854int ieee80211_set_freq(struct net_device *dev, int freq); 854int ieee80211_set_freq(struct ieee80211_sub_if_data *sdata, int freq);
855 855
856/* ieee80211_sta.c */ 856/* ieee80211_sta.c */
857void ieee80211_sta_timer(unsigned long data); 857void ieee80211_sta_timer(unsigned long data);
858void ieee80211_sta_work(struct work_struct *work); 858void ieee80211_sta_work(struct work_struct *work);
859void ieee80211_sta_scan_work(struct work_struct *work); 859void ieee80211_sta_scan_work(struct work_struct *work);
860void ieee80211_sta_rx_mgmt(struct net_device *dev, struct sk_buff *skb, 860void ieee80211_sta_rx_mgmt(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb,
861 struct ieee80211_rx_status *rx_status); 861 struct ieee80211_rx_status *rx_status);
862int ieee80211_sta_set_ssid(struct net_device *dev, char *ssid, size_t len); 862int ieee80211_sta_set_ssid(struct ieee80211_sub_if_data *sdata, char *ssid, size_t len);
863int ieee80211_sta_get_ssid(struct net_device *dev, char *ssid, size_t *len); 863int ieee80211_sta_get_ssid(struct ieee80211_sub_if_data *sdata, char *ssid, size_t *len);
864int ieee80211_sta_set_bssid(struct net_device *dev, u8 *bssid); 864int ieee80211_sta_set_bssid(struct ieee80211_sub_if_data *sdata, u8 *bssid);
865int ieee80211_sta_req_scan(struct net_device *dev, u8 *ssid, size_t ssid_len); 865int ieee80211_sta_req_scan(struct ieee80211_sub_if_data *sdata, u8 *ssid, size_t ssid_len);
866void ieee80211_sta_req_auth(struct net_device *dev, 866void ieee80211_sta_req_auth(struct ieee80211_sub_if_data *sdata,
867 struct ieee80211_if_sta *ifsta); 867 struct ieee80211_if_sta *ifsta);
868int ieee80211_sta_scan_results(struct net_device *dev, 868int ieee80211_sta_scan_results(struct ieee80211_local *local,
869 struct iw_request_info *info, 869 struct iw_request_info *info,
870 char *buf, size_t len); 870 char *buf, size_t len);
871ieee80211_rx_result ieee80211_sta_rx_scan( 871ieee80211_rx_result ieee80211_sta_rx_scan(
872 struct net_device *dev, struct sk_buff *skb, 872 struct ieee80211_sub_if_data *sdata, struct sk_buff *skb,
873 struct ieee80211_rx_status *rx_status); 873 struct ieee80211_rx_status *rx_status);
874void ieee80211_rx_bss_list_init(struct ieee80211_local *local); 874void ieee80211_rx_bss_list_init(struct ieee80211_local *local);
875void ieee80211_rx_bss_list_deinit(struct ieee80211_local *local); 875void ieee80211_rx_bss_list_deinit(struct ieee80211_local *local);
876int ieee80211_sta_set_extra_ie(struct net_device *dev, char *ie, size_t len); 876int ieee80211_sta_set_extra_ie(struct ieee80211_sub_if_data *sdata, char *ie, size_t len);
877struct sta_info *ieee80211_ibss_add_sta(struct net_device *dev, 877struct sta_info *ieee80211_ibss_add_sta(struct ieee80211_sub_if_data *sdata,
878 struct sk_buff *skb, u8 *bssid, 878 struct sk_buff *skb, u8 *bssid,
879 u8 *addr, u64 supp_rates); 879 u8 *addr, u64 supp_rates);
880int ieee80211_sta_deauthenticate(struct net_device *dev, u16 reason); 880int ieee80211_sta_deauthenticate(struct ieee80211_sub_if_data *sdata, u16 reason);
881int ieee80211_sta_disassociate(struct net_device *dev, u16 reason); 881int ieee80211_sta_disassociate(struct ieee80211_sub_if_data *sdata, u16 reason);
882void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata, 882void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata,
883 u32 changed); 883 u32 changed);
884u32 ieee80211_reset_erp_info(struct net_device *dev); 884u32 ieee80211_reset_erp_info(struct ieee80211_sub_if_data *sdata);
885int ieee80211_ht_cap_ie_to_ht_info(struct ieee80211_ht_cap *ht_cap_ie, 885int ieee80211_ht_cap_ie_to_ht_info(struct ieee80211_ht_cap *ht_cap_ie,
886 struct ieee80211_ht_info *ht_info); 886 struct ieee80211_ht_info *ht_info);
887int ieee80211_ht_addt_info_ie_to_ht_bss_info( 887int ieee80211_ht_addt_info_ie_to_ht_bss_info(
888 struct ieee80211_ht_addt_info *ht_add_info_ie, 888 struct ieee80211_ht_addt_info *ht_add_info_ie,
889 struct ieee80211_ht_bss_info *bss_info); 889 struct ieee80211_ht_bss_info *bss_info);
890void ieee80211_send_addba_request(struct net_device *dev, const u8 *da, 890void ieee80211_send_addba_request(struct ieee80211_sub_if_data *sdata, const u8 *da,
891 u16 tid, u8 dialog_token, u16 start_seq_num, 891 u16 tid, u8 dialog_token, u16 start_seq_num,
892 u16 agg_size, u16 timeout); 892 u16 agg_size, u16 timeout);
893void ieee80211_send_delba(struct net_device *dev, const u8 *da, u16 tid, 893void ieee80211_send_delba(struct ieee80211_sub_if_data *sdata, const u8 *da, u16 tid,
894 u16 initiator, u16 reason_code); 894 u16 initiator, u16 reason_code);
895void ieee80211_send_bar(struct net_device *dev, u8 *ra, u16 tid, u16 ssn); 895void ieee80211_send_bar(struct ieee80211_sub_if_data *sdata, u8 *ra, u16 tid, u16 ssn);
896 896
897void ieee80211_sta_stop_rx_ba_session(struct net_device *dev, u8 *da, 897void ieee80211_sta_stop_rx_ba_session(struct ieee80211_sub_if_data *sdata, u8 *da,
898 u16 tid, u16 initiator, u16 reason); 898 u16 tid, u16 initiator, u16 reason);
899void sta_addba_resp_timer_expired(unsigned long data); 899void sta_addba_resp_timer_expired(unsigned long data);
900void ieee80211_sta_tear_down_BA_sessions(struct net_device *dev, u8 *addr); 900void ieee80211_sta_tear_down_BA_sessions(struct ieee80211_sub_if_data *sdata, u8 *addr);
901u64 ieee80211_sta_get_rates(struct ieee80211_local *local, 901u64 ieee80211_sta_get_rates(struct ieee80211_local *local,
902 struct ieee802_11_elems *elems, 902 struct ieee802_11_elems *elems,
903 enum ieee80211_band band); 903 enum ieee80211_band band);
904void ieee80211_sta_tx(struct net_device *dev, struct sk_buff *skb, 904void ieee80211_sta_tx(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb,
905 int encrypt); 905 int encrypt);
906void ieee802_11_parse_elems(u8 *start, size_t len, 906void ieee802_11_parse_elems(u8 *start, size_t len,
907 struct ieee802_11_elems *elems); 907 struct ieee802_11_elems *elems);
908 908
909#ifdef CONFIG_MAC80211_MESH 909#ifdef CONFIG_MAC80211_MESH
910void ieee80211_start_mesh(struct net_device *dev); 910void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata);
911#else 911#else
912static inline void ieee80211_start_mesh(struct net_device *dev) 912static inline void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata)
913{} 913{}
914#endif 914#endif
915 915
@@ -920,7 +920,7 @@ int ieee80211_if_add(struct ieee80211_local *local, const char *name,
920 struct vif_params *params); 920 struct vif_params *params);
921int ieee80211_if_change_type(struct ieee80211_sub_if_data *sdata, 921int ieee80211_if_change_type(struct ieee80211_sub_if_data *sdata,
922 enum ieee80211_if_types type); 922 enum ieee80211_if_types type);
923void ieee80211_if_remove(struct net_device *dev); 923void ieee80211_if_remove(struct ieee80211_sub_if_data *sdata);
924void ieee80211_remove_interfaces(struct ieee80211_local *local); 924void ieee80211_remove_interfaces(struct ieee80211_local *local);
925 925
926/* tx handling */ 926/* tx handling */
@@ -938,7 +938,7 @@ u8 *ieee80211_get_bssid(struct ieee80211_hdr *hdr, size_t len,
938 enum ieee80211_if_types type); 938 enum ieee80211_if_types type);
939int ieee80211_frame_duration(struct ieee80211_local *local, size_t len, 939int ieee80211_frame_duration(struct ieee80211_local *local, size_t len,
940 int rate, int erp, int short_preamble); 940 int rate, int erp, int short_preamble);
941void mac80211_ev_michael_mic_failure(struct net_device *dev, int keyidx, 941void mac80211_ev_michael_mic_failure(struct ieee80211_sub_if_data *sdata, int keyidx,
942 struct ieee80211_hdr *hdr); 942 struct ieee80211_hdr *hdr);
943 943
944#ifdef CONFIG_MAC80211_NOINLINE 944#ifdef CONFIG_MAC80211_NOINLINE