Procházet zdrojové kódy

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 před 4 roky
rodič
revize
4283a1ae62
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  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);