blob: 894a072b9f8d4e6ab8164a422deec0aa68e462df [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;
Holger Schurigac558ca2007-08-02 11:49:06 -040015int libertas_cmd_80211_authenticate(wlan_private * priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020016 struct cmd_ds_command *cmd,
17 void *pdata_buf);
Holger Schurigac558ca2007-08-02 11:49:06 -040018int libertas_cmd_80211_ad_hoc_join(wlan_private * priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020019 struct cmd_ds_command *cmd,
20 void *pdata_buf);
Holger Schurigac558ca2007-08-02 11:49:06 -040021int libertas_cmd_80211_ad_hoc_stop(wlan_private * priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020022 struct cmd_ds_command *cmd);
Holger Schurigac558ca2007-08-02 11:49:06 -040023int libertas_cmd_80211_ad_hoc_start(wlan_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 Schurigac558ca2007-08-02 11:49:06 -040026int libertas_cmd_80211_deauthenticate(wlan_private * priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020027 struct cmd_ds_command *cmd);
Holger Schurigac558ca2007-08-02 11:49:06 -040028int libertas_cmd_80211_associate(wlan_private * priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020029 struct cmd_ds_command *cmd,
30 void *pdata_buf);
31
Holger Schurigac558ca2007-08-02 11:49:06 -040032int libertas_ret_80211_ad_hoc_start(wlan_private * priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020033 struct cmd_ds_command *resp);
Holger Schurigac558ca2007-08-02 11:49:06 -040034int libertas_ret_80211_ad_hoc_stop(wlan_private * priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020035 struct cmd_ds_command *resp);
Holger Schurigac558ca2007-08-02 11:49:06 -040036int libertas_ret_80211_disassociate(wlan_private * priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020037 struct cmd_ds_command *resp);
Holger Schurigac558ca2007-08-02 11:49:06 -040038int libertas_ret_80211_associate(wlan_private * priv,
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020039 struct cmd_ds_command *resp);
40
Holger Schurigac558ca2007-08-02 11:49:06 -040041int libertas_start_adhoc_network(wlan_private * priv,
Dan Williamse76850d2007-05-25 17:09:41 -040042 struct assoc_request * assoc_req);
Holger Schurigac558ca2007-08-02 11:49:06 -040043int libertas_join_adhoc_network(wlan_private * priv,
Dan Williamse76850d2007-05-25 17:09:41 -040044 struct assoc_request * assoc_req);
Holger Schurigac558ca2007-08-02 11:49:06 -040045int libertas_stop_adhoc_network(wlan_private * priv);
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020046
Holger Schurigac558ca2007-08-02 11:49:06 -040047int libertas_send_deauthentication(wlan_private * priv);
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020048
Dan Williamse76850d2007-05-25 17:09:41 -040049int wlan_associate(wlan_private * priv, struct assoc_request * assoc_req);
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020050
Dan Williams8c512762007-08-02 11:40:45 -040051void libertas_unset_basic_rate_flags(u8 * rates, size_t len);
52
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020053#endif