blob: 0053d481cb0c714e5b748af67f92bd61a0c8e4c9 [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
Gopichand Nakkala92f07d82013-01-08 21:16:34 -080028/*
Jeff Johnson295189b2012-06-20 16:38:30 -070029 * Copyright (c) 2008 QUALCOMM Incorporated. All Rights Reserved.
30 * Qualcomm Confidential and Proprietary
31 */
32
33/* This file is generated from btampFsm - do not edit manually*/
34/* Generated on: Thu Oct 16 15:40:39 PDT 2008 / version 1.2 Beta 1 */
35
36
37#ifndef __BTAMPFSM_H__
38#define __BTAMPFSM_H__
39
40#include "bapRsn8021xFsm.h"
41
42/* State definitions */
43typedef enum
44{
45 AUTHENTICATING,
46 DISCONNECTED,
47 CONNECTING,
48 DISCONNECTING,
49 SCANNING,
50 CONNECTED,
51 S1,
52 KEYING,
53 VALIDATED,
54 STARTING,
55} BTAMPFSM_STATES_T;
56
57
58#if 0
59/* Instance data definition of state machine */
60typedef struct
61{
62 BTAMPFSM_ENTRY_FLAG_T disconnectedEntry;
63 BTAMPFSM_STATEVAR_T stateVar;
64 BTAMPFSM_INST_ID_T inst_id;
65} BTAMPFSM_INSTANCEDATA_T;
66#endif //0
67
68/* Helper to initialize the machine's instance data */
69#define BTAMPFSM_INSTANCEDATA_INIT { 1, DISCONNECTED/* set init state */, 0 /* instance id */};
70
71/*Prototype for the change state function*/
72void btampfsmChangeToState(BTAMPFSM_INSTANCEDATA_T *instance, BTAMPFSM_STATES_T state);
73
74
75
76/*Prototype of the state machine function */
77//int
78VOS_STATUS
79btampFsm
80(
81 //BTAMPFSM_INSTANCEDATA_T *instanceVar
82 ptBtampContext btampContext, /* btampContext value */
83// tBtampSessCtx *tpBtampSessCtx, /* btampContext value */
84 ptWLAN_BAPEvent bapEvent, /* State machine event */
85 v_U8_t *status /* return the BT-AMP status here */
86);
87
88VOS_STATUS
89bapSetKey( v_PVOID_t pvosGCtx, tCsrRoamSetKey *pSetKeyInfo );
90
91int bapSuppDisconnect(tBtampContext *ctx);
92int bapAuthDisconnect(tBtampContext *ctx);
93VOS_STATUS btampEstablishLogLink(ptBtampContext btampContext);
94#endif