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 |
Holger Schurig | 1007832 | 2007-11-15 18:05:47 -0500 | [diff] [blame] | 5 | * implemented in join.c. Process all start/join requests for |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 6 | * both adhoc and infrastructure networks |
| 7 | */ |
Holger Schurig | 1007832 | 2007-11-15 18:05:47 -0500 | [diff] [blame] | 8 | #ifndef _LBS_JOIN_H |
| 9 | #define _LBS_JOIN_H |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 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 | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 15 | int lbs_cmd_80211_authenticate(struct lbs_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 | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 18 | int lbs_cmd_80211_ad_hoc_join(struct lbs_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 | e98a88d | 2008-03-19 14:25:58 +0100 | [diff] [blame] | 21 | int lbs_cmd_80211_ad_hoc_stop(struct cmd_ds_command *cmd); |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 22 | int lbs_cmd_80211_ad_hoc_start(struct lbs_private *priv, |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 23 | struct cmd_ds_command *cmd, |
Dan Williams | e76850d | 2007-05-25 17:09:41 -0400 | [diff] [blame] | 24 | void *pdata_buf); |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 25 | int lbs_cmd_80211_deauthenticate(struct lbs_private *priv, |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 26 | struct cmd_ds_command *cmd); |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 27 | int lbs_cmd_80211_associate(struct lbs_private *priv, |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 28 | struct cmd_ds_command *cmd, |
| 29 | void *pdata_buf); |
| 30 | |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 31 | int lbs_ret_80211_ad_hoc_start(struct lbs_private *priv, |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 32 | struct cmd_ds_command *resp); |
Holger Schurig | e98a88d | 2008-03-19 14:25:58 +0100 | [diff] [blame] | 33 | int lbs_ret_80211_ad_hoc_stop(struct lbs_private *priv); |
| 34 | int lbs_ret_80211_disassociate(struct lbs_private *priv); |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 35 | int lbs_ret_80211_associate(struct lbs_private *priv, |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 36 | struct cmd_ds_command *resp); |
| 37 | |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 38 | int lbs_start_adhoc_network(struct lbs_private *priv, |
Dan Williams | e76850d | 2007-05-25 17:09:41 -0400 | [diff] [blame] | 39 | struct assoc_request * assoc_req); |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 40 | int lbs_join_adhoc_network(struct lbs_private *priv, |
Dan Williams | e76850d | 2007-05-25 17:09:41 -0400 | [diff] [blame] | 41 | struct assoc_request * assoc_req); |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 42 | int lbs_stop_adhoc_network(struct lbs_private *priv); |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 43 | |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 44 | int lbs_send_deauthentication(struct lbs_private *priv); |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 45 | |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 46 | int lbs_associate(struct lbs_private *priv, struct assoc_request *assoc_req); |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 47 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 48 | #endif |