From 6f322f8d9d3117e51cd17ecb4bdf7d1e3c2e9fce Mon Sep 17 00:00:00 2001 From: Sandeep Puligilla Date: Mon, 13 Feb 2017 11:49:04 -0800 Subject: [PATCH] fw-api: CL 2857005 - update fw common interface files WMI interface change to support PMKID caching in roaming offload Change-Id: I4b316840a753c497495b8a74397fcc4015c467a6 CRs-Fixed: 1107600 --- fw/wmi.h | 3 ++- fw/wmi_unified.h | 18 +++++++++++++++++- fw/wmi_version.h | 2 +- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/fw/wmi.h b/fw/wmi.h index b4da94c4ef83..4b92765c3e7f 100644 --- a/fw/wmi.h +++ b/fw/wmi.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2010-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -144,6 +144,7 @@ typedef enum { PAIRWISE_USAGE = 0x00, GROUP_USAGE = 0x01, TX_USAGE = 0x02, /* default Tx Key - Static WEP only */ + PMK_USAGE = 0x04, /* PMK cache */ } KEY_USAGE; /* * List of Events (target to host) diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h index 2622fc6c4446..96be8cadcf11 100644 --- a/fw/wmi_unified.h +++ b/fw/wmi_unified.h @@ -8480,7 +8480,8 @@ typedef struct { /* flags for 11i offload */ #define WMI_ROAM_OFFLOAD_FLAG_OKC_ENABLED 0 /* okc is enabled */ -/* from bit 1 to bit 31 are reserved */ +#define WMI_ROAM_OFFLOAD_FLAG_PMK_CACHE_DISABLED 1 /* pmk caching is disabled */ +/* from bit 2 to bit 31 are reserved */ #define WMI_SET_ROAM_OFFLOAD_OKC_ENABLED(flag) do { \ (flag) |= (1 << WMI_ROAM_OFFLOAD_FLAG_OKC_ENABLED); \ @@ -8493,6 +8494,21 @@ typedef struct { #define WMI_GET_ROAM_OFFLOAD_OKC_ENABLED(flag) \ ((flag) & (1 << WMI_ROAM_OFFLOAD_FLAG_OKC_ENABLED)) + +#define WMI_SET_ROAM_OFFLOAD_PMK_CACHE_ENABLED(flag) \ + do { \ + (flag) &= ~(1 << WMI_ROAM_OFFLOAD_FLAG_PMK_CACHE_DISABLED); \ + } while (0) + +#define WMI_SET_ROAM_OFFLOAD_PMK_CACHE_DISABLED(flag) \ + do { \ + (flag) |= (1 << WMI_ROAM_OFFLOAD_FLAG_PMK_CACHE_DISABLED); \ + } while (0) + +#define WMI_GET_ROAM_OFFLOAD_PMK_CACHE_DISABLED(flag) \ + ((flag) & (1 << WMI_ROAM_OFFLOAD_FLAG_PMK_CACHE_DISABLED)) + + /* This TLV will be filled only in case of wpa-psk/wpa2-psk */ typedef struct { A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_11i_offload_fixed_param */ diff --git a/fw/wmi_version.h b/fw/wmi_version.h index 4c5c04e8654d..307efeb7a111 100644 --- a/fw/wmi_version.h +++ b/fw/wmi_version.h @@ -36,7 +36,7 @@ #define __WMI_VER_MINOR_ 0 /** WMI revision number has to be incremented when there is a * change that may or may not break compatibility. */ -#define __WMI_REVISION_ 345 +#define __WMI_REVISION_ 346 /** The Version Namespace should not be normally changed. Only * host and firmware of the same WMI namespace will work