فهرست منبع

qcacld-3.0: Logging enhancements for GET driver cmds

For the below GET driver command, print the value
before sending it to user space to enhance automation
tools:
1. GETDWELLTIME for 2 GHz, 5 GHz and 6 GHz channels
2. GETSCANCHANNELTIME
3. GETSCANHOMETIME

Change-Id: I8d090898828049107d4a00bbc3622665aa0e30ac
CRs-Fixed: 3247541
abhinav kumar 2 سال پیش
والد
کامیت
8c996f7c38
1فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  1. 10 0
      core/hdd/src/wlan_hdd_ioctl.c

+ 10 - 0
core/hdd/src/wlan_hdd_ioctl.c

@@ -1768,11 +1768,13 @@ static int hdd_get_dwell_time_6g(struct wlan_objmgr_psoc *psoc,
 
 	if (strncmp(command, "GETDWELLTIME 6G MAX", 19) == 0) {
 		status = ucfg_scan_cfg_get_active_6g_dwelltime(psoc, &val);
+		hdd_debug("active 6g dwelltime:%d", val);
 		if (QDF_IS_STATUS_SUCCESS(status))
 			*len = scnprintf(extra, n, "GETDWELLTIME 6G MAX %u\n",
 					 val);
 	} else if (strncmp(command, "GETDWELLTIME PASSIVE 6G MAX", 27) == 0) {
 		status = ucfg_scan_cfg_get_passive_6g_dwelltime(psoc, &val);
+		hdd_debug("passive 6g dwelltime:%d", val);
 		if (QDF_IS_STATUS_SUCCESS(status))
 			*len = scnprintf(extra, n,
 					 "GETDWELLTIME PASSIVE 6G MAX %u\n",
@@ -1845,23 +1847,27 @@ static int hdd_get_dwell_time(struct wlan_objmgr_psoc *psoc, uint8_t *command,
 
 	if (strncmp(command, "GETDWELLTIME ACTIVE MAX", 23) == 0) {
 		ucfg_scan_cfg_get_active_dwelltime(psoc, &val);
+		hdd_debug("active max dwelltime:%d", val);
 		*len = scnprintf(extra, n, "GETDWELLTIME ACTIVE MAX %u\n", val);
 		return 0;
 	}
 	if (strncmp(command, "GETDWELLTIME PASSIVE MAX", 24) == 0) {
 		ucfg_scan_cfg_get_passive_dwelltime(psoc, &val);
+		hdd_debug("passive dwelltime:%d", val);
 		*len = scnprintf(extra, n, "GETDWELLTIME PASSIVE MAX %u\n",
 				 val);
 		return 0;
 	}
 	if (strncmp(command, "GETDWELLTIME 2G MAX", 19) == 0) {
 		ucfg_scan_cfg_get_active_2g_dwelltime(psoc, &val);
+		hdd_debug("active 2g dwelltime:%d", val);
 		*len = scnprintf(extra, n, "GETDWELLTIME 2G MAX %u\n",
 				 val);
 		return 0;
 	}
 	if (strncmp(command, "GETDWELLTIME", 12) == 0) {
 		ucfg_scan_cfg_get_active_dwelltime(psoc, &val);
+		hdd_debug("active dwelltime:%d", val);
 		*len = scnprintf(extra, n, "GETDWELLTIME %u\n", val);
 		return 0;
 	}
@@ -3651,6 +3657,8 @@ static int drv_cmd_get_scan_channel_time(struct hdd_adapter *adapter,
 	char extra[32];
 	uint8_t len = 0;
 
+	hdd_debug("vdev_id: %u, scan channel time: %u", adapter->vdev_id, val);
+
 	/* value is interms of msec */
 	len = scnprintf(extra, sizeof(extra), "%s %d",
 			"GETSCANCHANNELTIME", val);
@@ -3722,6 +3730,8 @@ static int drv_cmd_get_scan_home_time(struct hdd_adapter *adapter,
 	char extra[32];
 	uint8_t len = 0;
 
+	hdd_debug("vdev_id: %u, scan home time: %u", adapter->vdev_id, val);
+
 	/* value is interms of msec */
 	len = scnprintf(extra, sizeof(extra), "%s %d",
 			"GETSCANHOMETIME", val);