diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2015-06-13 21:15:24 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2015-06-13 21:15:24 +0000 |
commit | 8d7d55a3f1c6c7b0af758a1a3fdddd8afdc7328c (patch) | |
tree | 0e6de70bbe4e3a6e6f792c5a22a26eb37b7c799c /sys | |
parent | 6a6766148db807a069e16c48fca4c3253abbf378 (diff) |
Busy-wait a short while after sending a command to rtwn(4) firmware.
Fixes selection of initial TX rate. We're not stuck at 1Mbit/s anymore.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_rtwn.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/if_rtwn.c b/sys/dev/pci/if_rtwn.c index 6cea7c3d4db..d344e223a78 100644 --- a/sys/dev/pci/if_rtwn.c +++ b/sys/dev/pci/if_rtwn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rtwn.c,v 1.3 2015/06/12 09:30:05 stsp Exp $ */ +/* $OpenBSD: if_rtwn.c,v 1.4 2015/06/13 21:15:23 stsp Exp $ */ /*- * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> @@ -761,6 +761,10 @@ rtwn_fw_cmd(struct rtwn_softc *sc, uint8_t id, const void *buf, int len) rtwn_write_4(sc, R92C_HMEBOX(sc->fwcur), *((uint8_t *)&cmd + 0)); sc->fwcur = (sc->fwcur + 1) % R92C_H2C_NBOX; + + /* Give firmware some time for processing. */ + DELAY(2000); + return (0); } |