summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorService qcabuildsw <qcabuildsw@localhost>2017-02-24 16:24:11 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-02-24 16:24:11 -0800
commit056b0f4cbddefaf665902c4c3a1a48ce4e189f00 (patch)
treedc88e33cf3c136c0fa67644b407b2200d3544a51
parentafa3b4428aed2b156c3d65b05bf464a7d57e5faf (diff)
parent58086ddd3c3cc39a9ddce871db362c3964bf4660 (diff)
Merge "fw-api: CL 2860646 - update fw common interface files" into wlan-api.lnx.1.1-dev
-rwxr-xr-xfw/wmi_services.h1
-rwxr-xr-xfw/wmi_tlv_defs.h6
-rwxr-xr-xfw/wmi_unified.h39
-rwxr-xr-xfw/wmi_version.h2
4 files changed, 47 insertions, 1 deletions
diff --git a/fw/wmi_services.h b/fw/wmi_services.h
index 4f709b0c0f78..f97880b69966 100755
--- a/fw/wmi_services.h
+++ b/fw/wmi_services.h
@@ -187,6 +187,7 @@ typedef enum {
WMI_SERVICE_11D_OFFLOAD=118, /* support 11D scan offload in FW */
WMI_SERVICE_HW_DATA_FILTERING=119,
WMI_SERVICE_MULTIPLE_VDEV_RESTART=120, /* Support for single command for multiple vdev restart */
+ WMI_SERVICE_PKT_ROUTING=121, /* Support for routing specific data packets to selected destination rings */
/******* ADD NEW SERVICES HERE UNTIL ALL VALUES UP TO 128 ARE USED *******/
diff --git a/fw/wmi_tlv_defs.h b/fw/wmi_tlv_defs.h
index 39f6d9a8ecae..4a23e8509e39 100755
--- a/fw/wmi_tlv_defs.h
+++ b/fw/wmi_tlv_defs.h
@@ -798,6 +798,7 @@ typedef enum {
WMITLV_TAG_STRUC_wmi_chip_power_save_failure_detected_fixed_param,
WMITLV_TAG_STRUC_wmi_pdev_multiple_vdev_restart_request_cmd_fixed_param,
WMITLV_TAG_STRUC_wmi_pdev_csa_switch_count_status_event_fixed_param,
+ WMITLV_TAG_STRUC_wmi_pdev_update_pkt_routing_cmd_fixed_param,
} WMITLV_TAG_ID;
/*
@@ -1120,6 +1121,7 @@ typedef enum {
OP(WMI_HW_DATA_FILTER_CMDID) \
OP(WMI_PDEV_MULTIPLE_VDEV_RESTART_REQUEST_CMDID) \
OP(WMI_LPI_OEM_REQ_CMDID) \
+ OP(WMI_PDEV_UPDATE_PKT_ROUTING_CMDID) \
/* add new CMD_LIST elements above this line */
@@ -3217,6 +3219,10 @@ WMITLV_CREATE_PARAM_STRUC(WMI_HW_DATA_FILTER_CMDID);
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_channel, wmi_channel, chan, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_MULTIPLE_VDEV_RESTART_REQUEST_CMDID);
+#define WMITLV_TABLE_WMI_PDEV_UPDATE_PKT_ROUTING_CMDID(id,op,buf,len) \
+ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_pdev_update_pkt_routing_cmd_fixed_param, wmi_pdev_update_pkt_routing_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
+WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_UPDATE_PKT_ROUTING_CMDID);
+
/************************** TLV definitions of WMI events *******************************/
diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h
index d4df49bb1b2f..0aa7cd4e7edf 100755
--- a/fw/wmi_unified.h
+++ b/fw/wmi_unified.h
@@ -358,6 +358,8 @@ typedef enum {
WMI_PDEV_SET_STATS_THRESHOLD_CMDID,
/** vdev restart request for multiple vdevs */
WMI_PDEV_MULTIPLE_VDEV_RESTART_REQUEST_CMDID,
+ /** Pdev update packet routing command */
+ WMI_PDEV_UPDATE_PKT_ROUTING_CMDID,
/* VDEV (virtual device) specific commands */
/** vdev create */
@@ -17728,6 +17730,7 @@ static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command)
WMI_RETURN_STRING(WMI_HW_DATA_FILTER_CMDID);
WMI_RETURN_STRING(MI_PDEV_MULTIPLE_VDEV_RESTART_REQUEST_CMDID);
WMI_RETURN_STRING(WMI_LPI_OEM_REQ_CMDID);
+ WMI_RETURN_STRING(WMI_PDEV_UPDATE_PKT_ROUTING_CMDID);
}
return "Invalid WMI cmd";
@@ -17970,6 +17973,42 @@ typedef struct {
*/
} wmi_pdev_csa_switch_count_status_event_fixed_param;
+/* Operation types for packet routing command */
+typedef enum {
+ WMI_PDEV_ADD_PKT_ROUTING,
+ WMI_PDEV_DEL_PKT_ROUTING,
+} wmi_pdev_pkt_routing_op_code;
+
+/* Packet routing types based on specific data types */
+typedef enum {
+ WMI_PDEV_ROUTING_TYPE_ARP_IPV4,
+ WMI_PDEV_ROUTING_TYPE_NS_IPV6,
+ WMI_PDEV_ROUTING_TYPE_IGMP_IPV4,
+ WMI_PDEV_ROUTING_TYPE_MLD_IPV6,
+ WMI_PDEV_ROUTING_TYPE_DHCP_IPV4,
+ WMI_PDEV_ROUTING_TYPE_DHCP_IPV6,
+} wmi_pdev_pkt_routing_type;
+
+/* This command shall be sent only when no VDEV is up. If the command is sent after any VDEV is up, target will ignore the command */
+typedef struct {
+ /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_update_pkt_routing_cmd_fixed_param */
+ A_UINT32 tlv_header;
+ /** Identifies pdev on which routing needs to be applied */
+ A_UINT32 pdev_id;
+ /** Indicates the routing operation type: add/delete */
+ A_UINT32 op_code; /* wmi_pdev_pkt_routing_op_code */
+ /** Bitmap of multiple pkt routing types for a given destination ring and meta data */
+ A_UINT32 routing_type_bitmap; /* see wmi_pdev_pkt_routing_type */
+ /** 5 bits [4:0] are used to specify the destination ring where the CCE matched
+ * packet needs to be routed.
+ */
+ A_UINT32 dest_ring;
+ /** 16 bits [15:0] meta data can be passed to CCE. When the superrule matches,
+ * CCE copies this back in RX_MSDU_END_TLV.
+ */
+ A_UINT32 meta_data;
+} wmi_pdev_update_pkt_routing_cmd_fixed_param;
+
/* ADD NEW DEFS HERE */
diff --git a/fw/wmi_version.h b/fw/wmi_version.h
index f5c0943b8d54..eae41eea54e6 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_ 347
+#define __WMI_REVISION_ 348
/** The Version Namespace should not be normally changed. Only
* host and firmware of the same WMI namespace will work