summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPradeep Reddy Potteti <ppotte@codeaurora.org>2017-02-16 14:05:20 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-03-20 07:27:39 -0700
commit6a342dbec7e187ccf51990782a0da652b637b6cd (patch)
treef8959f211a068c4552031c3b3f01b190f6972d4e
parentc38d16418fad31615e036d240836e8ba5f134f71 (diff)
qcacld-2.0: CL 2857005 - update fw common interface files
WMI interface change to support PMKID caching in roaming offload Change-Id: Ia1d0de1071b28ce36cd8d94f856f914795c02c3c CRs-fixed: 865207
-rw-r--r--CORE/SERVICES/COMMON/wmi.h3
-rw-r--r--CORE/SERVICES/COMMON/wmi_unified.h17
-rw-r--r--CORE/SERVICES/COMMON/wmi_version.h2
3 files changed, 19 insertions, 3 deletions
diff --git a/CORE/SERVICES/COMMON/wmi.h b/CORE/SERVICES/COMMON/wmi.h
index 7d31ff203b2c..13c2d8f5fd50 100644
--- a/CORE/SERVICES/COMMON/wmi.h
+++ b/CORE/SERVICES/COMMON/wmi.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004-2010 2013, 2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2004-2010 2013, 2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -154,6 +154,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;
diff --git a/CORE/SERVICES/COMMON/wmi_unified.h b/CORE/SERVICES/COMMON/wmi_unified.h
index 60631aca51b1..f97308e82154 100644
--- a/CORE/SERVICES/COMMON/wmi_unified.h
+++ b/CORE/SERVICES/COMMON/wmi_unified.h
@@ -8599,7 +8599,9 @@ 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 */
+/* pmk caching is disabled */
+#define WMI_ROAM_OFFLOAD_FLAG_PMK_CACHE_DISABLED 1
+/* 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); \
@@ -8612,6 +8614,19 @@ 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/CORE/SERVICES/COMMON/wmi_version.h b/CORE/SERVICES/COMMON/wmi_version.h
index 09c66eb8481d..ed383b64d0c4 100644
--- a/CORE/SERVICES/COMMON/wmi_version.h
+++ b/CORE/SERVICES/COMMON/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