blob: 9e856594c59c761bb866875291100da1392695db [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Padma, Santhosh Kumar67f479b2016-12-28 15:43:42 +05302 * Copyright (c) 2012-2013, 2017 The Linux Foundation. All rights reserved.
Kiet Lam842dad02014-02-18 18:44:02 -08003 *
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
Sandeep Puligillaf56754b2014-06-18 10:38:04 +053047#define MAX_FTIE_SIZE 384 // Max size limited to 384, on acct. of IW custom events
Jeff Johnson295189b2012-06-20 16:38:30 -070048
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;
Padma, Santhosh Kumar04822572017-05-12 19:15:22 +053060 tANI_U32 dot11mode;
Madan Mohan Koyyalamudi23001722012-10-31 16:48:56 -070061 tANI_BOOLEAN bPreAuthRspProcessed; /* Track if response is processed for this request
62 We expect only one response per request. */
Jeff Johnson295189b2012-06-20 16:38:30 -070063 tANI_U8 preAuthchannelNum;
64 tSirMacAddr currbssId; // BSSID currently associated to suspend the link
65 tSirMacAddr preAuthbssId; // BSSID to preauth to
66 tANI_U16 ft_ies_length;
67 tANI_U8 ft_ies[MAX_FTIE_SIZE];
68 tpSirBssDescription pbssDescription;
69} tSirFTPreAuthReq, *tpSirFTPreAuthReq;
70
71/*-------------------------------------------------------------------------
Gopichand Nakkala3d295922013-05-07 16:19:14 +053072 FT Pre Auth Rsp PE<->SME
Jeff Johnson295189b2012-06-20 16:38:30 -070073 ------------------------------------------------------------------------*/
74typedef struct sSirFTPreAuthRsp
75{
Srikant Kuppaa3ed0a32013-02-20 07:24:43 -080076 tANI_U16 messageType; // eWNI_SME_FT_PRE_AUTH_RSP
77 tANI_U16 length;
78 tANI_U8 smeSessionId;
79 tSirMacAddr preAuthbssId; // BSSID to preauth to
80 tSirRetStatus status;
81 tANI_U16 ft_ies_length;
82 tANI_U8 ft_ies[MAX_FTIE_SIZE];
83 tANI_U16 ric_ies_length;
84 tANI_U8 ric_ies[MAX_FTIE_SIZE];
Padma, Santhosh Kumar9f729552017-01-09 14:06:30 +053085#ifdef WLAN_FEATURE_LFR_MBB
86 enum sir_roam_cleanup_type reason;
Padma, Santhosh Kumar7cdb5242017-01-11 19:19:08 +053087 tCsrRoamInfo *roam_info;
Padma, Santhosh Kumar9f729552017-01-09 14:06:30 +053088#endif
Jeff Johnson295189b2012-06-20 16:38:30 -070089} tSirFTPreAuthRsp, *tpSirFTPreAuthRsp;
90
Gopichand Nakkala3d295922013-05-07 16:19:14 +053091/*--------------------------------------------------------------------------
92 FT Pre Auth Rsp Key SME<->PE
Jeff Johnson295189b2012-06-20 16:38:30 -070093 ------------------------------------------------------------------------*/
94typedef struct sSirFTUpdateKeyInfo
95{
Gopichand Nakkala3d295922013-05-07 16:19:14 +053096 tANI_U16 messageType;
97 tANI_U16 length;
98 tSirMacAddr bssId;
99 tSirKeyMaterial keyMaterial;
Jeff Johnson295189b2012-06-20 16:38:30 -0700100} tSirFTUpdateKeyInfo, *tpSirFTUpdateKeyInfo;
101
Gopichand Nakkala3d295922013-05-07 16:19:14 +0530102/*--------------------------------------------------------------------------
103 FT Pre Auth Rsp Key SME<->PE
104 ------------------------------------------------------------------------*/
105typedef struct sSirFTPreAuthKeyInfo
106{
107 tANI_U8 extSetStaKeyParamValid; //Ext Bss Config Msg if set
108 tSetStaKeyParams extSetStaKeyParam; //SetStaKeyParams for ext bss msg
109} tSirFTPreAuthKeyInfo, *tpSirFTPreAuthKeyInfo;
110
Jeff Johnson295189b2012-06-20 16:38:30 -0700111/*-------------------------------------------------------------------------
Gopichand Nakkala3d295922013-05-07 16:19:14 +0530112 Global FT Information
Jeff Johnson295189b2012-06-20 16:38:30 -0700113 ------------------------------------------------------------------------*/
114typedef struct sFTPEContext
115{
116 tpSirFTPreAuthReq pFTPreAuthReq; // Saved FT Pre Auth Req
Gopichand Nakkala3d295922013-05-07 16:19:14 +0530117 void *psavedsessionEntry;
Srikant Kuppaa3ed0a32013-02-20 07:24:43 -0800118 tSirRetStatus ftPreAuthStatus;
Jeff Johnson295189b2012-06-20 16:38:30 -0700119 tANI_U16 saved_auth_rsp_length;
120 tANI_U8 saved_auth_rsp[MAX_FTIE_SIZE];
Gopichand Nakkala3d295922013-05-07 16:19:14 +0530121 tSirFTPreAuthKeyInfo *pPreAuthKeyInfo;
Jeff Johnson295189b2012-06-20 16:38:30 -0700122 // Items created for the new FT, session
Gopichand Nakkala3d295922013-05-07 16:19:14 +0530123 void *pftSessionEntry; // Saved session created for pre-auth
Jeff Johnson295189b2012-06-20 16:38:30 -0700124 void *pAddBssReq; // Save add bss req.
125 void *pAddStaReq; // Save add sta req.
126
127} tftPEContext, *tpftPEContext;
128
129
130#endif /* __LIMFTDEFS_H__ */
131
132#endif /* WLAN_FEATURE_VOWIFI_11R */