qcacmn: Check period while getting CFR capture status

When a one-shot capture is triggered with CFR, the state is not
reset to DISABLED after capture has completed. This affects HW mode
switch behavior because if CFR capture is ongoing (ENABLED), mode
switch is not allowed. This change checks for period to return DISABLED
or ENABLED. Period is 0 in case of one-shot capture.

Change-Id: Iae8727959a1becd3b5f4da166e868c1592910b84
CRs-Fixed: 2735166
此提交包含在:
Manoj Ekbote
2020-07-18 19:29:53 -07:00
提交者 snandini
父節點 441725b6ef
當前提交 181194b1ea

查看文件

@@ -301,7 +301,7 @@ static void cfr_iter_peer_handler(struct wlan_objmgr_pdev *pdev,
return;
}
if (pe->request == PEER_CFR_CAPTURE_ENABLE) {
if (pe->period && (pe->request == PEER_CFR_CAPTURE_ENABLE)) {
*cfr_capt_status = pe->request;
cfr_debug("CFR capture running for peer "
QDF_MAC_ADDR_STR,