Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Correctly set lowest_present_ofdm in iwm_mvm_ack...
details: https://anonhg.NetBSD.org/src/rev/ef708980d7ad
branches: trunk
changeset: 336481:ef708980d7ad
user: nonaka <nonaka%NetBSD.org@localhost>
date: Tue Mar 03 09:27:35 2015 +0000
description:
Correctly set lowest_present_ofdm in iwm_mvm_ack_rates().
>From OpenBSD rev.1.28.
diffstat:
sys/dev/pci/if_iwm.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 5b4454ad3141 -r ef708980d7ad sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c Tue Mar 03 09:23:02 2015 +0000
+++ b/sys/dev/pci/if_iwm.c Tue Mar 03 09:27:35 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_iwm.c,v 1.19 2015/03/03 09:22:06 nonaka Exp $ */
+/* $NetBSD: if_iwm.c,v 1.20 2015/03/03 09:27:35 nonaka Exp $ */
/* OpenBSD: if_iwm.c,v 1.18 2015/02/11 01:12:42 brad Exp */
/*
@@ -105,7 +105,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.19 2015/03/03 09:22:06 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.20 2015/03/03 09:27:35 nonaka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -4780,8 +4780,8 @@
for (i = IWM_FIRST_OFDM_RATE; i <= IWM_LAST_NON_HT_RATE; i++) {
int adj = i - IWM_FIRST_OFDM_RATE;
ofdm |= (1 << adj);
- if (lowest_present_ofdm > adj)
- lowest_present_ofdm = adj;
+ if (lowest_present_ofdm > i)
+ lowest_present_ofdm = i;
}
/*
Home |
Main Index |
Thread Index |
Old Index