summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandeep Puligilla <spuligil@codeaurora.org>2017-02-13 11:49:04 -0800
committerqcabuildsw <qcabuildsw@localhost>2017-02-15 04:44:10 -0800
commita0ad11d7ac58e68a478e98f33ed0e1cde68f1eb0 (patch)
treea3aeba5d80bd7014011be254c68fbba834520cb7
parent269fd9133b8abe34f2f3cc86b136d66e210fd890 (diff)
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
-rwxr-xr-xfw/wmi.h3
-rwxr-xr-xfw/wmi_unified.h18
-rwxr-xr-xfw/wmi_version.h2
3 files changed, 20 insertions, 3 deletions
diff --git a/fw/wmi.h b/fw/wmi.h
index b4da94c4ef83..4b92765c3e7f 100755
--- 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 100755
--- 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 100755
--- 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