qcacld-3.0: Add correct attribute for reason codes in logging event

For deauth/disassassociation RX/TX, the connectivity logging event
is sent. In this event the QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
is used to send the frame reason code. But userspace expects
QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE attribute.

Fill QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE instead of
QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE.

Change-Id: I90d58f251f0e2d4647cbde3c76d4a22779c97290
CRs-Fixed: 3054797
This commit is contained in:
Pragaspathi Thilagaraj
2021-10-13 19:36:03 +05:30
zatwierdzone przez Madan Koyyalamudi
rodzic 52268602fb
commit 4c4778a509
2 zmienionych plików z 15 dodań i 10 usunięć

Wyświetl plik

@@ -4851,6 +4851,7 @@ void cm_roam_result_info_event(struct wmi_roam_result *res, uint8_t vdev_id,
if (roam_abort) {
log_record->log_subtype = WLAN_ROAM_CANCEL;
log_record->fw_timestamp_us = log_record->timestamp_us;
log_record->roam_result.roam_fail_reason = res->fail_reason;
} else {
log_record->log_subtype = WLAN_ROAM_RESULT;
log_record->fw_timestamp_us = res->timestamp * 1000;