Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 1 | /** |
| 2 | * Interface for the wlan infrastructure and adhoc join routines |
| 3 | * |
| 4 | * Driver interface functions and type declarations for the join module |
| 5 | * implemented in wlan_join.c. Process all start/join requests for |
| 6 | * both adhoc and infrastructure networks |
| 7 | */ |
| 8 | #ifndef _WLAN_JOIN_H |
| 9 | #define _WLAN_JOIN_H |
| 10 | |
| 11 | #include "defs.h" |
Dan Williams | e76850d | 2007-05-25 17:09:41 -0400 | [diff] [blame] | 12 | #include "dev.h" |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 13 | |
| 14 | struct cmd_ds_command; |
Holger Schurig | ac558ca | 2007-08-02 11:49:06 -0400 | [diff] [blame] | 15 | int libertas_cmd_80211_authenticate(wlan_private * priv, |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 16 | struct cmd_ds_command *cmd, |
| 17 | void *pdata_buf); |
Holger Schurig | ac558ca | 2007-08-02 11:49:06 -0400 | [diff] [blame] | 18 | int libertas_cmd_80211_ad_hoc_join(wlan_private * priv, |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 19 | struct cmd_ds_command *cmd, |
| 20 | void *pdata_buf); |
Holger Schurig | ac558ca | 2007-08-02 11:49:06 -0400 | [diff] [blame] | 21 | int libertas_cmd_80211_ad_hoc_stop(wlan_private * priv, |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 22 | struct cmd_ds_command *cmd); |
Holger Schurig | ac558ca | 2007-08-02 11:49:06 -0400 | [diff] [blame] | 23 | int libertas_cmd_80211_ad_hoc_start(wlan_private * priv, |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 24 | struct cmd_ds_command *cmd, |
Dan Williams | e76850d | 2007-05-25 17:09:41 -0400 | [diff] [blame] | 25 | void *pdata_buf); |
Holger Schurig | ac558ca | 2007-08-02 11:49:06 -0400 | [diff] [blame] | 26 | int libertas_cmd_80211_deauthenticate(wlan_private * priv, |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 27 | struct cmd_ds_command *cmd); |
Holger Schurig | ac558ca | 2007-08-02 11:49:06 -0400 | [diff] [blame] | 28 | int libertas_cmd_80211_associate(wlan_private * priv, |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 29 | struct cmd_ds_command *cmd, |
| 30 | void *pdata_buf); |
| 31 | |
Holger Schurig | ac558ca | 2007-08-02 11:49:06 -0400 | [diff] [blame] | 32 | int libertas_ret_80211_ad_hoc_start(wlan_private * priv, |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 33 | struct cmd_ds_command *resp); |
Holger Schurig | ac558ca | 2007-08-02 11:49:06 -0400 | [diff] [blame] | 34 | int libertas_ret_80211_ad_hoc_stop(wlan_private * priv, |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 35 | struct cmd_ds_command *resp); |
Holger Schurig | ac558ca | 2007-08-02 11:49:06 -0400 | [diff] [blame] | 36 | int libertas_ret_80211_disassociate(wlan_private * priv, |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 37 | struct cmd_ds_command *resp); |
Holger Schurig | ac558ca | 2007-08-02 11:49:06 -0400 | [diff] [blame] | 38 | int libertas_ret_80211_associate(wlan_private * priv, |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 39 | struct cmd_ds_command *resp); |
| 40 | |
Holger Schurig | ac558ca | 2007-08-02 11:49:06 -0400 | [diff] [blame] | 41 | int libertas_start_adhoc_network(wlan_private * priv, |
Dan Williams | e76850d | 2007-05-25 17:09:41 -0400 | [diff] [blame] | 42 | struct assoc_request * assoc_req); |
Holger Schurig | ac558ca | 2007-08-02 11:49:06 -0400 | [diff] [blame] | 43 | int libertas_join_adhoc_network(wlan_private * priv, |
Dan Williams | e76850d | 2007-05-25 17:09:41 -0400 | [diff] [blame] | 44 | struct assoc_request * assoc_req); |
Holger Schurig | ac558ca | 2007-08-02 11:49:06 -0400 | [diff] [blame] | 45 | int libertas_stop_adhoc_network(wlan_private * priv); |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 46 | |
Holger Schurig | ac558ca | 2007-08-02 11:49:06 -0400 | [diff] [blame] | 47 | int libertas_send_deauthentication(wlan_private * priv); |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 48 | |
Dan Williams | e76850d | 2007-05-25 17:09:41 -0400 | [diff] [blame] | 49 | int wlan_associate(wlan_private * priv, struct assoc_request * assoc_req); |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 50 | |
Dan Williams | 8c51276 | 2007-08-02 11:40:45 -0400 | [diff] [blame] | 51 | void libertas_unset_basic_rate_flags(u8 * rates, size_t len); |
| 52 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 53 | #endif |