blob: 660f07e6f793f7435d2a00c696bf39fc42e79cbf [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Kiet Lam842dad02014-02-18 18:44:02 -08002 * Copyright (c) 2012-2013 The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
Gopichand Nakkala92f07d82013-01-08 21:16:34 -080020 */
Kiet Lam842dad02014-02-18 18:44:02 -080021
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27
Jeff Johnson295189b2012-06-20 16:38:30 -070028/* This file is generated from btampFsm - do not edit manually*/
29/* Generated on: Thu Oct 16 15:40:39 PDT 2008 / version 1.2 Beta 1 */
30
31
32#ifndef __BTAMPFSM_H__
33#define __BTAMPFSM_H__
34
35#include "bapRsn8021xFsm.h"
36
37/* State definitions */
38typedef enum
39{
40 AUTHENTICATING,
41 DISCONNECTED,
42 CONNECTING,
43 DISCONNECTING,
44 SCANNING,
45 CONNECTED,
46 S1,
47 KEYING,
48 VALIDATED,
49 STARTING,
50} BTAMPFSM_STATES_T;
51
52
53#if 0
54/* Instance data definition of state machine */
55typedef struct
56{
57 BTAMPFSM_ENTRY_FLAG_T disconnectedEntry;
58 BTAMPFSM_STATEVAR_T stateVar;
59 BTAMPFSM_INST_ID_T inst_id;
60} BTAMPFSM_INSTANCEDATA_T;
61#endif //0
62
63/* Helper to initialize the machine's instance data */
64#define BTAMPFSM_INSTANCEDATA_INIT { 1, DISCONNECTED/* set init state */, 0 /* instance id */};
65
66/*Prototype for the change state function*/
67void btampfsmChangeToState(BTAMPFSM_INSTANCEDATA_T *instance, BTAMPFSM_STATES_T state);
68
69
70
71/*Prototype of the state machine function */
72//int
73VOS_STATUS
74btampFsm
75(
76 //BTAMPFSM_INSTANCEDATA_T *instanceVar
77 ptBtampContext btampContext, /* btampContext value */
78// tBtampSessCtx *tpBtampSessCtx, /* btampContext value */
79 ptWLAN_BAPEvent bapEvent, /* State machine event */
80 v_U8_t *status /* return the BT-AMP status here */
81);
82
83VOS_STATUS
84bapSetKey( v_PVOID_t pvosGCtx, tCsrRoamSetKey *pSetKeyInfo );
85
86int bapSuppDisconnect(tBtampContext *ctx);
87int bapAuthDisconnect(tBtampContext *ctx);
88VOS_STATUS btampEstablishLogLink(ptBtampContext btampContext);
89#endif