Преглед изворни кода

qcacld-3.0: Add new command to enable PPDU log

Map below UnitTest command to TPUT_DEBUG_MODE_ENABLE.
iwpriv wlan0 setUnitTestCmd 0x48 3 84 1 1
To reduce Logs, Change agrument of existing command to
1 so that changes are printed once in three seconds.

Change-Id: I1250c13da5e4a81fb90e505dc3a2f9f93a5e603b
CRs-Fixed: 2957994
sheenam monga пре 3 година
родитељ
комит
7ddaae96ed
1 измењених фајлова са 23 додато и 2 уклоњено
  1. 23 2
      core/hdd/src/wlan_hdd_ioctl.c

+ 23 - 2
core/hdd/src/wlan_hdd_ioctl.c

@@ -2340,7 +2340,7 @@ static int hdd_enable_unit_test_commands(struct hdd_adapter *adapter,
 					 struct hdd_context *hdd_ctx)
 {
 	enum pld_bus_type bus_type = pld_get_bus_type(hdd_ctx->parent_dev);
-	u32 arg[2];
+	u32 arg[3];
 	QDF_STATUS status;
 
 	if (hdd_get_conparam() == QDF_GLOBAL_FTM_MODE ||
@@ -2354,7 +2354,7 @@ static int hdd_enable_unit_test_commands(struct hdd_adapter *adapter,
 
 	if (bus_type == PLD_BUS_TYPE_PCIE) {
 		arg[0] = 360;
-		arg[1] = 3;
+		arg[1] = 1;
 
 		status = sme_send_unit_test_cmd(adapter->vdev_id,
 						WLAN_MODULE_TX,
@@ -2373,6 +2373,17 @@ static int hdd_enable_unit_test_commands(struct hdd_adapter *adapter,
 		if (status != QDF_STATUS_SUCCESS)
 			return qdf_status_to_os_return(status);
 
+		arg[0] = 84;
+		arg[1] = 1;
+		arg[2] = 1;
+
+		status = sme_send_unit_test_cmd(adapter->vdev_id,
+						WLAN_MODULE_TX,
+						3,
+						arg);
+		if (status != QDF_STATUS_SUCCESS)
+			return qdf_status_to_os_return(status);
+
 		if (hdd_ctx->target_type == TARGET_TYPE_QCA6390) {
 			arg[0] = 37;
 			arg[1] = 3000;
@@ -2459,6 +2470,16 @@ static int hdd_disable_unit_test_commands(struct hdd_adapter *adapter,
 		if (status != QDF_STATUS_SUCCESS)
 			return qdf_status_to_os_return(status);
 
+		arg[0] = 84;
+		arg[1] = 0;
+
+		status = sme_send_unit_test_cmd(adapter->vdev_id,
+						WLAN_MODULE_RX,
+						2,
+						arg);
+		if (status != QDF_STATUS_SUCCESS)
+			return qdf_status_to_os_return(status);
+
 	} else if (bus_type == PLD_BUS_TYPE_SNOC) {
 		arg[0] = 7;
 		arg[1] = 0;