From 8a56b3adbeec48cd5b928d3bc3e445dd68237973 Mon Sep 17 00:00:00 2001 From: kevlo Date: Sat, 11 Jan 2014 14:48:16 +0000 Subject: Fix a logic error when checking if Tx power entries are greater than 31. --- sys/dev/usb/wlan/if_run.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/usb/wlan/if_run.c') diff --git a/sys/dev/usb/wlan/if_run.c b/sys/dev/usb/wlan/if_run.c index 38b2ae3..8541a7c 100644 --- a/sys/dev/usb/wlan/if_run.c +++ b/sys/dev/usb/wlan/if_run.c @@ -1650,12 +1650,12 @@ run_rt3593_get_txpower(struct run_softc *sc) } /* Fix broken Tx power entries. */ for (i = 0; i < 14; i++) { - if ((sc->txpow1[i] & 0x1f) > 31) + if (sc->txpow1[i] > 31) sc->txpow1[i] = 5; - if ((sc->txpow2[i] & 0x1f) > 31) + if (sc->txpow2[i] > 31) sc->txpow2[i] = 5; if (sc->ntxchains == 3) { - if ((sc->txpow3[i] & 0x1f) > 31) + if (sc->txpow3[i] > 31) sc->txpow3[i] = 5; } } -- cgit v1.1