summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rtw.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2008-08-27 10:29:54 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2008-08-27 10:29:54 +0000
commit058252399cdc56566c0481b7236564d830441438 (patch)
tree4e04a33ef93e8a18f6e99f4c981bb555a4ead6e9 /sys/dev/ic/rtw.c
parent194ec9ce4c5e5c1a373b6511e2934b02d3b8b432 (diff)
fix IEEE80211_RADIOTAP_F_SHORTPRE
Diffstat (limited to 'sys/dev/ic/rtw.c')
-rw-r--r--sys/dev/ic/rtw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/rtw.c b/sys/dev/ic/rtw.c
index 00f0b84bc73..6635b02042b 100644
--- a/sys/dev/ic/rtw.c
+++ b/sys/dev/ic/rtw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtw.c,v 1.69 2008/08/27 09:05:03 damien Exp $ */
+/* $OpenBSD: rtw.c,v 1.70 2008/08/27 10:29:53 damien Exp $ */
/* $NetBSD: rtw.c,v 1.29 2004/12/27 19:49:16 dyoung Exp $ */
/*-
@@ -1273,10 +1273,10 @@ rtw_intr_rx(struct rtw_softc *sc, u_int16_t isr)
rr->rr_tsft =
htole64(((uint64_t)htsfth << 32) | htsftl);
+ rr->rr_flags = 0;
if ((hstat & RTW_RXSTAT_SPLCP) != 0)
- rr->rr_flags = IEEE80211_RADIOTAP_F_SHORTPRE;
+ rr->rr_flags |= IEEE80211_RADIOTAP_F_SHORTPRE;
- rr->rr_flags = 0;
rr->rr_rate = rate;
rr->rr_chan_freq =
htole16(ic->ic_bss->ni_chan->ic_freq);