diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-19 15:25:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:57:17 -0400 |
commit | af8cdcd828ad751fae8e6cbfe94eef9f2f23b14b (patch) | |
tree | 7a00a19c976abbeba16bd04ddc177b6332057c98 /net/mac80211/ieee80211_i.h | |
parent | 04a773ade0680d862b479d7219973df60f7a3834 (diff) |
mac80211: convert to cfg80211 IBSS API
This converts mac80211 to the new cfg80211 IBSS API, the
wext handling functions are called where appropriate.
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 | 35 |
1 files changed, 13 insertions, 22 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 38c980612518..e770c1e8e08c 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -323,14 +323,6 @@ struct ieee80211_if_managed { | |||
323 | size_t sme_auth_ie_len; | 323 | size_t sme_auth_ie_len; |
324 | }; | 324 | }; |
325 | 325 | ||
326 | enum ieee80211_ibss_flags { | ||
327 | IEEE80211_IBSS_AUTO_CHANNEL_SEL = BIT(0), | ||
328 | IEEE80211_IBSS_AUTO_BSSID_SEL = BIT(1), | ||
329 | IEEE80211_IBSS_BSSID_SET = BIT(2), | ||
330 | IEEE80211_IBSS_PREV_BSSID_SET = BIT(3), | ||
331 | IEEE80211_IBSS_SSID_SET = BIT(4), | ||
332 | }; | ||
333 | |||
334 | enum ieee80211_ibss_request { | 326 | enum ieee80211_ibss_request { |
335 | IEEE80211_IBSS_REQ_RUN = 0, | 327 | IEEE80211_IBSS_REQ_RUN = 0, |
336 | }; | 328 | }; |
@@ -341,17 +333,20 @@ struct ieee80211_if_ibss { | |||
341 | 333 | ||
342 | struct sk_buff_head skb_queue; | 334 | struct sk_buff_head skb_queue; |
343 | 335 | ||
344 | u8 ssid[IEEE80211_MAX_SSID_LEN]; | 336 | unsigned long request; |
345 | u8 ssid_len; | 337 | unsigned long last_scan_completed; |
346 | 338 | bool fixed_bssid; | |
347 | u32 flags; | 339 | bool fixed_channel; |
348 | 340 | ||
349 | u8 bssid[ETH_ALEN]; | 341 | u8 bssid[ETH_ALEN]; |
350 | 342 | u8 ssid[IEEE80211_MAX_SSID_LEN]; | |
351 | unsigned long request; | 343 | u8 ssid_len, ie_len; |
344 | u8 *ie; | ||
345 | struct ieee80211_channel *channel; | ||
352 | 346 | ||
353 | unsigned long ibss_join_req; | 347 | unsigned long ibss_join_req; |
354 | struct sk_buff *probe_resp; /* ProbeResp template for IBSS */ | 348 | /* probe response/beacon for IBSS */ |
349 | struct sk_buff *presp, *skb; | ||
355 | 350 | ||
356 | enum { | 351 | enum { |
357 | IEEE80211_IBSS_MLME_SEARCH, | 352 | IEEE80211_IBSS_MLME_SEARCH, |
@@ -630,8 +625,6 @@ struct ieee80211_local { | |||
630 | spinlock_t sta_lock; | 625 | spinlock_t sta_lock; |
631 | unsigned long num_sta; | 626 | unsigned long num_sta; |
632 | struct list_head sta_list; | 627 | struct list_head sta_list; |
633 | struct list_head sta_flush_list; | ||
634 | struct work_struct sta_flush_work; | ||
635 | struct sta_info *sta_hash[STA_HASH_SIZE]; | 628 | struct sta_info *sta_hash[STA_HASH_SIZE]; |
636 | struct timer_list sta_cleanup; | 629 | struct timer_list sta_cleanup; |
637 | 630 | ||
@@ -681,7 +674,6 @@ struct ieee80211_local { | |||
681 | int scan_ies_len; | 674 | int scan_ies_len; |
682 | 675 | ||
683 | enum { SCAN_SET_CHANNEL, SCAN_SEND_PROBE } scan_state; | 676 | enum { SCAN_SET_CHANNEL, SCAN_SEND_PROBE } scan_state; |
684 | unsigned long last_scan_completed; | ||
685 | struct delayed_work scan_work; | 677 | struct delayed_work scan_work; |
686 | struct ieee80211_sub_if_data *scan_sdata; | 678 | struct ieee80211_sub_if_data *scan_sdata; |
687 | enum nl80211_channel_type oper_channel_type; | 679 | enum nl80211_channel_type oper_channel_type; |
@@ -946,10 +938,6 @@ int ieee80211_max_network_latency(struct notifier_block *nb, | |||
946 | unsigned long data, void *dummy); | 938 | unsigned long data, void *dummy); |
947 | 939 | ||
948 | /* IBSS code */ | 940 | /* IBSS code */ |
949 | int ieee80211_ibss_commit(struct ieee80211_sub_if_data *sdata); | ||
950 | int ieee80211_ibss_set_ssid(struct ieee80211_sub_if_data *sdata, char *ssid, size_t len); | ||
951 | int ieee80211_ibss_get_ssid(struct ieee80211_sub_if_data *sdata, char *ssid, size_t *len); | ||
952 | int ieee80211_ibss_set_bssid(struct ieee80211_sub_if_data *sdata, u8 *bssid); | ||
953 | void ieee80211_ibss_notify_scan_completed(struct ieee80211_local *local); | 941 | void ieee80211_ibss_notify_scan_completed(struct ieee80211_local *local); |
954 | void ieee80211_ibss_setup_sdata(struct ieee80211_sub_if_data *sdata); | 942 | void ieee80211_ibss_setup_sdata(struct ieee80211_sub_if_data *sdata); |
955 | ieee80211_rx_result | 943 | ieee80211_rx_result |
@@ -957,6 +945,9 @@ ieee80211_ibss_rx_mgmt(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, | |||
957 | struct ieee80211_rx_status *rx_status); | 945 | struct ieee80211_rx_status *rx_status); |
958 | struct sta_info *ieee80211_ibss_add_sta(struct ieee80211_sub_if_data *sdata, | 946 | struct sta_info *ieee80211_ibss_add_sta(struct ieee80211_sub_if_data *sdata, |
959 | u8 *bssid, u8 *addr, u32 supp_rates); | 947 | u8 *bssid, u8 *addr, u32 supp_rates); |
948 | int ieee80211_ibss_join(struct ieee80211_sub_if_data *sdata, | ||
949 | struct cfg80211_ibss_params *params); | ||
950 | int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata); | ||
960 | 951 | ||
961 | /* scan/BSS handling */ | 952 | /* scan/BSS handling */ |
962 | void ieee80211_scan_work(struct work_struct *work); | 953 | void ieee80211_scan_work(struct work_struct *work); |