Przeglądaj źródła

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 5 lat temu
rodzic
commit
181194b1ea
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      umac/cfr/dispatcher/src/wlan_cfr_ucfg_api.c

+ 1 - 1
umac/cfr/dispatcher/src/wlan_cfr_ucfg_api.c

@@ -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,