blob: 792c64fe3514361bd8db838f995dc213463b83eb [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
Holger Schurig10078322007-11-15 18:05:47 -05005 * implemented in join.c. Process all start/join requests for
Marcelo Tosatti876c9d32007-02-10 12:25:27 -02006 * both adhoc and infrastructure networks
7 */
Holger Schurig10078322007-11-15 18:05:47 -05008#ifndef _LBS_JOIN_H
9#define _LBS_JOIN_H
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020010
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;
Holger Schurig69f90322007-11-23 15:43:44 +010015int lbs_cmd_80211_authenticate(struct lbs_private *priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020016 struct cmd_ds_command *cmd,
17 void *pdata_buf);
Holger Schurig69f90322007-11-23 15:43:44 +010018int lbs_cmd_80211_ad_hoc_join(struct lbs_private *priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020019 struct cmd_ds_command *cmd,
20 void *pdata_buf);
Holger Schurig69f90322007-11-23 15:43:44 +010021int lbs_cmd_80211_ad_hoc_stop(struct lbs_private *priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020022 struct cmd_ds_command *cmd);
Holger Schurig69f90322007-11-23 15:43:44 +010023int lbs_cmd_80211_ad_hoc_start(struct lbs_private *priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020024 struct cmd_ds_command *cmd,
Dan Williamse76850d2007-05-25 17:09:41 -040025 void *pdata_buf);
Holger Schurig69f90322007-11-23 15:43:44 +010026int lbs_cmd_80211_deauthenticate(struct lbs_private *priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020027 struct cmd_ds_command *cmd);
Holger Schurig69f90322007-11-23 15:43:44 +010028int lbs_cmd_80211_associate(struct lbs_private *priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020029 struct cmd_ds_command *cmd,
30 void *pdata_buf);
31
Holger Schurig69f90322007-11-23 15:43:44 +010032int lbs_ret_80211_ad_hoc_start(struct lbs_private *priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020033 struct cmd_ds_command *resp);
Holger Schurig69f90322007-11-23 15:43:44 +010034int lbs_ret_80211_ad_hoc_stop(struct lbs_private *priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020035 struct cmd_ds_command *resp);
Holger Schurig69f90322007-11-23 15:43:44 +010036int lbs_ret_80211_disassociate(struct lbs_private *priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020037 struct cmd_ds_command *resp);
Holger Schurig69f90322007-11-23 15:43:44 +010038int lbs_ret_80211_associate(struct lbs_private *priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020039 struct cmd_ds_command *resp);
40
Holger Schurig69f90322007-11-23 15:43:44 +010041int lbs_start_adhoc_network(struct lbs_private *priv,
Dan Williamse76850d2007-05-25 17:09:41 -040042 struct assoc_request * assoc_req);
Holger Schurig69f90322007-11-23 15:43:44 +010043int lbs_join_adhoc_network(struct lbs_private *priv,
Dan Williamse76850d2007-05-25 17:09:41 -040044 struct assoc_request * assoc_req);
Holger Schurig69f90322007-11-23 15:43:44 +010045int lbs_stop_adhoc_network(struct lbs_private *priv);
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020046
Holger Schurig69f90322007-11-23 15:43:44 +010047int lbs_send_deauthentication(struct lbs_private *priv);
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020048
Holger Schurig69f90322007-11-23 15:43:44 +010049int lbs_associate(struct lbs_private *priv, struct assoc_request *assoc_req);
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020050
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020051#endif