Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jan 2014 14:48:17 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r260542 - head/sys/dev/usb/wlan
Message-ID:  <201401111448.s0BEmHEx097991@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Sat Jan 11 14:48:16 2014
New Revision: 260542
URL: http://svnweb.freebsd.org/changeset/base/260542

Log:
  Fix a logic error when checking if Tx power entries are greater than 31.

Modified:
  head/sys/dev/usb/wlan/if_run.c

Modified: head/sys/dev/usb/wlan/if_run.c
==============================================================================
--- head/sys/dev/usb/wlan/if_run.c	Sat Jan 11 13:35:36 2014	(r260541)
+++ head/sys/dev/usb/wlan/if_run.c	Sat Jan 11 14:48:16 2014	(r260542)
@@ -1650,12 +1650,12 @@ run_rt3593_get_txpower(struct run_softc 
 	}
 	/* Fix broken Tx power entries. */
 	for (i = 0; i < 14; i++) {
-		if ((sc->txpow1[i] & 0x1f) > 31)
+		if (sc->txpow1[i] > 31)
 			sc->txpow1[i] = 5;
-		if ((sc->txpow2[i] & 0x1f) > 31)
+		if (sc->txpow2[i] > 31)
 			sc->txpow2[i] = 5;
 		if (sc->ntxchains == 3) {
-			if ((sc->txpow3[i] & 0x1f) > 31)
+			if (sc->txpow3[i] > 31)
 				sc->txpow3[i] = 5;
 		}
 	}



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