qcacmn: Retrieve BSS color from TLV

In Tx monitor code, BSS color needs to be retrieved
from the PPDU TLV so that it matches the value in
transmitted packet.

Change-Id: I6e1dce3992264ebea2db37b2d9c8f156a23df028
This commit is contained in:
Manoj Ekbote
2021-06-17 11:26:02 -07:00
committed by Madan Koyyalamudi
orang tua 32647bf109
melakukan 190ff6c23e
2 mengubah file dengan 6 tambahan dan 4 penghapusan

Melihat File

@@ -2507,6 +2507,10 @@ static void dp_process_ppdu_stats_common_tlv(struct dp_pdev *pdev,
/* Ack time stamp is same as end time stamp*/
ppdu_desc->ack_timestamp = ppdu_desc->ppdu_end_timestamp;
tag_buf = start_tag_buf + HTT_GET_STATS_CMN_INDEX(BSSCOLOR_OBSS_PSR);
ppdu_desc->bss_color =
HTT_PPDU_STATS_COMMON_TLV_BSS_COLOR_ID_GET(*tag_buf);
}
/*
@@ -4102,9 +4106,6 @@ static struct ppdu_info *dp_htt_process_tlv(struct dp_pdev *pdev,
if (!ppdu_info)
return NULL;
ppdu_info->ppdu_desc->bss_color =
pdev->rx_mon_recv_status.bsscolor;
ppdu_info->ppdu_id = ppdu_id;
ppdu_info->tlv_bitmap |= (1 << tlv_type);