Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci match iwn and init txrate at lowest available bi...



details:   https://anonhg.NetBSD.org/src/rev/f1734b3a2bde
branches:  trunk
changeset: 806620:f1734b3a2bde
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Tue Mar 03 09:16:56 2015 +0000

description:
match iwn and init txrate at lowest available bit-rate.
>From OpenBSD rev.1.26.

diffstat:

 sys/dev/pci/if_iwm.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 344aef61763d -r f1734b3a2bde sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Tue Mar 03 09:10:45 2015 +0000
+++ b/sys/dev/pci/if_iwm.c      Tue Mar 03 09:16:56 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_iwm.c,v 1.17 2015/03/03 09:10:45 nonaka Exp $       */
+/*     $NetBSD: if_iwm.c,v 1.18 2015/03/03 09:16:56 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.17 2015/03/03 09:10:45 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.18 2015/03/03 09:16:56 nonaka Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -5400,7 +5400,8 @@
 
        /* init amrr */
        ieee80211_amrr_node_init(&sc->sc_amrr, &in->in_amn);
-       ni->ni_txrate = nrates-1;
+       /* Start at lowest available bit-rate, AMRR will raise. */
+       ni->ni_txrate = 0;
 }
 
 static int



Home | Main Index | Thread Index | Old Index