Hi tech@
During stsp@'s effort to merge rtwn(4) and urtwn(4), more specifically since
r1.6 of /cvs/src/sys/dev/ic/rtwn.c, my urtwn(4) device started showing in dmesg
with a capable baseband of 0T0R (only noticed it today!):
urtwn0: MAC/BB RTL8188EU, RF 6052 0T0R, address xx:xx:xx:xx:xx:xx
Since according to urtwn(4)'s manpage both RTL8188C and RTL8188E chips have a
1T1R capable baseband please find below a patch to correct this.
OK?
Index: rtwn.c
===================================================================
RCS file: /cvs/src/sys/dev/ic/rtwn.c,v
retrieving revision 1.19
diff -u -p -u -r1.19 rtwn.c
--- rtwn.c 12 Feb 2017 01:01:39 -0000 1.19
+++ rtwn.c 8 May 2017 16:16:57 -0000
@@ -154,7 +154,7 @@ rtwn_attach(struct device *pdev, struct
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 if (sc->chip & RTWN_CHIP_88C || sc->chip & RTWN_CHIP_88E) {
sc->ntxchains = 1;
sc->nrxchains = 1;
}