Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/dev/usb Alter the number of tx/rx chains for CU an...



details:   https://anonhg.NetBSD.org/src-all/rev/7979ce2cb228
branches:  trunk
changeset: 378052:7979ce2cb228
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Wed Apr 26 22:51:47 2023 +1000

description:
Alter the number of tx/rx chains for CU and EU variants.

These settings obtained the greatest throughput.

XXX Found by trial and error.

diffstat:

 sys/dev/usb/if_urtwn.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (17 lines):

diff -r c711ee5f282c -r 7979ce2cb228 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Wed Apr 26 22:49:50 2023 +1000
+++ b/sys/dev/usb/if_urtwn.c    Wed Apr 26 22:51:47 2023 +1000
@@ -466,10 +466,10 @@ urtwn_attach( device_t parent, device_t 
        /* Determine number of Tx/Rx chains. */
        if (sc->chip & URTWN_CHIP_92C) {
                sc->ntxchains = (sc->chip & URTWN_CHIP_92C_1T2R) ? 1 : 2;
-               sc->nrxchains = 2;
+               sc->nrxchains = 1;
        } else if (sc->chip & URTWN_CHIP_92EU) {
-               sc->ntxchains = 2;
-               sc->nrxchains = 2;
+               sc->ntxchains = 3;
+               sc->nrxchains = 1;
        } else {
                sc->ntxchains = 1;
                sc->nrxchains = 1;



Home | Main Index | Thread Index | Old Index