Fix the order of parameters passed to the HT frame duration calculation.
Approved by: re (kib)
This commit is contained in:
parent
3f37fb622c
commit
637b8c6d88
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=225473
@ -199,8 +199,8 @@ static unsigned calc_usecs_unicast_packet(struct ath_softc *sc,
|
||||
ctsduration += rt->info[cix].spAckDuration;
|
||||
|
||||
/* XXX assumes short preamble */
|
||||
/* XXX assumes HT/20; the node info isn't yet available here */
|
||||
ctsduration += ath_hal_pkt_txtime(sc->sc_ah, rt, length, rix, 0, is_ht40);
|
||||
ctsduration += ath_hal_pkt_txtime(sc->sc_ah, rt, length, rix,
|
||||
is_ht40, 0);
|
||||
|
||||
if (cts) /* SIFS + ACK */
|
||||
ctsduration += rt->info[cix].spAckDuration;
|
||||
@ -210,8 +210,9 @@ static unsigned calc_usecs_unicast_packet(struct ath_softc *sc,
|
||||
tt += t_difs;
|
||||
|
||||
/* XXX assumes short preamble */
|
||||
/* XXX assumes HT/20; the node info isn't yet available here */
|
||||
tt += (long_retries+1)*ath_hal_pkt_txtime(sc->sc_ah, rt, length, rix, 0, is_ht40);
|
||||
tt += (long_retries+1)*ath_hal_pkt_txtime(sc->sc_ah, rt, length, rix,
|
||||
is_ht40, 0);
|
||||
|
||||
tt += (long_retries+1)*(t_sifs + rt->info[rix].spAckDuration);
|
||||
|
||||
for (x = 0; x <= short_retries + long_retries; x++) {
|
||||
|
Loading…
Reference in New Issue
Block a user