Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Missed a spot.
details: https://anonhg.NetBSD.org/src/rev/07df2f7473ca
branches: trunk
changeset: 343471:07df2f7473ca
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Feb 06 01:59:55 2016 +0000
description:
Missed a spot.
diffstat:
sys/dev/pci/if_rtwn.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 93c50cc70f6a -r 07df2f7473ca sys/dev/pci/if_rtwn.c
--- a/sys/dev/pci/if_rtwn.c Sat Feb 06 01:51:39 2016 +0000
+++ b/sys/dev/pci/if_rtwn.c Sat Feb 06 01:59:55 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_rtwn.c,v 1.3 2016/02/06 01:51:39 riastradh Exp $ */
+/* $NetBSD: if_rtwn.c,v 1.4 2016/02/06 01:59:55 riastradh Exp $ */
/* $OpenBSD: if_rtwn.c,v 1.5 2015/06/14 08:02:47 stsp Exp $ */
#define IEEE80211_NO_HT
/*-
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_rtwn.c,v 1.3 2016/02/06 01:51:39 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_rtwn.c,v 1.4 2016/02/06 01:59:55 riastradh Exp $");
#include <sys/param.h>
#include <sys/sockio.h>
@@ -2991,7 +2991,7 @@
maxpwr = rom->ht40_max_pwr[group];
else
maxpwr = rom->ht20_max_pwr[group];
- maxpwr = (max >> (chain * 4)) & 0xf;
+ maxpwr = (maxpwr >> (chain * 4)) & 0xf;
if (power[ridx] > maxpwr)
power[ridx] = maxpwr;
} else if (sc->regulatory == 1) {
Home |
Main Index |
Thread Index |
Old Index