summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandeep Puligilla <spuligil@qca.qualcomm.com>2015-08-17 12:50:44 -0700
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2015-08-19 14:03:56 +0530
commitcf1fd94d54489f8664c86113331176fd0104fd54 (patch)
tree3e63a8583909b8c9ad8caf244212c8e01a1872ff
parentf08cb5a18568d0c1807e58a6312dfed38e9def8f (diff)
qcacld-2.0: CL 1363882 - update fw common interface files
wmi command to configure sap blacklist parameters Change-Id: I7a4fcbdcfcbe8bdc2f939b7ac6a6053f0ce88722 CRs-Fixed: 865207
-rw-r--r--CORE/SERVICES/COMMON/wmi_tlv_defs.h12
-rw-r--r--CORE/SERVICES/COMMON/wmi_unified.h12
-rw-r--r--CORE/SERVICES/COMMON/wmi_version.h2
-rw-r--r--CORE/SERVICES/WMI/wmi_unified.c1
4 files changed, 22 insertions, 5 deletions
diff --git a/CORE/SERVICES/COMMON/wmi_tlv_defs.h b/CORE/SERVICES/COMMON/wmi_tlv_defs.h
index 0df020f12f7a..a01699adfe8a 100644
--- a/CORE/SERVICES/COMMON/wmi_tlv_defs.h
+++ b/CORE/SERVICES/COMMON/wmi_tlv_defs.h
@@ -582,6 +582,7 @@ typedef enum {
WMITLV_TAG_STRUC_wmi_diag_event_log_supported_event_fixed_params,
WMITLV_TAG_STRUC_wmi_packet_filter_config_fixed_param,
WMITLV_TAG_STRUC_wmi_packet_filter_enable_fixed_param,
+ WMITLV_TAG_STRUC_wmi_sap_set_blacklist_param_cmd_fixed_param,
} WMITLV_TAG_ID;
/*
@@ -807,7 +808,8 @@ typedef enum {
OP(WMI_WOW_ENABLE_ICMPV6_NA_FLT_CMDID) \
OP(WMI_DIAG_EVENT_LOG_CONFIG_CMDID) \
OP(WMI_PACKET_FILTER_CONFIG_CMDID) \
- OP(WMI_PACKET_FILTER_ENABLE_CMDID)
+ OP(WMI_PACKET_FILTER_ENABLE_CMDID) \
+ OP(WMI_SAP_SET_BLACKLIST_PARAM_CMDID)
/*
* IMPORTANT: Please add _ALL_ WMI Events Here.
* Otherwise, these WMI TLV Functions will be process them.
@@ -2171,6 +2173,11 @@ WMITLV_CREATE_PARAM_STRUC(WMI_ROAM_INVOKE_CMDID);
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_BYTE, A_UINT8, psk, WMITLV_SIZE_VAR)
WMITLV_CREATE_PARAM_STRUC(WMI_SAP_OFL_ENABLE_CMDID);
+/* SAP set blacklist param cmd */
+#define WMITLV_TABLE_WMI_SAP_SET_BLACKLIST_PARAM_CMDID(id,op,buf,len) \
+ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_sap_set_blacklist_param_cmd_fixed_param, wmi_sap_set_blacklist_param_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
+WMITLV_CREATE_PARAM_STRUC(WMI_SAP_SET_BLACKLIST_PARAM_CMDID);
+
/* APFIND Request */
#define WMITLV_TABLE_WMI_APFIND_CMDID(id,op,buf,len) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_apfind_cmd_param, wmi_apfind_cmd_param, fixed_param, WMITLV_SIZE_FIX) \
@@ -2594,7 +2601,6 @@ WMITLV_CREATE_PARAM_STRUC(WMI_UPDATE_FW_MEM_DUMP_EVENTID);
#define WMITLV_TABLE_WMI_DIAG_EVENT_LOG_SUPPORTED_EVENTID(id,op,buf,len) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_diag_event_log_supported_event_fixed_params, wmi_diag_event_log_supported_event_fixed_params, fixed_param, WMITLV_SIZE_FIX) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, diag_events_logs_list, WMITLV_SIZE_VAR)
-
WMITLV_CREATE_PARAM_STRUC(WMI_DIAG_EVENT_LOG_SUPPORTED_EVENTID);
/* Update iface link stats Event */
@@ -2602,7 +2608,6 @@ WMITLV_CREATE_PARAM_STRUC(WMI_DIAG_EVENT_LOG_SUPPORTED_EVENTID);
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_iface_link_stats_event_fixed_param, wmi_iface_link_stats_event_fixed_param, fixed_param, WMITLV_SIZE_FIX) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_iface_link_stats, iface_link_stats, WMITLV_SIZE_VAR) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_wmm_ac_stats, ac, WMITLV_SIZE_VAR)
-
WMITLV_CREATE_PARAM_STRUC(WMI_IFACE_LINK_STATS_EVENTID);
/* Update Peer link stats Event */
@@ -2610,7 +2615,6 @@ WMITLV_CREATE_PARAM_STRUC(WMI_IFACE_LINK_STATS_EVENTID);
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_peer_stats_event_fixed_param, wmi_peer_stats_event_fixed_param, fixed_param, WMITLV_SIZE_FIX) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_peer_link_stats, peer_stats, WMITLV_SIZE_VAR) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_rate_stats, peer_rate_stats, WMITLV_SIZE_VAR)
-
WMITLV_CREATE_PARAM_STRUC(WMI_PEER_LINK_STATS_EVENTID);
/* Update radio stats Event */
diff --git a/CORE/SERVICES/COMMON/wmi_unified.h b/CORE/SERVICES/COMMON/wmi_unified.h
index 4060ac2d3998..5e4ee4e092c9 100644
--- a/CORE/SERVICES/COMMON/wmi_unified.h
+++ b/CORE/SERVICES/COMMON/wmi_unified.h
@@ -789,6 +789,7 @@ typedef enum {
/* enable/disable AP Authentication offload */
WMI_SAP_OFL_ENABLE_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_SAP_OFL),
+ WMI_SAP_SET_BLACKLIST_PARAM_CMDID,
/** Out-of-context-of-BSS (OCB) commands */
WMI_OCB_SET_CONFIG_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_OCB),
@@ -10209,6 +10210,17 @@ typedef struct {
} wmi_sap_ofl_del_sta_event_fixed_param;
typedef struct {
+ A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_sap_set_blacklist_param_cmd_fixed_param */
+ A_UINT32 vdev_id;
+ /* Number of client failure connection attempt */
+ A_UINT32 num_retry;
+ /* Time in milliseconds to record the client's failure connection attempts */
+ A_UINT32 retry_allow_time_ms;
+ /* Time in milliseconds to drop the connection request if client is blacklisted */
+ A_UINT32 blackout_time_ms;
+} wmi_sap_set_blacklist_param_cmd_fixed_param;
+
+typedef struct {
A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_apfind_cmd_param */
A_UINT32 data_len; /** length in byte of data[]. */
/** This structure is used to send REQ binary blobs
diff --git a/CORE/SERVICES/COMMON/wmi_version.h b/CORE/SERVICES/COMMON/wmi_version.h
index da70c9ba49ff..d462817a0353 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_ 141
+#define __WMI_REVISION_ 142
/** The Version Namespace should not be normally changed. Only
* host and firmware of the same WMI namespace will work
diff --git a/CORE/SERVICES/WMI/wmi_unified.c b/CORE/SERVICES/WMI/wmi_unified.c
index dcdb910c10dd..d880ddaef254 100644
--- a/CORE/SERVICES/WMI/wmi_unified.c
+++ b/CORE/SERVICES/WMI/wmi_unified.c
@@ -640,6 +640,7 @@ static u_int8_t* get_wmi_cmd_string(WMI_CMD_ID wmi_command)
CASE_RETURN_STRING(WMI_DIAG_EVENT_LOG_CONFIG_CMDID);
CASE_RETURN_STRING(WMI_PACKET_FILTER_CONFIG_CMDID);
CASE_RETURN_STRING(WMI_PACKET_FILTER_ENABLE_CMDID);
+ CASE_RETURN_STRING(WMI_SAP_SET_BLACKLIST_PARAM_CMDID);
}
return "Invalid WMI cmd";
}