qcacmn: Clean CONFIG_MCL for host_diag_log_set_*

The aim is to remove CONFIG_MCL or CONFIG_WIN from
cmn component.

This change takes care host_diag_log_set_code and
host_diag_log_set_length.

CRs-Fixed: 2371125
Change-Id: Ic04037202d79f87003a47ac2d698bc4e7752ee12
This commit is contained in:
Paul Zhang
2018-12-10 15:58:46 +08:00
committed by nshrivas
parent bd60ad37c2
commit 884782c9c8

View File

@@ -489,11 +489,9 @@ static int pkt_stats_fill_headers(struct sk_buff *skb)
cds_pktlog.version = VERSION_LOG_WLAN_PKT_LOG_INFO_C;
cds_pktlog.buf_len = skb->len;
cds_pktlog.seq_no = gwlan_logging.pkt_stats_msg_idx++;
#ifdef CONFIG_MCL
host_diag_log_set_code(&cds_pktlog, LOG_WLAN_PKT_LOG_INFO_C);
host_diag_log_set_length(&cds_pktlog.log_hdr, skb->len +
cds_pkt_size);
#endif
if (unlikely(skb_headroom(skb) < cds_pkt_size)) {
pr_err("VPKT [%d]: Insufficient headroom, head[%pK], data[%pK], req[%zu]",