summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc_manjee <manjee@codeaurora.org>2017-01-02 19:24:49 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-01-06 20:53:20 -0800
commit7a8dea33a8f19d910676b5828226e89524bd8339 (patch)
tree415c2e6e4755c797e95cb9db61e345dcda5c552f
parent319a94ab5f803e29d6a6a699390c5f7197732cbe (diff)
qcacld-3.0: CL 2759760 - update fw common interface files
define WMI CMD message to configure monitoring PPDU rates as a roam trigger CRs-Fixed: 865207 Change-Id: Ic6d52418485ee5f4704cba1c32c6b0b5067e2b63
-rw-r--r--target/inc/wmi_tlv_defs.h9
-rw-r--r--target/inc/wmi_unified.h38
-rw-r--r--target/inc/wmi_version.h2
3 files changed, 48 insertions, 1 deletions
diff --git a/target/inc/wmi_tlv_defs.h b/target/inc/wmi_tlv_defs.h
index 513e6b2047da..a11b3b37d9cb 100644
--- a/target/inc/wmi_tlv_defs.h
+++ b/target/inc/wmi_tlv_defs.h
@@ -781,6 +781,7 @@ typedef enum {
WMITLV_TAG_STRUC_wmi_request_radio_chan_stats_cmd_fixed_param,
WMITLV_TAG_STRUC_wmi_radio_chan_stats,
WMITLV_TAG_STRUC_wmi_radio_chan_stats_event_fixed_param,
+ WMITLV_TAG_STRUC_wmi_roam_per_config_fixed_param,
} WMITLV_TAG_ID;
/*
@@ -1096,6 +1097,7 @@ typedef enum {
OP(WMI_11D_SCAN_START_CMDID) \
OP(WMI_11D_SCAN_STOP_CMDID) \
OP(WMI_REQUEST_RADIO_CHAN_STATS_CMDID) \
+ OP(WMI_ROAM_PER_CONFIG_CMDID) \
/* add new CMD_LIST elements above this line */
/*
@@ -1436,6 +1438,13 @@ WMITLV_CREATE_PARAM_STRUC(WMI_ROAM_SCAN_CMD);
WMITLV_CREATE_PARAM_STRUC(WMI_ROAM_SET_MBO_PARAM_CMDID);
+/* Roam PER configure cmd */
+#define WMITLV_TABLE_WMI_ROAM_PER_CONFIG_CMDID(id, op, buf, len) \
+ WMITLV_ELEM(id, op, buf, len, WMITLV_TAG_STRUC_wmi_roam_per_config_fixed_param, wmi_roam_per_config_fixed_param, fixed_param, WMITLV_SIZE_FIX)
+
+WMITLV_CREATE_PARAM_STRUC(WMI_ROAM_PER_CONFIG_CMDID);
+
+
#define WMITLV_TABLE_WMI_VDEV_PLMREQ_START_CMDID(id,op,buf,len) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_vdev_plmreq_start_cmd_fixed_param, wmi_vdev_plmreq_start_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, channel_list, WMITLV_SIZE_VAR)
diff --git a/target/inc/wmi_unified.h b/target/inc/wmi_unified.h
index dd708e06c0e0..950e7fc65254 100644
--- a/target/inc/wmi_unified.h
+++ b/target/inc/wmi_unified.h
@@ -569,6 +569,8 @@ typedef enum {
WMI_ROAM_CONFIGURE_MAWC_CMDID,
/** configure MultiBand Operation(refer WFA MBO spec) parameter */
WMI_ROAM_SET_MBO_PARAM_CMDID, /* DEPRECATED */
+ /** configure packet error rate threshold for triggering roaming */
+ WMI_ROAM_PER_CONFIG_CMDID,
/** offload scan specific commands */
/** set offload scan AP profile */
@@ -16413,6 +16415,41 @@ typedef struct {
} wmi_extscan_configure_mawc_cmd_fixed_param;
typedef struct {
+ /*
+ * TLV tag and len; tag equals
+ * WMITLV_TAG_STRUC_wmi_roam_per_config_fixed_param
+ */
+ A_UINT32 tlv_header;
+ /* Unique id identifying the VDEV */
+ A_UINT32 vdev_id;
+ /* enable(1) or disable(0) packet error rate trigger for roaming */
+ A_UINT32 enable;
+ /* high_rate_thresh, low_rate_thresh, pkt_err_rate_thresh_pct:
+ * If PER monitoring as a trigger for roaming is enabled,
+ * it is controlled by high_rate_thresh, low_rate_thresh, and
+ * pkt_err_rate_thresh_pct.
+ * PER monitoring is performed only when the time-averaged throughput
+ * is less than high_rate_thresh.
+ * During PER monitoring, the target keeps track of the PHY rate for
+ * each of the first N PPDUs within a time window.
+ * If the number of PPDUs with PHY rate < low_rate_thresh exceeds
+ * N * pkt_err_rate_thresh_pct / 100, roaming will be triggered.
+ *
+ * This PER monitoring as a trigger for roaming is performed
+ * concurrently but independently for rx and tx.
+ */
+ A_UINT32 high_rate_thresh; /* units = Kbps */
+ A_UINT32 low_rate_thresh; /* units = Kbps */
+ A_UINT32 pkt_err_rate_thresh_pct;
+ /*
+ * rest time after associating to a new AP before
+ * starting to monitor PER as a roaming trigger,
+ * (units are seconds)
+ */
+ A_UINT32 per_rest_time;
+} wmi_roam_per_config_fixed_param;
+
+typedef struct {
/* TLV tag and len; tag equals
* WMITLV_TAG_STRUC_wmi_nlo_configure_mawc_cmd_fixed_param */
A_UINT32 tlv_header;
@@ -18676,6 +18713,7 @@ static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command)
WMI_RETURN_STRING(WMI_VDEV_ENCRYPT_DECRYPT_DATA_REQ_CMDID);
WMI_RETURN_STRING(WMI_REQUEST_PEER_STATS_INFO_CMDID);
WMI_RETURN_STRING(WMI_REQUEST_RADIO_CHAN_STATS_CMDID);
+ WMI_RETURN_STRING(WMI_ROAM_PER_CONFIG_CMDID);
}
return "Invalid WMI cmd";
diff --git a/target/inc/wmi_version.h b/target/inc/wmi_version.h
index 716a422006e6..fa4be574f5cb 100644
--- a/target/inc/wmi_version.h
+++ b/target/inc/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_ 330
+#define __WMI_REVISION_ 331
/** The Version Namespace should not be normally changed. Only
* host and firmware of the same WMI namespace will work