From 95be7fac7ccbb989bceabc2e4138a34eadf48ec2 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Sat, 23 Sep 2017 13:57:42 +0000 Subject: 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@ --- sys/dev/ic/rtwn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/ic') 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 @@ -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); } } -- cgit v1.2.3