qcacld-3.0: Add support for HTT_T2H_MSG_TYPE_CFR_DUMP_COMPL_IND msg

Add support to parse the HTT_T2H_MSG_TYPE_CFR_DUMP_COMPL_IND
message. This target to host message is received when CFR feature
is enabled.

Change-Id: I592cd5ca663018f2958550e6e3e383bb796ee168
CRs-Fixed: 2680730
此提交包含在:
Surabhi Vishnoi
2020-04-27 15:58:11 +05:30
提交者 nshrivas
父節點 26912417a3
當前提交 c25f24b8d8
共有 3 個檔案被更改,包括 89 行新增1 行删除

查看文件

@@ -209,6 +209,7 @@ static int htt_t2h_adjust_bus_target_delta(struct htt_pdev_t *pdev,
#endif
#define MAX_TARGET_TX_CREDIT 204800
#define HTT_CFR_DUMP_COMPL_HEAD_SZ 4
/* Target to host Msg/event handler for low priority messages*/
static void htt_t2h_lp_msg_handler(void *context, qdf_nbuf_t htt_t2h_msg,
@@ -706,7 +707,23 @@ static void htt_t2h_lp_msg_handler(void *context, qdf_nbuf_t htt_t2h_msg,
}
}
}
#ifdef WLAN_CFR_ENABLE
case HTT_T2H_MSG_TYPE_CFR_DUMP_COMPL_IND:
{
int expected_len;
int msg_len = qdf_nbuf_len(htt_t2h_msg);
expected_len = HTT_CFR_DUMP_COMPL_HEAD_SZ +
sizeof(struct htt_cfr_dump_compl_ind);
if (msg_len < expected_len) {
qdf_print("Invalid length of CFR capture event");
break;
}
ol_rx_cfr_capture_msg_handler(htt_t2h_msg);
break;
}
#endif
default:
break;
};