Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Kiet Lam | 842dad0 | 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 | 92f07d8 | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 20 | */ |
Kiet Lam | 842dad0 | 2014-02-18 18:44:02 -0800 | [diff] [blame^] | 21 | |
| 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 Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 28 | #if defined WLAN_FEATURE_VOWIFI_11R |
| 29 | /**========================================================================= |
| 30 | |
Kiet Lam | 842dad0 | 2014-02-18 18:44:02 -0800 | [diff] [blame^] | 31 | Macros and Function prototypes FT and 802.11R purposes |
Srikant Kuppa | a3ed0a3 | 2013-02-20 07:24:43 -0800 | [diff] [blame] | 32 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 33 | ========================================================================*/ |
| 34 | |
| 35 | #ifndef __LIMFTDEFS_H__ |
| 36 | #define __LIMFTDEFS_H__ |
| 37 | |
| 38 | |
| 39 | #include <palTypes.h> |
Gopichand Nakkala | 3d29592 | 2013-05-07 16:19:14 +0530 | [diff] [blame] | 40 | #include "halMsgApi.h" |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 41 | |
| 42 | /*-------------------------------------------------------------------------- |
| 43 | Preprocessor definitions and constants |
| 44 | ------------------------------------------------------------------------*/ |
| 45 | #define SIR_MDIE_SIZE 3 // MD ID(2 bytes), Capability(1 byte) |
| 46 | #define MAX_TIDS 8 |
| 47 | #define MAX_FTIE_SIZE 256 // Max size limited to 256, on acct. of IW custom events |
| 48 | |
| 49 | |
| 50 | /*-------------------------------------------------------------------------- |
| 51 | Type declarations |
| 52 | ------------------------------------------------------------------------*/ |
Gopichand Nakkala | 3d29592 | 2013-05-07 16:19:14 +0530 | [diff] [blame] | 53 | /*-------------------------------------------------------------------------- |
| 54 | FT Pre Auth Req SME<->PE |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 55 | ------------------------------------------------------------------------*/ |
| 56 | typedef struct sSirFTPreAuthReq |
| 57 | { |
| 58 | tANI_U16 messageType; // eWNI_SME_FT_PRE_AUTH_REQ |
| 59 | tANI_U16 length; |
Madan Mohan Koyyalamudi | 2300172 | 2012-10-31 16:48:56 -0700 | [diff] [blame] | 60 | tANI_BOOLEAN bPreAuthRspProcessed; /* Track if response is processed for this request |
| 61 | We expect only one response per request. */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 62 | tANI_U8 preAuthchannelNum; |
| 63 | tSirMacAddr currbssId; // BSSID currently associated to suspend the link |
| 64 | tSirMacAddr preAuthbssId; // BSSID to preauth to |
| 65 | tANI_U16 ft_ies_length; |
| 66 | tANI_U8 ft_ies[MAX_FTIE_SIZE]; |
| 67 | tpSirBssDescription pbssDescription; |
| 68 | } tSirFTPreAuthReq, *tpSirFTPreAuthReq; |
| 69 | |
| 70 | /*------------------------------------------------------------------------- |
Gopichand Nakkala | 3d29592 | 2013-05-07 16:19:14 +0530 | [diff] [blame] | 71 | FT Pre Auth Rsp PE<->SME |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 72 | ------------------------------------------------------------------------*/ |
| 73 | typedef struct sSirFTPreAuthRsp |
| 74 | { |
Srikant Kuppa | a3ed0a3 | 2013-02-20 07:24:43 -0800 | [diff] [blame] | 75 | tANI_U16 messageType; // eWNI_SME_FT_PRE_AUTH_RSP |
| 76 | tANI_U16 length; |
| 77 | tANI_U8 smeSessionId; |
| 78 | tSirMacAddr preAuthbssId; // BSSID to preauth to |
| 79 | tSirRetStatus status; |
| 80 | tANI_U16 ft_ies_length; |
| 81 | tANI_U8 ft_ies[MAX_FTIE_SIZE]; |
| 82 | tANI_U16 ric_ies_length; |
| 83 | tANI_U8 ric_ies[MAX_FTIE_SIZE]; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 84 | } tSirFTPreAuthRsp, *tpSirFTPreAuthRsp; |
| 85 | |
Gopichand Nakkala | 3d29592 | 2013-05-07 16:19:14 +0530 | [diff] [blame] | 86 | /*-------------------------------------------------------------------------- |
| 87 | FT Pre Auth Rsp Key SME<->PE |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 88 | ------------------------------------------------------------------------*/ |
| 89 | typedef struct sSirFTUpdateKeyInfo |
| 90 | { |
Gopichand Nakkala | 3d29592 | 2013-05-07 16:19:14 +0530 | [diff] [blame] | 91 | tANI_U16 messageType; |
| 92 | tANI_U16 length; |
| 93 | tSirMacAddr bssId; |
| 94 | tSirKeyMaterial keyMaterial; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 95 | } tSirFTUpdateKeyInfo, *tpSirFTUpdateKeyInfo; |
| 96 | |
Gopichand Nakkala | 3d29592 | 2013-05-07 16:19:14 +0530 | [diff] [blame] | 97 | /*-------------------------------------------------------------------------- |
| 98 | FT Pre Auth Rsp Key SME<->PE |
| 99 | ------------------------------------------------------------------------*/ |
| 100 | typedef struct sSirFTPreAuthKeyInfo |
| 101 | { |
| 102 | tANI_U8 extSetStaKeyParamValid; //Ext Bss Config Msg if set |
| 103 | tSetStaKeyParams extSetStaKeyParam; //SetStaKeyParams for ext bss msg |
| 104 | } tSirFTPreAuthKeyInfo, *tpSirFTPreAuthKeyInfo; |
| 105 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 106 | /*------------------------------------------------------------------------- |
Gopichand Nakkala | 3d29592 | 2013-05-07 16:19:14 +0530 | [diff] [blame] | 107 | Global FT Information |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 108 | ------------------------------------------------------------------------*/ |
| 109 | typedef struct sFTPEContext |
| 110 | { |
| 111 | tpSirFTPreAuthReq pFTPreAuthReq; // Saved FT Pre Auth Req |
Gopichand Nakkala | 3d29592 | 2013-05-07 16:19:14 +0530 | [diff] [blame] | 112 | void *psavedsessionEntry; |
Srikant Kuppa | a3ed0a3 | 2013-02-20 07:24:43 -0800 | [diff] [blame] | 113 | tSirRetStatus ftPreAuthStatus; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 114 | tANI_U16 saved_auth_rsp_length; |
| 115 | tANI_U8 saved_auth_rsp[MAX_FTIE_SIZE]; |
Gopichand Nakkala | 3d29592 | 2013-05-07 16:19:14 +0530 | [diff] [blame] | 116 | tSirFTPreAuthKeyInfo *pPreAuthKeyInfo; |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 117 | // Items created for the new FT, session |
Gopichand Nakkala | 3d29592 | 2013-05-07 16:19:14 +0530 | [diff] [blame] | 118 | void *pftSessionEntry; // Saved session created for pre-auth |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 119 | void *pAddBssReq; // Save add bss req. |
| 120 | void *pAddStaReq; // Save add sta req. |
| 121 | |
| 122 | } tftPEContext, *tpftPEContext; |
| 123 | |
| 124 | |
| 125 | #endif /* __LIMFTDEFS_H__ */ |
| 126 | |
| 127 | #endif /* WLAN_FEATURE_VOWIFI_11R */ |