Browse Source

qcacmn: Reset 160 MHz state machine on error

Reset the 160 MHz state machine on any error
while processing a Spectral report.

CRs-fixed: 2879610
Change-Id: I982d12edc5c9aa24b0255fbcb932d198a6da514b
Edayilliam Jayadev 4 years ago
parent
commit
4283a1ae62
1 changed files with 4 additions and 2 deletions
  1. 4 2
      target_if/spectral/target_if_spectral_phyerr.c

+ 4 - 2
target_if/spectral/target_if_spectral_phyerr.c

@@ -2039,8 +2039,10 @@ target_if_consume_spectral_report_gen3(
 	}
 
 	/* Drop the sample if Spectral is not active for the current mode */
-	if (!p_sops->is_spectral_active(spectral, spectral_mode))
-		return -EINVAL;
+	if (!p_sops->is_spectral_active(spectral, spectral_mode)) {
+		spectral_info_rl("Spectral scan is not active");
+		goto fail_no_print;
+	}
 
 	ret = target_if_spectral_is_finite_scan(spectral, spectral_mode,
 						&finite_scan);