Browse Source

qca-wifi: Correct bandwidths populated in CFR header

Channel and capture bandwidths got interchanged while filling.

CRs-Fixed: 2421520
Change-Id: I895161bae54525283ab8edcb6fcfb1112beadf73
Abhiram Jogadenu 6 years ago
parent
commit
0458ba49eb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      target_if/cfr/src/target_if_cfr_8074v2.c

+ 2 - 1
target_if/cfr/src/target_if_cfr_8074v2.c

@@ -426,7 +426,8 @@ target_if_peer_capture_event(ol_scn_t sc, uint8_t *data, uint32_t datalen)
 	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;