fix typo's that broke duration calculation on protection frames

This commit is contained in:
Sam Leffler 2008-05-11 22:11:01 +00:00
parent ef4d480ced
commit 6c5c43974e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178948
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {