qcacmn: Enhance hang reason code mappings

Currently many host hang reason codes are not mapped to corresponding
userspace codes as a result these hang reason code will be invalid
for userspace and also QDF_REASON_UNSPECIFIED is used in some places
in host.

To add mappings for host hang codes to corresponding to userspace
hang codes and also add new hang codes.

Change-Id: Idb21ccb4a34c9c94872798404912bdb743e9270b
CRs-Fixed: 3381229
This commit is contained in:
Asutosh Mohapatra
2023-01-16 16:42:05 +05:30
committed by Madan Koyyalamudi
parent 8cfe6b1005
commit de1e7e7e12
2 changed files with 7 additions and 1 deletions

View File

@@ -797,7 +797,7 @@ static void send_flush_completion_to_user(uint8_t ring_id)
wlan_report_log_completion(is_fatal, indicator, reason_code, ring_id);
if (recovery_needed)
cds_trigger_recovery(QDF_REASON_UNSPECIFIED);
cds_trigger_recovery(QDF_FLUSH_LOGS);
}
#endif