mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Fix a logic error when checking if Tx power entries are greater than 31.
This commit is contained in:
parent
c33e40291b
commit
030dda5d1d
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue