diff options
author | Jasper Bryant-Greene <jasper@amiton.co.nz> | 2008-08-02 20:04:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-22 16:29:58 -0400 |
commit | f698d856f65c3fea091cc303a135967965c5b880 (patch) | |
tree | 94c7c2d561e5191646dc5798683c0aca97973773 /net/mac80211/ieee80211_i.h | |
parent | fef1643bf0cdd092a52dc3378479e4811fd65152 (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.h | 48 |
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 */ |
853 | extern const struct iw_handler_def ieee80211_iw_handler_def; | 853 | extern const struct iw_handler_def ieee80211_iw_handler_def; |
854 | int ieee80211_set_freq(struct net_device *dev, int freq); | 854 | int ieee80211_set_freq(struct ieee80211_sub_if_data *sdata, int freq); |
855 | 855 | ||
856 | /* ieee80211_sta.c */ | 856 | /* ieee80211_sta.c */ |
857 | void ieee80211_sta_timer(unsigned long data); | 857 | void ieee80211_sta_timer(unsigned long data); |
858 | void ieee80211_sta_work(struct work_struct *work); | 858 | void ieee80211_sta_work(struct work_struct *work); |
859 | void ieee80211_sta_scan_work(struct work_struct *work); | 859 | void ieee80211_sta_scan_work(struct work_struct *work); |
860 | void ieee80211_sta_rx_mgmt(struct net_device *dev, struct sk_buff *skb, | 860 | void 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); |
862 | int ieee80211_sta_set_ssid(struct net_device *dev, char *ssid, size_t len); | 862 | int ieee80211_sta_set_ssid(struct ieee80211_sub_if_data *sdata, char *ssid, size_t len); |
863 | int ieee80211_sta_get_ssid(struct net_device *dev, char *ssid, size_t *len); | 863 | int ieee80211_sta_get_ssid(struct ieee80211_sub_if_data *sdata, char *ssid, size_t *len); |
864 | int ieee80211_sta_set_bssid(struct net_device *dev, u8 *bssid); | 864 | int ieee80211_sta_set_bssid(struct ieee80211_sub_if_data *sdata, u8 *bssid); |
865 | int ieee80211_sta_req_scan(struct net_device *dev, u8 *ssid, size_t ssid_len); | 865 | int ieee80211_sta_req_scan(struct ieee80211_sub_if_data *sdata, u8 *ssid, size_t ssid_len); |
866 | void ieee80211_sta_req_auth(struct net_device *dev, | 866 | void ieee80211_sta_req_auth(struct ieee80211_sub_if_data *sdata, |
867 | struct ieee80211_if_sta *ifsta); | 867 | struct ieee80211_if_sta *ifsta); |
868 | int ieee80211_sta_scan_results(struct net_device *dev, | 868 | int 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); |
871 | ieee80211_rx_result ieee80211_sta_rx_scan( | 871 | ieee80211_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); |
874 | void ieee80211_rx_bss_list_init(struct ieee80211_local *local); | 874 | void ieee80211_rx_bss_list_init(struct ieee80211_local *local); |
875 | void ieee80211_rx_bss_list_deinit(struct ieee80211_local *local); | 875 | void ieee80211_rx_bss_list_deinit(struct ieee80211_local *local); |
876 | int ieee80211_sta_set_extra_ie(struct net_device *dev, char *ie, size_t len); | 876 | int ieee80211_sta_set_extra_ie(struct ieee80211_sub_if_data *sdata, char *ie, size_t len); |
877 | struct sta_info *ieee80211_ibss_add_sta(struct net_device *dev, | 877 | struct 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); |
880 | int ieee80211_sta_deauthenticate(struct net_device *dev, u16 reason); | 880 | int ieee80211_sta_deauthenticate(struct ieee80211_sub_if_data *sdata, u16 reason); |
881 | int ieee80211_sta_disassociate(struct net_device *dev, u16 reason); | 881 | int ieee80211_sta_disassociate(struct ieee80211_sub_if_data *sdata, u16 reason); |
882 | void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata, | 882 | void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata, |
883 | u32 changed); | 883 | u32 changed); |
884 | u32 ieee80211_reset_erp_info(struct net_device *dev); | 884 | u32 ieee80211_reset_erp_info(struct ieee80211_sub_if_data *sdata); |
885 | int ieee80211_ht_cap_ie_to_ht_info(struct ieee80211_ht_cap *ht_cap_ie, | 885 | int 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); |
887 | int ieee80211_ht_addt_info_ie_to_ht_bss_info( | 887 | int 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); |
890 | void ieee80211_send_addba_request(struct net_device *dev, const u8 *da, | 890 | void 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); |
893 | void ieee80211_send_delba(struct net_device *dev, const u8 *da, u16 tid, | 893 | void 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); |
895 | void ieee80211_send_bar(struct net_device *dev, u8 *ra, u16 tid, u16 ssn); | 895 | void ieee80211_send_bar(struct ieee80211_sub_if_data *sdata, u8 *ra, u16 tid, u16 ssn); |
896 | 896 | ||
897 | void ieee80211_sta_stop_rx_ba_session(struct net_device *dev, u8 *da, | 897 | void 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); |
899 | void sta_addba_resp_timer_expired(unsigned long data); | 899 | void sta_addba_resp_timer_expired(unsigned long data); |
900 | void ieee80211_sta_tear_down_BA_sessions(struct net_device *dev, u8 *addr); | 900 | void ieee80211_sta_tear_down_BA_sessions(struct ieee80211_sub_if_data *sdata, u8 *addr); |
901 | u64 ieee80211_sta_get_rates(struct ieee80211_local *local, | 901 | u64 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); |
904 | void ieee80211_sta_tx(struct net_device *dev, struct sk_buff *skb, | 904 | void ieee80211_sta_tx(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, |
905 | int encrypt); | 905 | int encrypt); |
906 | void ieee802_11_parse_elems(u8 *start, size_t len, | 906 | void 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 |
910 | void ieee80211_start_mesh(struct net_device *dev); | 910 | void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata); |
911 | #else | 911 | #else |
912 | static inline void ieee80211_start_mesh(struct net_device *dev) | 912 | static 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); |
921 | int ieee80211_if_change_type(struct ieee80211_sub_if_data *sdata, | 921 | int ieee80211_if_change_type(struct ieee80211_sub_if_data *sdata, |
922 | enum ieee80211_if_types type); | 922 | enum ieee80211_if_types type); |
923 | void ieee80211_if_remove(struct net_device *dev); | 923 | void ieee80211_if_remove(struct ieee80211_sub_if_data *sdata); |
924 | void ieee80211_remove_interfaces(struct ieee80211_local *local); | 924 | void 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); |
939 | int ieee80211_frame_duration(struct ieee80211_local *local, size_t len, | 939 | int 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); |
941 | void mac80211_ev_michael_mic_failure(struct net_device *dev, int keyidx, | 941 | void 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 |