diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2017-09-23 13:57:42 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2017-09-23 13:57:42 +0000 |
commit | 95be7fac7ccbb989bceabc2e4138a34eadf48ec2 (patch) | |
tree | 876811f8e6f942241a69bee1bb188e3f3773ac8d /sys/dev/ic | |
parent | df66c2f24b27ce229f3ae643ffdb3c2f08d0069b (diff) |
Fix build on octeon by reverting two cosmetic changes in rtwn.c r1.34.
Compiler complained:
warning: large integer implicitly truncated to unsigned type
No functional change.
reported by & ok visa@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/rtwn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/rtwn.c b/sys/dev/ic/rtwn.c index 5dab9b5f2d7..adcd9ecef83 100644 --- a/sys/dev/ic/rtwn.c +++ b/sys/dev/ic/rtwn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtwn.c,v 1.34 2017/09/22 13:41:56 kevlo Exp $ */ +/* $OpenBSD: rtwn.c,v 1.35 2017/09/23 13:57:41 stsp Exp $ */ /*- * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> @@ -1051,7 +1051,7 @@ rtwn_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg) rtwn_write_2(sc, R92C_RXFLTMAP2, 0xffff); /* Flush all AC queues. */ - rtwn_write_1(sc, R92C_TXPAUSE, ~R92C_TXPAUSE_ALL); + rtwn_write_1(sc, R92C_TXPAUSE, 0x00); /* Set beacon interval. */ rtwn_write_2(sc, R92C_BCN_INTERVAL, ni->ni_intval); @@ -2572,7 +2572,7 @@ rtwn_lc_calib(struct rtwn_softc *sc) rtwn_rf_write(sc, i, R92C_RF_AC, rf_ac[i]); } else { /* Unblock all Tx queues. */ - rtwn_write_1(sc, R92C_TXPAUSE, ~R92C_TXPAUSE_ALL); + rtwn_write_1(sc, R92C_TXPAUSE, 0x00); } } |