aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/join.h
blob: 5c2b2df5e577824d9e980aa5930671460417e332 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
  * Interface for the wlan infrastructure and adhoc join routines
  *
  * Driver interface functions and type declarations for the join module
  *   implemented in join.c.  Process all start/join requests for
  *   both adhoc and infrastructure networks
  */
#ifndef _LBS_JOIN_H
#define _LBS_JOIN_H

#include "defs.h"
#include "dev.h"

struct cmd_ds_command;
int lbs_cmd_80211_authenticate(lbs_private *priv,
					struct cmd_ds_command *cmd,
					void *pdata_buf);
int lbs_cmd_80211_ad_hoc_join(lbs_private *priv,
				       struct cmd_ds_command *cmd,
				       void *pdata_buf);
int lbs_cmd_80211_ad_hoc_stop(lbs_private *priv,
				       struct cmd_ds_command *cmd);
int lbs_cmd_80211_ad_hoc_start(lbs_private *priv,
					struct cmd_ds_command *cmd,
					void *pdata_buf);
int lbs_cmd_80211_deauthenticate(lbs_private *priv,
					  struct cmd_ds_command *cmd);
int lbs_cmd_80211_associate(lbs_private *priv,
				     struct cmd_ds_command *cmd,
				     void *pdata_buf);

int lbs_ret_80211_ad_hoc_start(lbs_private *priv,
					struct cmd_ds_command *resp);
int lbs_ret_80211_ad_hoc_stop(lbs_private *priv,
				       struct cmd_ds_command *resp);
int lbs_ret_80211_disassociate(lbs_private *priv,
					struct cmd_ds_command *resp);
int lbs_ret_80211_associate(lbs_private *priv,
				     struct cmd_ds_command *resp);

int lbs_start_adhoc_network(lbs_private *priv,
			     struct assoc_request * assoc_req);
int lbs_join_adhoc_network(lbs_private *priv,
				struct assoc_request * assoc_req);
int lbs_stop_adhoc_network(lbs_private *priv);

int lbs_send_deauthentication(lbs_private *priv);

int lbs_associate(lbs_private *priv, struct assoc_request *assoc_req);

void lbs_unset_basic_rate_flags(u8 *rates, size_t len);

#endif