From 2e0f9211b0fa96a6b1cbb501e9a19b7b81ffd98d Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Mon, 2 Mar 2015 13:53:42 +0000 Subject: match iwn and init txrate at lowest available bit-rate ok stsp@ phessler@ --- sys/dev/pci/if_iwm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index 24c38811776..cb60bfa19df 100644 --- a/sys/dev/pci/if_iwm.c +++ b/sys/dev/pci/if_iwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwm.c,v 1.25 2015/03/02 13:51:10 jsg Exp $ */ +/* $OpenBSD: if_iwm.c,v 1.26 2015/03/02 13:53:41 jsg Exp $ */ /* * Copyright (c) 2014 genua mbh @@ -5282,7 +5282,8 @@ iwm_setrates(struct iwm_node *in) /* 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; } int -- cgit v1.2.3