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