Преглед изворни кода

qca-wifi: CFR: Update channel capture status counters

PHY may not be able to capture the CFR data in certain cases.
Ucode will update the reason due to which CFR capture did not
happen in PHYRX_PKT_END TLV.

Channel capture status -
	0 - CAPTURE_IDLE
	1 - CAPTURE_BUSY
	2 - CAPTURE_ACTIVE
	3 - CAPTURE_NO_BUFFER

Originally, ucode updated channel capture status only for PPDUs,
for which PHY was able to capture CFR data successfully. Ucode is
making a change to report channel capture status in PPDUs for which
PHY was unable to capture CFR data.

Re-positioning the counters in host to handle this new change in
ucode.

Change-Id: I915fe7c4969649754936cab624343e044b397a0c
Padma Raghunathan пре 5 година
родитељ
комит
b12a4fea57
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      target_if/cfr/src/target_if_cfr_6018.c

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

@@ -694,14 +694,13 @@ void target_if_cfr_rx_tlv_process(struct wlan_objmgr_pdev *pdev, void *nbuf)
 		goto done; /* HW registers have not captured FFT bins */
 	}
 
+	pcfr->chan_capture_status[cfr_info->chan_capture_status]++;
 	if (cfr_info->rx_location_info_valid) {
 		pcfr->rx_loc_info_valid_cnt++;
 	} else {
 		goto done;
 	}
 
-	pcfr->chan_capture_status[cfr_info->chan_capture_status]++;
-
 	if (cfr_info->chan_capture_status != CAPTURE_ACTIVE) {
 		wlan_objmgr_pdev_release_ref(pdev, WLAN_CFR_ID);
 		qdf_nbuf_free(nbuf);