diff options
author | 2015-03-02 13:53:41 +0000 | |
---|---|---|
committer | 2015-03-02 13:53:41 +0000 | |
commit | 1cd3b7b831f992c71f8ca46c2060fcd13c1137fc (patch) | |
tree | a58e52e65d3597c4eeb89f5cd473ca681df572cc | |
parent | workaround for interrupt coalescing bug not needed on 7265 (diff) | |
download | wireguard-openbsd-1cd3b7b831f992c71f8ca46c2060fcd13c1137fc.tar.xz wireguard-openbsd-1cd3b7b831f992c71f8ca46c2060fcd13c1137fc.zip |
match iwn and init txrate at lowest available bit-rate
ok stsp@ phessler@
-rw-r--r-- | sys/dev/pci/if_iwm.c | 5 |
1 files 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 <info@genua.de> @@ -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 |