Module Name: src Committed By: christos Date: Sun Jan 17 22:32:09 UTC 2016
Modified Files: src/sys/dev/usb: if_urtwn.c Log Message: PR/50672: Andriy Voskoboinyk: fix write to the wrong register. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/sys/dev/usb/if_urtwn.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/if_urtwn.c diff -u src/sys/dev/usb/if_urtwn.c:1.39 src/sys/dev/usb/if_urtwn.c:1.40 --- src/sys/dev/usb/if_urtwn.c:1.39 Thu Dec 10 09:28:04 2015 +++ src/sys/dev/usb/if_urtwn.c Sun Jan 17 17:32:09 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: if_urtwn.c,v 1.39 2015/12/10 14:28:04 leot Exp $ */ +/* $NetBSD: if_urtwn.c,v 1.40 2016/01/17 22:32:09 christos Exp $ */ /* $OpenBSD: if_urtwn.c,v 1.42 2015/02/10 23:25:46 mpi Exp $ */ /*- @@ -23,7 +23,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.39 2015/12/10 14:28:04 leot Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.40 2016/01/17 22:32:09 christos Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -4562,7 +4562,7 @@ urtwn_chip_stop(struct urtwn_softc *sc) reg = urtwn_read_2(sc, R92C_GPIO_MUXCFG + 2) & ~0x00f0; reg |= (((reg & 0x000f) << 4) | 0x0780); - urtwn_write_2(sc, R92C_GPIO_PIN_CTRL+2, reg); + urtwn_write_2(sc, R92C_GPIO_PIN_MUXCFG + 2, reg); /* Disable LED0 & 1 */ urtwn_write_2(sc, R92C_LEDCFG0, 0x8080);