diff options
author | 2017-05-08 18:19:02 +0000 | |
---|---|---|
committer | 2017-05-08 18:19:02 +0000 | |
commit | c2c8be242c38c127684833f8036bdf881955a1f5 (patch) | |
tree | 1144641137f511104b3c0496bfd22e3f8abd5043 | |
parent | Fix a possible NULL pointer deference on icmp6 echo reply caught by (diff) | |
download | wireguard-openbsd-c2c8be242c38c127684833f8036bdf881955a1f5.tar.xz wireguard-openbsd-c2c8be242c38c127684833f8036bdf881955a1f5.zip |
8192C is the only MIMO chip supported by this driver, all others are 1T1R.
This diff corrects dmesg to properly show that all others are 1T1R, since right
now it only applies to 8188C and all others incorrectly display 0T0R.
hint & OK stsp@
-rw-r--r-- | sys/dev/ic/rtwn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/rtwn.c b/sys/dev/ic/rtwn.c index 18426e45547..8836a60cc04 100644 --- a/sys/dev/ic/rtwn.c +++ b/sys/dev/ic/rtwn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtwn.c,v 1.19 2017/02/12 01:01:39 jsg Exp $ */ +/* $OpenBSD: rtwn.c,v 1.20 2017/05/08 18:19:02 mestre Exp $ */ /*- * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> @@ -154,7 +154,7 @@ rtwn_attach(struct device *pdev, struct rtwn_softc *sc, uint32_t chip_type) if (sc->chip & RTWN_CHIP_92C) { sc->ntxchains = (sc->chip & RTWN_CHIP_92C_1T2R) ? 1 : 2; sc->nrxchains = 2; - } else if (sc->chip & RTWN_CHIP_88C) { + } else { sc->ntxchains = 1; sc->nrxchains = 1; } |