blob: 84ffc4ef5e7a9ec0173c5b6d3807d879af58660d [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Kiet Lamaa8e15a2014-02-11 23:30:06 -08002 * Copyright (c) 2012-2013 Qualcomm Atheros, Inc.
3 * All Rights Reserved.
4 * Qualcomm Atheros Confidential and Proprietary.
Gopichand Nakkala92f07d82013-01-08 21:16:34 -08005 */
6/*
Jeff Johnson295189b2012-06-20 16:38:30 -07007 * Woodside Networks, Inc proprietary. All rights reserved.
8 * $File: //depot/software/projects/feature_branches/gen5_phase1/os/linux/classic/ap/apps/ssm/auth8021x/ani8021xAuthRsnFsm.h $
9 *
10 * Contains declarations for the RSN EAPOL-Key FSM on the
11 * authenticator side. This is based on 802.11i.
12 *
13 * Author: Mayank D. Upadhyay
14 * Date: 19-December-2002
15 * History:-
16 * Date Modified by Modification Information
17 * ------------------------------------------------------
18 *
19 */
20#ifndef __AAG_AUTH_RSN_FSM_H
21#define __AAG_AUTH_RSN_FSM_H
22
23#include "vos_types.h"
24#include "vos_timer.h"
25
26#include "bapInternal.h"
27#include "bapRsn8021xFsm.h"
28
29
30
31/**
32 * authRsnFsmInit
33 *
34 * FUNCTION:
35 * Initializes the constants and the callbacks needed by this FSM
36 * module.
37 *
38 * @param consts the various constant values needed by this FSM
39 * @param cb callbacks to the various procedures needed by this FSM
40 *
41 * @return ANI_OK if the operation succeeds
42 */
43int
44authRsnFsmInit(tAuthRsnFsmConsts *consts);
45
46/**
47 * authRsnFsmCreate
48 *
49 * FUNCTION
50 * Allocates and initializes the state of an RSN key FSM instance for
51 * the given STA context.
52 *
53 * @parm ctx the STA context whose instance is being created
54 * @param pskBased pass in eANI_BOOLEAN_TRUE is this STA is to be
55 * authenticated based on a pre-shared key as opposed to EAP.
56 *
57 * @return ANI_OK if the operation succeeds
58 */
59int
60authRsnFsmCreate(tBtampContext *ctx);
61
62
63
64int
65authRsnFsmSetPmk(tStaContext *ctx, v_U8_t *pmk);
66
67#endif //__AAG_AUTH_RSN_FSM_H