blob: 064ab130d3e938f65ff5f4b9ca27863202e1ceeb [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
Jeff Johnson295189b2012-06-20 16:38:30 -070028#if defined WLAN_FEATURE_VOWIFI_11R
29/**=========================================================================
30
Kiet Lam842dad02014-02-18 18:44:02 -080031 Macros and Function prototypes FT and 802.11R purposes
Srikant Kuppaa3ed0a32013-02-20 07:24:43 -080032
Jeff Johnson295189b2012-06-20 16:38:30 -070033 ========================================================================*/
34
35#ifndef __LIMFTDEFS_H__
36#define __LIMFTDEFS_H__
37
38
39#include <palTypes.h>
Gopichand Nakkala3d295922013-05-07 16:19:14 +053040#include "halMsgApi.h"
Jeff Johnson295189b2012-06-20 16:38:30 -070041
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 Nakkala3d295922013-05-07 16:19:14 +053053/*--------------------------------------------------------------------------
54 FT Pre Auth Req SME<->PE
Jeff Johnson295189b2012-06-20 16:38:30 -070055 ------------------------------------------------------------------------*/
56typedef struct sSirFTPreAuthReq
57{
58 tANI_U16 messageType; // eWNI_SME_FT_PRE_AUTH_REQ
59 tANI_U16 length;
Madan Mohan Koyyalamudi23001722012-10-31 16:48:56 -070060 tANI_BOOLEAN bPreAuthRspProcessed; /* Track if response is processed for this request
61 We expect only one response per request. */
Jeff Johnson295189b2012-06-20 16:38:30 -070062 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 Nakkala3d295922013-05-07 16:19:14 +053071 FT Pre Auth Rsp PE<->SME
Jeff Johnson295189b2012-06-20 16:38:30 -070072 ------------------------------------------------------------------------*/
73typedef struct sSirFTPreAuthRsp
74{
Srikant Kuppaa3ed0a32013-02-20 07:24:43 -080075 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 Johnson295189b2012-06-20 16:38:30 -070084} tSirFTPreAuthRsp, *tpSirFTPreAuthRsp;
85
Gopichand Nakkala3d295922013-05-07 16:19:14 +053086/*--------------------------------------------------------------------------
87 FT Pre Auth Rsp Key SME<->PE
Jeff Johnson295189b2012-06-20 16:38:30 -070088 ------------------------------------------------------------------------*/
89typedef struct sSirFTUpdateKeyInfo
90{
Gopichand Nakkala3d295922013-05-07 16:19:14 +053091 tANI_U16 messageType;
92 tANI_U16 length;
93 tSirMacAddr bssId;
94 tSirKeyMaterial keyMaterial;
Jeff Johnson295189b2012-06-20 16:38:30 -070095} tSirFTUpdateKeyInfo, *tpSirFTUpdateKeyInfo;
96
Gopichand Nakkala3d295922013-05-07 16:19:14 +053097/*--------------------------------------------------------------------------
98 FT Pre Auth Rsp Key SME<->PE
99 ------------------------------------------------------------------------*/
100typedef 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 Johnson295189b2012-06-20 16:38:30 -0700106/*-------------------------------------------------------------------------
Gopichand Nakkala3d295922013-05-07 16:19:14 +0530107 Global FT Information
Jeff Johnson295189b2012-06-20 16:38:30 -0700108 ------------------------------------------------------------------------*/
109typedef struct sFTPEContext
110{
111 tpSirFTPreAuthReq pFTPreAuthReq; // Saved FT Pre Auth Req
Gopichand Nakkala3d295922013-05-07 16:19:14 +0530112 void *psavedsessionEntry;
Srikant Kuppaa3ed0a32013-02-20 07:24:43 -0800113 tSirRetStatus ftPreAuthStatus;
Jeff Johnson295189b2012-06-20 16:38:30 -0700114 tANI_U16 saved_auth_rsp_length;
115 tANI_U8 saved_auth_rsp[MAX_FTIE_SIZE];
Gopichand Nakkala3d295922013-05-07 16:19:14 +0530116 tSirFTPreAuthKeyInfo *pPreAuthKeyInfo;
Jeff Johnson295189b2012-06-20 16:38:30 -0700117 // Items created for the new FT, session
Gopichand Nakkala3d295922013-05-07 16:19:14 +0530118 void *pftSessionEntry; // Saved session created for pre-auth
Jeff Johnson295189b2012-06-20 16:38:30 -0700119 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 */