qcacld-3.0: Add new WMI wakeup reason

Add the new WMI wakeup reason “WOW_REASON_FATAL_EVENT_WAKE".

Change-Id: I93b530f78f568fa88cb310c5d78cd950451fc441
CRs-Fixed: 2868523
This commit is contained in:
Abdul Muqtadeer Ahmed 2021-02-02 12:04:51 +05:30 committed by snandini
parent 0332541d37
commit 673f45c7c5
3 changed files with 10 additions and 0 deletions

View File

@ -138,6 +138,7 @@ enum txrate_gi {
* @pno_match_wake_up_count: pno match wakeup count
* @oem_response_wake_up_count: oem response wakeup count
* @uc_drop_wake_up_count: local data uc drop wakeup count
* @fatal_event_wake_up_count: fatal event wakeup count
* @pwr_save_fail_detected: pwr save fail detected wakeup count
* @scan_11d 11d scan wakeup count
* @mgmt_assoc: association request management frame
@ -166,6 +167,7 @@ struct wake_lock_stats {
uint32_t pno_match_wake_up_count;
uint32_t oem_response_wake_up_count;
uint32_t uc_drop_wake_up_count;
uint32_t fatal_event_wake_up_count;
uint32_t pwr_save_fail_detected;
uint32_t scan_11d;
uint32_t mgmt_assoc;

View File

@ -552,6 +552,8 @@ static void vdev_iterator(struct wlan_objmgr_psoc *psoc, void *vdev, void *arg)
stats->oem_response_wake_up_count +=
vdev_stats->oem_response_wake_up_count;
stats->uc_drop_wake_up_count += vdev_stats->uc_drop_wake_up_count;
stats->fatal_event_wake_up_count +=
vdev_stats->fatal_event_wake_up_count;
stats->pwr_save_fail_detected += vdev_stats->pwr_save_fail_detected;
stats->scan_11d += vdev_stats->scan_11d;
}
@ -663,6 +665,7 @@ QDF_STATUS ucfg_mc_cp_stats_write_wow_stats(
"\tPNO Complete: %u\n"
"\tPNO Match: %u\n"
"\tUC Drop wake_count: %u\n"
"\twake count due to fatal event: %u\n"
"\tOEM rsp wake_count: %u\n"
"\twake count due to pwr_save_fail_detected: %u\n"
"\twake count due to 11d scan: %u\n",
@ -682,6 +685,7 @@ QDF_STATUS ucfg_mc_cp_stats_write_wow_stats(
wow_stats.pno_complete_wake_up_count,
wow_stats.pno_match_wake_up_count,
wow_stats.uc_drop_wake_up_count,
wow_stats.fatal_event_wake_up_count,
wow_stats.oem_response_wake_up_count,
wow_stats.pwr_save_fail_detected,
wow_stats.scan_11d);

View File

@ -1188,6 +1188,10 @@ static void target_if_cp_stats_inc_wake_lock_stats(uint32_t reason,
stats->uc_drop_wake_up_count++;
break;
case WOW_REASON_FATAL_EVENT_WAKE:
stats->fatal_event_wake_up_count++;
break;
default:
break;
}