summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/wlan/if_ural.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2010-06-14 23:01:50 +0000
committerjkim <jkim@FreeBSD.org>2010-06-14 23:01:50 +0000
commit68656772c260aff5f715d68e3e7bb71d95983061 (patch)
tree2544cda29f6a1a1e793a840817fcf00dd269b36f /sys/dev/usb/wlan/if_ural.c
parent56a01a64f1940770768f464f618634eebc392fdf (diff)
downloadFreeBSD-src-68656772c260aff5f715d68e3e7bb71d95983061.zip
FreeBSD-src-68656772c260aff5f715d68e3e7bb71d95983061.tar.gz
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
Diffstat (limited to 'sys/dev/usb/wlan/if_ural.c')
-rw-r--r--sys/dev/usb/wlan/if_ural.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/wlan/if_ural.c b/sys/dev/usb/wlan/if_ural.c
index 6839bcf..54ad7f9 100644
--- a/sys/dev/usb/wlan/if_ural.c
+++ b/sys/dev/usb/wlan/if_ural.c
@@ -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) {
OpenPOWER on IntegriCloud