blob: 8ea5ae30f4ab694f3fcfc96b7c781756b0e69783 [file] [log] [blame]
Marcelo Tosatti876c9d32007-02-10 12:25:27 -02001/**
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 Williamse76850d2007-05-25 17:09:41 -040012#include "dev.h"
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020013
14struct cmd_ds_command;
15extern int libertas_cmd_80211_authenticate(wlan_private * priv,
16 struct cmd_ds_command *cmd,
17 void *pdata_buf);
18extern int libertas_cmd_80211_ad_hoc_join(wlan_private * priv,
19 struct cmd_ds_command *cmd,
20 void *pdata_buf);
21extern int libertas_cmd_80211_ad_hoc_stop(wlan_private * priv,
22 struct cmd_ds_command *cmd);
23extern int libertas_cmd_80211_ad_hoc_start(wlan_private * priv,
24 struct cmd_ds_command *cmd,
Dan Williamse76850d2007-05-25 17:09:41 -040025 void *pdata_buf);
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020026extern int libertas_cmd_80211_deauthenticate(wlan_private * priv,
27 struct cmd_ds_command *cmd);
28extern int libertas_cmd_80211_associate(wlan_private * priv,
29 struct cmd_ds_command *cmd,
30 void *pdata_buf);
31
32extern int libertas_ret_80211_ad_hoc_start(wlan_private * priv,
33 struct cmd_ds_command *resp);
34extern int libertas_ret_80211_ad_hoc_stop(wlan_private * priv,
35 struct cmd_ds_command *resp);
36extern int libertas_ret_80211_disassociate(wlan_private * priv,
37 struct cmd_ds_command *resp);
38extern int libertas_ret_80211_associate(wlan_private * priv,
39 struct cmd_ds_command *resp);
40
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020041extern int libertas_reassociation_thread(void *data);
42
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020043extern int libertas_start_adhoc_network(wlan_private * priv,
Dan Williamse76850d2007-05-25 17:09:41 -040044 struct assoc_request * assoc_req);
45extern int libertas_join_adhoc_network(wlan_private * priv,
46 struct assoc_request * assoc_req);
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020047extern int libertas_stop_adhoc_network(wlan_private * priv);
48
49extern int libertas_send_deauthentication(wlan_private * priv);
50extern int libertas_send_deauth(wlan_private * priv);
51
52extern int libertas_do_adhocstop_ioctl(wlan_private * priv);
53
Dan Williamse76850d2007-05-25 17:09:41 -040054int wlan_associate(wlan_private * priv, struct assoc_request * assoc_req);
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020055
Dan Williams8c512762007-08-02 11:40:45 -040056void libertas_unset_basic_rate_flags(u8 * rates, size_t len);
57
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020058#endif