mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
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
This commit is contained in:
parent
441725b6ef
commit
181194b1ea
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue