diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-03-21 22:12:07 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-03-21 22:12:07 +0000 |
commit | 9e84a29559e17e7ae7ef578ff556f97af16c227b (patch) | |
tree | dcdfe4c0c76a9e8f10b4a2feb737b1fdb147198a /sys/dev/usb | |
parent | 3398b845bea90b6e21e6ee578d08773e2f2575d4 (diff) |
Replace magic number in urtwn(4) with corresponding macro from ic/r92creg.h.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/if_urtwn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_urtwn.c b/sys/dev/usb/if_urtwn.c index 8cc0c6c2d64..9ea0cbae5c2 100644 --- a/sys/dev/usb/if_urtwn.c +++ b/sys/dev/usb/if_urtwn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_urtwn.c,v 1.62 2016/03/09 22:07:46 stsp Exp $ */ +/* $OpenBSD: if_urtwn.c,v 1.63 2016/03/21 22:12:06 stsp Exp $ */ /*- * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> @@ -1365,7 +1365,7 @@ urtwn_set_led(struct urtwn_softc *sc, int led, int on) if (led == URTWN_LED_LINK) { if (sc->chip & URTWN_CHIP_88E) { reg = urtwn_read_1(sc, R92C_LEDCFG2) & 0xf0; - urtwn_write_1(sc, R92C_LEDCFG2, reg | 0x60); + urtwn_write_1(sc, R92C_LEDCFG2, reg | R92C_LEDCFG2_EN); if (!on) { reg = urtwn_read_1(sc, R92C_LEDCFG2) & 0x90; urtwn_write_1(sc, R92C_LEDCFG2, |