mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 05:43:59 +00:00
fix typo's that broke duration calculation on protection frames
This commit is contained in:
parent
ef4d480ced
commit
6c5c43974e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178948
|
@ -1654,7 +1654,7 @@ rt2560_sendprot(struct rt2560_softc *sc,
|
|||
ackrate = ieee80211_ack_rate(sc->sc_rates, rate);
|
||||
|
||||
isshort = (ic->ic_flags & IEEE80211_F_SHPREAMBLE) != 0;
|
||||
dur = ieee80211_compute_duration(sc->sc_rates, pktlen, rate, isshort);
|
||||
dur = ieee80211_compute_duration(sc->sc_rates, pktlen, rate, isshort)
|
||||
+ ieee80211_ack_duration(sc->sc_rates, rate, isshort);
|
||||
flags = RT2560_TX_MORE_FRAG;
|
||||
if (prot == IEEE80211_PROT_RTSCTS) {
|
||||
|
|
|
@ -1420,7 +1420,7 @@ rt2661_sendprot(struct rt2661_softc *sc, int ac,
|
|||
ackrate = ieee80211_ack_rate(sc->sc_rates, rate);
|
||||
|
||||
isshort = (ic->ic_flags & IEEE80211_F_SHPREAMBLE) != 0;
|
||||
dur = ieee80211_compute_duration(sc->sc_rates, pktlen, rate, isshort);
|
||||
dur = ieee80211_compute_duration(sc->sc_rates, pktlen, rate, isshort)
|
||||
+ ieee80211_ack_duration(sc->sc_rates, rate, isshort);
|
||||
flags = RT2661_TX_MORE_FRAG;
|
||||
if (prot == IEEE80211_PROT_RTSCTS) {
|
||||
|
|
Loading…
Reference in a new issue