diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-10 18:01:55 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-15 16:48:22 -0400 |
commit | c2b13452b283f9c4a5b02a6b53ed6416ebf4c03c (patch) | |
tree | 756b8c9668c643293a46389b8b8f34b8efd3d2ea /net/mac80211/ieee80211_i.h | |
parent | 213cd118cbb88b76ae48f92cfb7dbef9a83cca62 (diff) |
mac80211: clean up scan namespace
Most of the scan functions are called ieee80211_sta_scan_*
or similar, make clean it up so they are all just called
ieee80211_scan_*.
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 | 53 |
1 files changed, 28 insertions, 25 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 52f36ab1ee57..5c38ea084540 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -71,9 +71,9 @@ struct ieee80211_fragment_entry { | |||
71 | }; | 71 | }; |
72 | 72 | ||
73 | 73 | ||
74 | struct ieee80211_sta_bss { | 74 | struct ieee80211_bss { |
75 | struct list_head list; | 75 | struct list_head list; |
76 | struct ieee80211_sta_bss *hnext; | 76 | struct ieee80211_bss *hnext; |
77 | size_t ssid_len; | 77 | size_t ssid_len; |
78 | 78 | ||
79 | atomic_t users; | 79 | atomic_t users; |
@@ -112,7 +112,7 @@ struct ieee80211_sta_bss { | |||
112 | u8 erp_value; | 112 | u8 erp_value; |
113 | }; | 113 | }; |
114 | 114 | ||
115 | static inline u8 *bss_mesh_cfg(struct ieee80211_sta_bss *bss) | 115 | static inline u8 *bss_mesh_cfg(struct ieee80211_bss *bss) |
116 | { | 116 | { |
117 | #ifdef CONFIG_MAC80211_MESH | 117 | #ifdef CONFIG_MAC80211_MESH |
118 | return bss->mesh_cfg; | 118 | return bss->mesh_cfg; |
@@ -120,7 +120,7 @@ static inline u8 *bss_mesh_cfg(struct ieee80211_sta_bss *bss) | |||
120 | return NULL; | 120 | return NULL; |
121 | } | 121 | } |
122 | 122 | ||
123 | static inline u8 *bss_mesh_id(struct ieee80211_sta_bss *bss) | 123 | static inline u8 *bss_mesh_id(struct ieee80211_bss *bss) |
124 | { | 124 | { |
125 | #ifdef CONFIG_MAC80211_MESH | 125 | #ifdef CONFIG_MAC80211_MESH |
126 | return bss->mesh_id; | 126 | return bss->mesh_id; |
@@ -128,7 +128,7 @@ static inline u8 *bss_mesh_id(struct ieee80211_sta_bss *bss) | |||
128 | return NULL; | 128 | return NULL; |
129 | } | 129 | } |
130 | 130 | ||
131 | static inline u8 bss_mesh_id_len(struct ieee80211_sta_bss *bss) | 131 | static inline u8 bss_mesh_id_len(struct ieee80211_bss *bss) |
132 | { | 132 | { |
133 | #ifdef CONFIG_MAC80211_MESH | 133 | #ifdef CONFIG_MAC80211_MESH |
134 | return bss->mesh_id_len; | 134 | return bss->mesh_id_len; |
@@ -658,8 +658,8 @@ struct ieee80211_local { | |||
658 | spinlock_t key_lock; | 658 | spinlock_t key_lock; |
659 | 659 | ||
660 | 660 | ||
661 | bool sta_sw_scanning; | 661 | /* Scanning and BSS list */ |
662 | bool sta_hw_scanning; | 662 | bool sw_scanning, hw_scanning; |
663 | int scan_channel_idx; | 663 | int scan_channel_idx; |
664 | enum ieee80211_band scan_band; | 664 | enum ieee80211_band scan_band; |
665 | 665 | ||
@@ -670,9 +670,9 @@ struct ieee80211_local { | |||
670 | struct ieee80211_channel *oper_channel, *scan_channel; | 670 | struct ieee80211_channel *oper_channel, *scan_channel; |
671 | u8 scan_ssid[IEEE80211_MAX_SSID_LEN]; | 671 | u8 scan_ssid[IEEE80211_MAX_SSID_LEN]; |
672 | size_t scan_ssid_len; | 672 | size_t scan_ssid_len; |
673 | struct list_head sta_bss_list; | 673 | struct list_head bss_list; |
674 | struct ieee80211_sta_bss *sta_bss_hash[STA_HASH_SIZE]; | 674 | struct ieee80211_bss *bss_hash[STA_HASH_SIZE]; |
675 | spinlock_t sta_bss_lock; | 675 | spinlock_t bss_lock; |
676 | 676 | ||
677 | /* SNMP counters */ | 677 | /* SNMP counters */ |
678 | /* dot11CountersTable */ | 678 | /* dot11CountersTable */ |
@@ -905,7 +905,7 @@ extern const struct iw_handler_def ieee80211_iw_handler_def; | |||
905 | 905 | ||
906 | /* STA/IBSS code */ | 906 | /* STA/IBSS code */ |
907 | void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata); | 907 | void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata); |
908 | void ieee80211_sta_scan_work(struct work_struct *work); | 908 | void ieee80211_scan_work(struct work_struct *work); |
909 | void ieee80211_sta_rx_mgmt(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, | 909 | void ieee80211_sta_rx_mgmt(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, |
910 | struct ieee80211_rx_status *rx_status); | 910 | struct ieee80211_rx_status *rx_status); |
911 | int ieee80211_sta_set_ssid(struct ieee80211_sub_if_data *sdata, char *ssid, size_t len); | 911 | int ieee80211_sta_set_ssid(struct ieee80211_sub_if_data *sdata, char *ssid, size_t len); |
@@ -926,35 +926,38 @@ void ieee80211_send_probe_req(struct ieee80211_sub_if_data *sdata, u8 *dst, | |||
926 | u8 *ssid, size_t ssid_len); | 926 | u8 *ssid, size_t ssid_len); |
927 | 927 | ||
928 | /* scan/BSS handling */ | 928 | /* scan/BSS handling */ |
929 | int ieee80211_sta_req_scan(struct ieee80211_sub_if_data *sdata, u8 *ssid, size_t ssid_len); | 929 | int ieee80211_request_scan(struct ieee80211_sub_if_data *sdata, |
930 | int ieee80211_sta_scan_results(struct ieee80211_local *local, | 930 | u8 *ssid, size_t ssid_len); |
931 | struct iw_request_info *info, | 931 | int ieee80211_scan_results(struct ieee80211_local *local, |
932 | char *buf, size_t len); | 932 | struct iw_request_info *info, |
933 | ieee80211_rx_result ieee80211_sta_rx_scan( | 933 | char *buf, size_t len); |
934 | struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, | 934 | ieee80211_rx_result |
935 | struct ieee80211_rx_status *rx_status); | 935 | ieee80211_scan_rx(struct ieee80211_sub_if_data *sdata, |
936 | struct sk_buff *skb, | ||
937 | struct ieee80211_rx_status *rx_status); | ||
936 | void ieee80211_rx_bss_list_init(struct ieee80211_local *local); | 938 | void ieee80211_rx_bss_list_init(struct ieee80211_local *local); |
937 | void ieee80211_rx_bss_list_deinit(struct ieee80211_local *local); | 939 | void ieee80211_rx_bss_list_deinit(struct ieee80211_local *local); |
938 | int ieee80211_sta_set_extra_ie(struct ieee80211_sub_if_data *sdata, char *ie, size_t len); | 940 | int ieee80211_sta_set_extra_ie(struct ieee80211_sub_if_data *sdata, |
941 | char *ie, size_t len); | ||
939 | 942 | ||
940 | void ieee80211_mlme_notify_scan_completed(struct ieee80211_local *local); | 943 | void ieee80211_mlme_notify_scan_completed(struct ieee80211_local *local); |
941 | int ieee80211_sta_start_scan(struct ieee80211_sub_if_data *scan_sdata, | 944 | int ieee80211_start_scan(struct ieee80211_sub_if_data *scan_sdata, |
942 | u8 *ssid, size_t ssid_len); | 945 | u8 *ssid, size_t ssid_len); |
943 | struct ieee80211_sta_bss * | 946 | struct ieee80211_bss * |
944 | ieee80211_bss_info_update(struct ieee80211_local *local, | 947 | ieee80211_bss_info_update(struct ieee80211_local *local, |
945 | struct ieee80211_rx_status *rx_status, | 948 | struct ieee80211_rx_status *rx_status, |
946 | struct ieee80211_mgmt *mgmt, | 949 | struct ieee80211_mgmt *mgmt, |
947 | size_t len, | 950 | size_t len, |
948 | struct ieee802_11_elems *elems, | 951 | struct ieee802_11_elems *elems, |
949 | int freq, bool beacon); | 952 | int freq, bool beacon); |
950 | struct ieee80211_sta_bss * | 953 | struct ieee80211_bss * |
951 | ieee80211_rx_bss_add(struct ieee80211_local *local, u8 *bssid, int freq, | 954 | ieee80211_rx_bss_add(struct ieee80211_local *local, u8 *bssid, int freq, |
952 | u8 *ssid, u8 ssid_len); | 955 | u8 *ssid, u8 ssid_len); |
953 | struct ieee80211_sta_bss * | 956 | struct ieee80211_bss * |
954 | ieee80211_rx_bss_get(struct ieee80211_local *local, u8 *bssid, int freq, | 957 | ieee80211_rx_bss_get(struct ieee80211_local *local, u8 *bssid, int freq, |
955 | u8 *ssid, u8 ssid_len); | 958 | u8 *ssid, u8 ssid_len); |
956 | void ieee80211_rx_bss_put(struct ieee80211_local *local, | 959 | void ieee80211_rx_bss_put(struct ieee80211_local *local, |
957 | struct ieee80211_sta_bss *bss); | 960 | struct ieee80211_bss *bss); |
958 | 961 | ||
959 | /* interface handling */ | 962 | /* interface handling */ |
960 | void ieee80211_if_setup(struct net_device *dev); | 963 | void ieee80211_if_setup(struct net_device *dev); |