qca-wifi: Correct bandwidths populated in CFR header
Channel and capture bandwidths got interchanged while filling.
CRs-Fixed: 2421520
Change-Id: I895161bae54525283ab8edcb6fcfb1112beadf73
diff --git a/target_if/cfr/src/target_if_cfr_8074v2.c b/target_if/cfr/src/target_if_cfr_8074v2.c
index b2fd006..5a3fca0 100644
--- a/target_if/cfr/src/target_if_cfr_8074v2.c
+++ b/target_if/cfr/src/target_if_cfr_8074v2.c
@@ -426,7 +426,8 @@
header->chip_type = CFR_CAPTURE_RADIO_HKV2;
header->pltform_type = CFR_PLATFORM_TYPE_ARM;
header->Reserved = 0;
- header->u.meta_v1.status = tx_evt_param.status;
+ header->u.meta_v1.status = (tx_evt_param.status &
+ PEER_CFR_CAPTURE_EVT_STATUS_MASK)?0:1;
header->u.meta_v1.channel_bw = tx_evt_param.bandwidth;
header->u.meta_v1.phy_mode = tx_evt_param.phy_mode;
header->u.meta_v1.prim20_chan = tx_evt_param.primary_20mhz_chan;