Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Feb 2017 05:26:39 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r313084 - head/tools/tools/ath/athspectral
Message-ID:  <201702020526.v125QdpX094834@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Thu Feb  2 05:26:39 2017
New Revision: 313084
URL: https://svnweb.freebsd.org/changeset/base/313084

Log:
  [athspectral] add a knob to expose the spectral scan priority.
  
  This is required for AR9380 and later chips.. please leave it at 0 for now.

Modified:
  head/tools/tools/ath/athspectral/athspectral.c

Modified: head/tools/tools/ath/athspectral/athspectral.c
==============================================================================
--- head/tools/tools/ath/athspectral/athspectral.c	Thu Feb  2 04:53:33 2017	(r313083)
+++ head/tools/tools/ath/athspectral/athspectral.c	Thu Feb  2 05:26:39 2017	(r313084)
@@ -104,6 +104,9 @@ spectralset(struct spectralhandler *spec
 	case SPECTRAL_PARAM_SS_SHORT_RPT:
 		pe.ss_short_report = param;
 		break;
+	case SPECTRAL_PARAM_SS_SPECTRAL_PRI:
+		pe.ss_spectral_pri = param;
+		break;
 	}
 
 	spectral->atd.ad_id = SPECTRAL_CONTROL_SET_PARAMS | ATH_DIAG_IN;
@@ -138,6 +141,7 @@ spectral_get(struct spectralhandler *spe
 	printf("   ss_fft_period: %d\n", pe.ss_fft_period);
 	printf("   ss_period: %d\n", pe.ss_period);
 	printf("   ss_short_report: %d\n", pe.ss_short_report);
+	printf("   ss_spectral_pri: %d\n", pe.ss_spectral_pri);
 	printf("   radar_bin_thresh_sel: %d\n", pe.radar_bin_thresh_sel);
 }
 
@@ -222,6 +226,8 @@ spectral_set_param(struct spectralhandle
 		spectralset(spectral, SPECTRAL_PARAM_SS_PERIOD, v);
 	} else if (strcmp(param, "ss_count") == 0) {
 		spectralset(spectral, SPECTRAL_PARAM_SS_COUNT, v);
+	} else if (strcmp(param, "ss_spectral_pri") == 0) {
+		spectralset(spectral, SPECTRAL_PARAM_SS_SPECTRAL_PRI, v);
 	} else {
 		return (0);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702020526.v125QdpX094834>