mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
qcacld-3.0: Add 11d scan event to wow statistics
Add 11d scan wakeup event to wow statistics and wow wakeup reason string. Change-Id: I4614ec38491fa52eb163481a96140e0e5df45829 CRs-Fixed: 2057841
This commit is contained in:
parent
458bd856e2
commit
5eb9acb9bd
2 changed files with 10 additions and 1 deletions
|
|
@ -6513,7 +6513,8 @@ struct sir_wake_lock_stats {
|
|||
* @gscan: gscan wakeup count
|
||||
* @pno_complete: pno complete wakeup count
|
||||
* @pno_match: pno match wakeup count
|
||||
* @oem_response: oem response wakeup count
|
||||
* @oem_response: oem response wakeup coun
|
||||
* @scan_11d: 11d scan wakeup count
|
||||
*/
|
||||
struct sir_vdev_wow_stats {
|
||||
uint32_t ucast;
|
||||
|
|
@ -6532,6 +6533,7 @@ struct sir_vdev_wow_stats {
|
|||
uint32_t pno_match;
|
||||
uint32_t oem_response;
|
||||
uint32_t pwr_save_fail_detected;
|
||||
uint32_t scan_11d;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1566,6 +1566,8 @@ static const u8 *wma_wow_wake_reason_str(A_INT32 wake_reason)
|
|||
return "DEBUG_TEST";
|
||||
case WOW_REASON_CHIP_POWER_FAILURE_DETECT:
|
||||
return "CHIP_POWER_FAILURE_DETECT";
|
||||
case WOW_REASON_11D_SCAN:
|
||||
return "11D_SCAN";
|
||||
default:
|
||||
return "unknown";
|
||||
}
|
||||
|
|
@ -1613,6 +1615,7 @@ static void wma_print_wow_stats(t_wma_handle *wma,
|
|||
case WOW_REASON_RSSI_BREACH_EVENT:
|
||||
case WOW_REASON_OEM_RESPONSE_EVENT:
|
||||
case WOW_REASON_CHIP_POWER_FAILURE_DETECT:
|
||||
case WOW_REASON_11D_SCAN:
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
|
|
@ -1663,6 +1666,8 @@ static void wma_inc_wow_stats(t_wma_handle *wma,
|
|||
break;
|
||||
case WOW_REASON_OEM_RESPONSE_EVENT:
|
||||
stats->oem_response++;
|
||||
case WOW_REASON_11D_SCAN:
|
||||
stats->scan_11d++;
|
||||
break;
|
||||
case WOW_REASON_CHIP_POWER_FAILURE_DETECT:
|
||||
stats->pwr_save_fail_detected++;
|
||||
|
|
@ -1766,6 +1771,8 @@ static int wow_get_wmi_eventid(int32_t reason, uint32_t tag)
|
|||
return WOW_TDLS_CONN_TRACKER_EVENT;
|
||||
case WOW_REASON_ROAM_HO:
|
||||
return WMI_ROAM_EVENTID;
|
||||
case WOW_REASON_11D_SCAN:
|
||||
return WMI_11D_NEW_COUNTRY_EVENTID;
|
||||
default:
|
||||
WMA_LOGD(FL("No Event Id for WOW reason %s(%d)"),
|
||||
wma_wow_wake_reason_str(reason), reason);
|
||||
|
|
|
|||
Loading…
Reference in a new issue