Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
AnjaneeDevi Kapparapu | 24b52ff | 2014-02-18 18:44:02 -0800 | [diff] [blame] | 2 | * 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 Nakkala | 9c070ad | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 20 | */ |
AnjaneeDevi Kapparapu | 24b52ff | 2014-02-18 18:44:02 -0800 | [diff] [blame] | 21 | |
Gopichand Nakkala | 9c070ad | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 22 | /* |
AnjaneeDevi Kapparapu | 24b52ff | 2014-02-18 18:44:02 -0800 | [diff] [blame] | 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 | |
| 28 | /* |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 29 | * $File: //depot/software/projects/feature_branches/gen5_phase1/os/linux/classic/ap/apps/ssm/auth8021x/ani8021xAuthRsnFsm.h $ |
| 30 | * |
| 31 | * Contains declarations for the RSN EAPOL-Key FSM on the |
| 32 | * authenticator side. This is based on 802.11i. |
| 33 | * |
| 34 | * Author: Mayank D. Upadhyay |
| 35 | * Date: 19-December-2002 |
| 36 | * History:- |
| 37 | * Date Modified by Modification Information |
| 38 | * ------------------------------------------------------ |
| 39 | * |
| 40 | */ |
| 41 | #ifndef __AAG_AUTH_RSN_FSM_H |
| 42 | #define __AAG_AUTH_RSN_FSM_H |
| 43 | |
| 44 | #include "vos_types.h" |
| 45 | #include "vos_timer.h" |
| 46 | |
| 47 | #include "bapInternal.h" |
| 48 | #include "bapRsn8021xFsm.h" |
| 49 | |
| 50 | |
| 51 | |
| 52 | /** |
| 53 | * authRsnFsmInit |
| 54 | * |
| 55 | * FUNCTION: |
| 56 | * Initializes the constants and the callbacks needed by this FSM |
| 57 | * module. |
| 58 | * |
| 59 | * @param consts the various constant values needed by this FSM |
| 60 | * @param cb callbacks to the various procedures needed by this FSM |
| 61 | * |
| 62 | * @return ANI_OK if the operation succeeds |
| 63 | */ |
| 64 | int |
| 65 | authRsnFsmInit(tAuthRsnFsmConsts *consts); |
| 66 | |
| 67 | /** |
| 68 | * authRsnFsmCreate |
| 69 | * |
| 70 | * FUNCTION |
| 71 | * Allocates and initializes the state of an RSN key FSM instance for |
| 72 | * the given STA context. |
| 73 | * |
| 74 | * @parm ctx the STA context whose instance is being created |
| 75 | * @param pskBased pass in eANI_BOOLEAN_TRUE is this STA is to be |
| 76 | * authenticated based on a pre-shared key as opposed to EAP. |
| 77 | * |
| 78 | * @return ANI_OK if the operation succeeds |
| 79 | */ |
| 80 | int |
| 81 | authRsnFsmCreate(tBtampContext *ctx); |
| 82 | |
| 83 | |
| 84 | |
| 85 | int |
| 86 | authRsnFsmSetPmk(tStaContext *ctx, v_U8_t *pmk); |
| 87 | |
| 88 | #endif //__AAG_AUTH_RSN_FSM_H |