From fd7c31dc801a22339acf7010f21824f798b40c75 Mon Sep 17 00:00:00 2001 From: Shiva Krishna Pittala Date: Thu, 21 Jun 2018 20:29:37 +0530 Subject: [PATCH] qcacmn: Fix Spectral priority value after stop_scan call After stop_scan call, Spectral priority is being disabled. Do not change the value of any spectral parameter unless the command is configure_spectral. Change-Id: I25d3458cd49e25533270f89df9f8f29a4b7da16d CRs-Fixed: 2259952 --- target_if/spectral/target_if_spectral.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/target_if/spectral/target_if_spectral.c b/target_if/spectral/target_if_spectral.c index 70f98bbf1c55..b19876868c9d 100644 --- a/target_if/spectral/target_if_spectral.c +++ b/target_if/spectral/target_if_spectral.c @@ -2657,15 +2657,7 @@ target_if_stop_spectral_scan(struct wlan_objmgr_pdev *pdev) spectral->send_single_packet = 0; spectral->sc_spectral_scan = 0; - spectral->sc_spectral_noise_pwr_cal = 0; - /* - * Reset the priority because it stops WLAN rx. - * If it is needed to set, user has to set it explicitly - * - */ - /* Reset Priority */ - spectral->params.ss_spectral_pri = 0; qdf_spin_unlock(&spectral->spectral_lock); }