svn commit: r313084 - head/tools/tools/ath/athspectral

Adrian Chadd adrian at FreeBSD.org
Thu Feb 2 05:26:40 UTC 2017


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);
 	}


More information about the svn-src-head mailing list