Fix typos that broke duration calculations on protection frames. A similar
fix was done for ral(4) long ago and it must be copy-and-paste bugs. Found by: clang
This commit is contained in:
parent
37f5dbdfec
commit
0f817de766
@ -1051,7 +1051,7 @@ rum_sendprot(struct rum_softc *sc,
|
||||
ackrate = ieee80211_ack_rate(ic->ic_rt, rate);
|
||||
|
||||
isshort = (ic->ic_flags & IEEE80211_F_SHPREAMBLE) != 0;
|
||||
dur = ieee80211_compute_duration(ic->ic_rt, pktlen, rate, isshort);
|
||||
dur = ieee80211_compute_duration(ic->ic_rt, pktlen, rate, isshort)
|
||||
+ ieee80211_ack_duration(ic->ic_rt, rate, isshort);
|
||||
flags = RT2573_TX_MORE_FRAG;
|
||||
if (prot == IEEE80211_PROT_RTSCTS) {
|
||||
|
@ -3179,7 +3179,7 @@ run_sendprot(struct run_softc *sc,
|
||||
ackrate = ieee80211_ack_rate(ic->ic_rt, rate);
|
||||
|
||||
isshort = (ic->ic_flags & IEEE80211_F_SHPREAMBLE) != 0;
|
||||
dur = ieee80211_compute_duration(ic->ic_rt, pktlen, rate, isshort);
|
||||
dur = ieee80211_compute_duration(ic->ic_rt, pktlen, rate, isshort)
|
||||
+ ieee80211_ack_duration(ic->ic_rt, rate, isshort);
|
||||
wflags = RT2860_TX_FRAG;
|
||||
|
||||
|
@ -1157,7 +1157,7 @@ ural_sendprot(struct ural_softc *sc,
|
||||
ackrate = ieee80211_ack_rate(ic->ic_rt, rate);
|
||||
|
||||
isshort = (ic->ic_flags & IEEE80211_F_SHPREAMBLE) != 0;
|
||||
dur = ieee80211_compute_duration(ic->ic_rt, pktlen, rate, isshort);
|
||||
dur = ieee80211_compute_duration(ic->ic_rt, pktlen, rate, isshort)
|
||||
+ ieee80211_ack_duration(ic->ic_rt, rate, isshort);
|
||||
flags = RAL_TX_RETRY(7);
|
||||
if (prot == IEEE80211_PROT_RTSCTS) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user