blob: 6a71a875f74c9fafdaf736aa6c792013766afb91 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Jeff Johnson32d95a32012-09-10 13:15:23 -07002 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Jeff Johnson295189b2012-06-20 16:38:30 -07003 *
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.
20 */
21
22#if defined WLAN_FEATURE_VOWIFI_11R
23/**=========================================================================
24
25 Macros and Function prototypes FT and 802.11R purposes
26
27 Copyright 2010 (c) Qualcomm, Incorporated. All Rights Reserved.
28
29 Qualcomm Confidential and Proprietary.
30
31 ========================================================================*/
32
33#ifndef __LIMFTDEFS_H__
34#define __LIMFTDEFS_H__
35
36
37#include <palTypes.h>
38
39/*--------------------------------------------------------------------------
40 Preprocessor definitions and constants
41 ------------------------------------------------------------------------*/
42#define SIR_MDIE_SIZE 3 // MD ID(2 bytes), Capability(1 byte)
43#define MAX_TIDS 8
44#define MAX_FTIE_SIZE 256 // Max size limited to 256, on acct. of IW custom events
45
46
47/*--------------------------------------------------------------------------
48 Type declarations
49 ------------------------------------------------------------------------*/
50/*--------------------------------------------------------------------------
51 FT Pre Auth Req SME<->PE
52 ------------------------------------------------------------------------*/
53typedef struct sSirFTPreAuthReq
54{
55 tANI_U16 messageType; // eWNI_SME_FT_PRE_AUTH_REQ
56 tANI_U16 length;
57 tANI_U8 preAuthchannelNum;
58 tSirMacAddr currbssId; // BSSID currently associated to suspend the link
59 tSirMacAddr preAuthbssId; // BSSID to preauth to
60 tANI_U16 ft_ies_length;
61 tANI_U8 ft_ies[MAX_FTIE_SIZE];
62 tpSirBssDescription pbssDescription;
63} tSirFTPreAuthReq, *tpSirFTPreAuthReq;
64
65/*-------------------------------------------------------------------------
66 FT Pre Auth Rsp PE<->SME
67 ------------------------------------------------------------------------*/
68typedef struct sSirFTPreAuthRsp
69{
70 tANI_U16 messageType; // eWNI_SME_FT_PRE_AUTH_RSP
71 tANI_U16 length;
72 tANI_U8 smeSessionId;
73 tSirMacAddr preAuthbssId; // BSSID to preauth to
74 tANI_U8 status;
75 tANI_U16 ft_ies_length;
76 tANI_U8 ft_ies[MAX_FTIE_SIZE];
77 tANI_U16 ric_ies_length;
78 tANI_U8 ric_ies[MAX_FTIE_SIZE];
79} tSirFTPreAuthRsp, *tpSirFTPreAuthRsp;
80
81/*--------------------------------------------------------------------------
82 FT Pre Auth Req SME<->PE
83 ------------------------------------------------------------------------*/
84typedef struct sSirFTUpdateKeyInfo
85{
86 tANI_U16 messageType;
87 tANI_U16 length;
88 tSirKeyMaterial keyMaterial;
89} tSirFTUpdateKeyInfo, *tpSirFTUpdateKeyInfo;
90
91/*-------------------------------------------------------------------------
92 Global FT Information
93 ------------------------------------------------------------------------*/
94typedef struct sFTPEContext
95{
96 tpSirFTPreAuthReq pFTPreAuthReq; // Saved FT Pre Auth Req
97 void *psavedsessionEntry;
98 tANI_U8 ftPreAuthStatus;
99 tANI_U16 saved_auth_rsp_length;
100 tANI_U8 saved_auth_rsp[MAX_FTIE_SIZE];
101
102 // Items created for the new FT, session
103 void *pftSessionEntry; // Saved session created for pre-auth
104 void *pAddBssReq; // Save add bss req.
105 void *pAddStaReq; // Save add sta req.
106
107} tftPEContext, *tpftPEContext;
108
109
110#endif /* __LIMFTDEFS_H__ */
111
112#endif /* WLAN_FEATURE_VOWIFI_11R */