Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jan 2013 03:56:20 +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: r244950 - head/sys/dev/ath/ath_hal/ar5416
Message-ID:  <201301020356.r023uKxV006543@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Wed Jan  2 03:56:20 2013
New Revision: 244950
URL: http://svnweb.freebsd.org/changeset/base/244950

Log:
  Fix the short repeat option code to not flip the option to 0 when
  we call this w/ NOVAL set.

Modified:
  head/sys/dev/ath/ath_hal/ar5416/ar5416_spectral.c

Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_spectral.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5416/ar5416_spectral.c	Wed Jan  2 02:44:54 2013	(r244949)
+++ head/sys/dev/ath/ath_hal/ar5416/ar5416_spectral.c	Wed Jan  2 03:56:20 2013	(r244950)
@@ -113,7 +113,7 @@ ar5416ConfigureSpectralScan(struct ath_h
 
 		if (ss->ss_short_report == AH_TRUE) {
 			val |= AR_PHY_SPECTRAL_SCAN_SHORT_REPEAT;
-		} else {
+		} else if (ss->ss_short_report != HAL_SPECTRAL_PARAM_NOVAL) {
 			val &= ~AR_PHY_SPECTRAL_SCAN_SHORT_REPEAT;
 		}
 	} else {
@@ -130,7 +130,7 @@ ar5416ConfigureSpectralScan(struct ath_h
 
 		if (ss->ss_short_report == AH_TRUE) {
 			val |= AR_PHY_SPECTRAL_SCAN_SHORT_REPEAT_KIWI;
-		} else {
+		} else if (ss->ss_short_report != HAL_SPECTRAL_PARAM_NOVAL) {
 			val &= ~AR_PHY_SPECTRAL_SCAN_SHORT_REPEAT_KIWI;
 		}
 



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