summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsodi T,Venkateswara Reddy <vasodi@codeaurora.org>2017-02-16 12:06:54 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-03-20 07:22:47 -0700
commit1676aa09450ea8d9c563ade33b553ffaa3a4f34d (patch)
tree705fa8d240fe02f5af26732401af34342021d936
parent2a202c384efae7ad18284e23eabf9d558642c81f (diff)
qcacld-2.0: CL 2836872 - update fw common interface files
WMI interface changes for CSA offload to FW for APs Change-Id: I1dfdcb17cbe6606974bd01d2e16fbc02fdfd1b8f CRs-Fixed: 865207
-rw-r--r--CORE/SERVICES/COMMON/wmi_services.h1
-rw-r--r--CORE/SERVICES/COMMON/wmi_tlv_defs.h16
-rw-r--r--CORE/SERVICES/COMMON/wmi_unified.h60
-rw-r--r--CORE/SERVICES/COMMON/wmi_version.h2
-rw-r--r--CORE/SERVICES/WMI/wmi_unified.c1
5 files changed, 79 insertions, 1 deletions
diff --git a/CORE/SERVICES/COMMON/wmi_services.h b/CORE/SERVICES/COMMON/wmi_services.h
index 4eff35007986..315f96003747 100644
--- a/CORE/SERVICES/COMMON/wmi_services.h
+++ b/CORE/SERVICES/COMMON/wmi_services.h
@@ -279,6 +279,7 @@ typedef enum {
WMI_SERVICE_REGULATORY_DB = 117, /* support regulatory database in FW */
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 */
/***** ADD NEW SERVICES HERE UNTIL ALL VALUES UP TO 128 ARE USED *****/
diff --git a/CORE/SERVICES/COMMON/wmi_tlv_defs.h b/CORE/SERVICES/COMMON/wmi_tlv_defs.h
index 148a1a54dda9..5d5ace3cb48d 100644
--- a/CORE/SERVICES/COMMON/wmi_tlv_defs.h
+++ b/CORE/SERVICES/COMMON/wmi_tlv_defs.h
@@ -789,6 +789,8 @@ typedef enum {
WMITLV_TAG_STRUC_wmi_connected_nlo_bss_band_rssi_pref,
WMITLV_TAG_STRUC_wmi_peer_oper_mode_change_event_fixed_param,
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_ID;
/*
@@ -1108,6 +1110,7 @@ typedef enum {
OP(WMI_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_CMDID) \
OP(WMI_BPF_SET_VDEV_ACTIVE_MODE_CMDID) \
OP(WMI_HW_DATA_FILTER_CMDID) \
+ OP(WMI_PDEV_MULTIPLE_VDEV_RESTART_REQUEST_CMDID) \
/* add new CMD_LIST elements above this line */
/*
@@ -1281,6 +1284,7 @@ typedef enum {
OP(WMI_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_STATUS_EVENTID) \
OP(WMI_PEER_OPER_MODE_CHANGE_EVENTID) \
OP(WMI_PDEV_CHIP_POWER_SAVE_FAILURE_DETECTED_EVENTID) \
+ OP(WMI_PDEV_CSA_SWITCH_COUNT_STATUS_EVENTID) \
/* add new EVT_LIST elements above this line */
@@ -3177,6 +3181,13 @@ WMITLV_CREATE_PARAM_STRUC(WMI_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_CMDID);
WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_STRUC_wmi_hw_data_filter_cmd_fixed_param, wmi_hw_data_filter_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_HW_DATA_FILTER_CMDID);
+/* Multiple vdev restart request cmd */
+#define WMITLV_TABLE_WMI_PDEV_MULTIPLE_VDEV_RESTART_REQUEST_CMDID(id,op,buf,len) \
+ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_pdev_multiple_vdev_restart_request_cmd_fixed_param, wmi_pdev_multiple_vdev_restart_request_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX) \
+ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, vdev_ids, WMITLV_SIZE_VAR) \
+ 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);
+
/************************** TLV definitions of WMI events *******************************/
/* Service Ready event */
@@ -4233,6 +4244,11 @@ WMITLV_CREATE_PARAM_STRUC(WMI_PKGID_EVENTID);
WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_STRUC_wmi_vdev_add_mac_addr_to_rx_filter_status_event_fixed_param, wmi_vdev_add_mac_addr_to_rx_filter_status_event_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_STATUS_EVENTID);
+#define WMITLV_TABLE_WMI_PDEV_CSA_SWITCH_COUNT_STATUS_EVENTID(id,op,buf,len) \
+ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_pdev_csa_switch_count_status_event_fixed_param, wmi_pdev_csa_switch_count_status_event_fixed_param, fixed_param, WMITLV_SIZE_FIX) \
+ WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, vdev_ids, WMITLV_SIZE_VAR)
+WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_CSA_SWITCH_COUNT_STATUS_EVENTID);
+
#ifdef __cplusplus
}
#endif
diff --git a/CORE/SERVICES/COMMON/wmi_unified.h b/CORE/SERVICES/COMMON/wmi_unified.h
index cb4384357b56..76fa9653f792 100644
--- a/CORE/SERVICES/COMMON/wmi_unified.h
+++ b/CORE/SERVICES/COMMON/wmi_unified.h
@@ -358,6 +358,8 @@ typedef enum {
WMI_PDEV_GET_CHIP_POWER_STATS_CMDID,
/** set stats reporting thresholds - see WMI_REPORT_STATS_EVENTID */
WMI_PDEV_SET_STATS_THRESHOLD_CMDID,
+ /** vdev restart request for multiple vdevs */
+ WMI_PDEV_MULTIPLE_VDEV_RESTART_REQUEST_CMDID,
/* VDEV (virtual device) specific commands */
/** vdev create */
@@ -1097,6 +1099,9 @@ typedef enum {
/** Power Save Failure Detected */
WMI_PDEV_CHIP_POWER_SAVE_FAILURE_DETECTED_EVENTID,
+ /* Event to report the switch count in csa of one or more VDEVs */
+ WMI_PDEV_CSA_SWITCH_COUNT_STATUS_EVENTID,
+
/* VDEV specific events */
/** VDEV started event in response to VDEV_START request */
WMI_VDEV_START_RESP_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_VDEV),
@@ -6777,6 +6782,15 @@ typedef struct {
A_UINT32 tim_ie_offset;
/** beacon buffer length. data is in TLV data[] */
A_UINT32 buf_len;
+ /** CSA IE switch count offset from the beginning of data[]
+ * Value 0 indicates CSA IE is not present in beacon template.
+ */
+ A_UINT32 csa_switch_count_offset; /* units = bytes */
+ /** Extended CSA IE switch count offset from the beginning of data[]
+ * Value 0 indicates CSA IE is not present in beacon template.
+ */
+ A_UINT32 ext_csa_switch_count_offset; /* units = bytes */
+
/*
* The TLVs follows:
* wmi_bcn_prb_info bcn_prb_info; //beacon probe capabilities and IEs
@@ -17861,6 +17875,7 @@ static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command)
WMI_RETURN_STRING(WMI_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_CMDID);
WMI_RETURN_STRING(WMI_BPF_SET_VDEV_ACTIVE_MODE_CMDID);
WMI_RETURN_STRING(WMI_HW_DATA_FILTER_CMDID);
+ WMI_RETURN_STRING(WMI_PDEV_MULTIPLE_VDEV_RESTART_REQUEST_CMDID);
}
return "Invalid WMI cmd";
@@ -18060,6 +18075,51 @@ typedef struct {
A_UINT32 hw_filter_bitmap; /* see WMI_HW_DATA_FILTER_BITMAP_TYPE */
} wmi_hw_data_filter_cmd_fixed_param;
+/* This command is used whenever host wants to restart multiple
+ * VDEVs using single command and the VDEV that are restarted will
+ * need to have same properties they had before restart except for the
+ * operating channel
+ */
+typedef struct {
+ A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_multiple_vdev_restart_request_cmd_fixed_param */
+ /** pdev_id for identifying the MAC
+ * See macros starting with WMI_PDEV_ID_ for values.
+ * In non-DBDC case host should set it to 0
+ */
+ A_UINT32 pdev_id;
+ /** unique id identifying the module, generated by the caller */
+ A_UINT32 requestor_id;
+ /** Disable H/W ack.
+ * During CAC, Our HW shouldn't ack directed frames
+ */
+ A_UINT32 disable_hw_ack;
+ /* Determine the duration of CAC on the given channel 'chan' */
+ A_UINT32 cac_duration_ms;
+ A_UINT32 num_vdevs;
+
+ /* The TLVs follows this structure:
+ * A_UINT32 vdev_ids[]; <--- Array of VDEV ids.
+ * wmi_channel chan; <------ WMI channel
+ */
+} wmi_pdev_multiple_vdev_restart_request_cmd_fixed_param;
+
+typedef struct {
+ /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_pdev_csa_switch_count_status_event_fixed_param */
+ A_UINT32 tlv_header;
+ /** pdev_id for identifying the MAC
+ * See macros starting with WMI_PDEV_ID_ for values.
+ * In non-DBDC case host should set it to 0
+ */
+ A_UINT32 pdev_id;
+ /** CSA switch count value in the last transmitted beacon */
+ A_UINT32 current_switch_count;
+ A_UINT32 num_vdevs;
+
+ /* The TLVs follows this structure:
+ * A_UINT32 vdev_ids[]; <--- Array of VDEV ids.
+ */
+} wmi_pdev_csa_switch_count_status_event_fixed_param;
+
/* ADD NEW DEFS HERE */
/*****************************************************************************
diff --git a/CORE/SERVICES/COMMON/wmi_version.h b/CORE/SERVICES/COMMON/wmi_version.h
index 8fb3d5d08519..9f1d43014dd0 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_ 342
+#define __WMI_REVISION_ 343
/** 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 4b0fbb6aff10..ef38bdeb0b71 100644
--- a/CORE/SERVICES/WMI/wmi_unified.c
+++ b/CORE/SERVICES/WMI/wmi_unified.c
@@ -736,6 +736,7 @@ static u_int8_t* get_wmi_cmd_string(WMI_CMD_ID wmi_command)
CASE_RETURN_STRING(WMI_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_CMDID);
CASE_RETURN_STRING(WMI_BPF_SET_VDEV_ACTIVE_MODE_CMDID);
CASE_RETURN_STRING(WMI_HW_DATA_FILTER_CMDID);
+ CASE_RETURN_STRING(WMI_PDEV_MULTIPLE_VDEV_RESTART_REQUEST_CMDID);
}
return "Invalid WMI cmd";
}