mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
urtw: fix unused variable assignments.
Append CWmax and retry limitation to tp->maxretry instead of rewriting it (will restore pre-r198194 behavior). Noticed by: pfg, hps Reported by: Coverity CID: 1304937, 1304920
This commit is contained in:
parent
c2d12e5e0d
commit
6fc44742fd
1 changed files with 2 additions and 2 deletions
|
|
@ -1789,8 +1789,8 @@ urtw_tx_start(struct urtw_softc *sc, struct ieee80211_node *ni, struct mbuf *m0,
|
|||
flags |= (urtw_rate2rtl(11) & 0xf) << URTW_TX_FLAG_RTSRATE_SHIFT;
|
||||
tx->flag = htole32(flags);
|
||||
tx->retry = 3; /* CW minimum */
|
||||
tx->retry = 7 << 4; /* CW maximum */
|
||||
tx->retry = URTW_TX_MAXRETRY << 8; /* retry limitation */
|
||||
tx->retry |= 7 << 4; /* CW maximum */
|
||||
tx->retry |= URTW_TX_MAXRETRY << 8; /* retry limitation */
|
||||
m_copydata(m0, 0, m0->m_pkthdr.len, (uint8_t *)(tx + 1));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue