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" |
| 12 | |
| 13 | struct cmd_ds_command; |
| 14 | extern int libertas_cmd_80211_authenticate(wlan_private * priv, |
| 15 | struct cmd_ds_command *cmd, |
| 16 | void *pdata_buf); |
| 17 | extern int libertas_cmd_80211_ad_hoc_join(wlan_private * priv, |
| 18 | struct cmd_ds_command *cmd, |
| 19 | void *pdata_buf); |
| 20 | extern int libertas_cmd_80211_ad_hoc_stop(wlan_private * priv, |
| 21 | struct cmd_ds_command *cmd); |
| 22 | extern int libertas_cmd_80211_ad_hoc_start(wlan_private * priv, |
| 23 | struct cmd_ds_command *cmd, |
| 24 | void *pssid); |
| 25 | extern int libertas_cmd_80211_deauthenticate(wlan_private * priv, |
| 26 | struct cmd_ds_command *cmd); |
| 27 | extern int libertas_cmd_80211_associate(wlan_private * priv, |
| 28 | struct cmd_ds_command *cmd, |
| 29 | void *pdata_buf); |
| 30 | |
| 31 | extern int libertas_ret_80211_ad_hoc_start(wlan_private * priv, |
| 32 | struct cmd_ds_command *resp); |
| 33 | extern int libertas_ret_80211_ad_hoc_stop(wlan_private * priv, |
| 34 | struct cmd_ds_command *resp); |
| 35 | extern int libertas_ret_80211_disassociate(wlan_private * priv, |
| 36 | struct cmd_ds_command *resp); |
| 37 | extern int libertas_ret_80211_associate(wlan_private * priv, |
| 38 | struct cmd_ds_command *resp); |
| 39 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 40 | extern int libertas_reassociation_thread(void *data); |
| 41 | |
| 42 | struct WLAN_802_11_SSID; |
| 43 | struct bss_descriptor; |
| 44 | |
| 45 | extern int libertas_start_adhoc_network(wlan_private * priv, |
| 46 | struct WLAN_802_11_SSID *adhocssid); |
| 47 | extern int libertas_join_adhoc_network(wlan_private * priv, struct bss_descriptor *pbssdesc); |
| 48 | extern int libertas_stop_adhoc_network(wlan_private * priv); |
| 49 | |
| 50 | extern int libertas_send_deauthentication(wlan_private * priv); |
| 51 | extern int libertas_send_deauth(wlan_private * priv); |
| 52 | |
| 53 | extern int libertas_do_adhocstop_ioctl(wlan_private * priv); |
| 54 | |
| 55 | int wlan_associate(wlan_private * priv, struct bss_descriptor * pbssdesc); |
| 56 | |
| 57 | #endif |