summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ral.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2005-03-11 20:25:53 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2005-03-11 20:25:53 +0000
commita083bdf2fc44ceec58cf54b39cf71cfa2d06710c (patch)
tree75fb18c6e872a0a5d2e828986504059eeb4e8789 /sys/dev/ic/ral.c
parentf8ffde09d8153ba755b27f8af224276f2784244b (diff)
distinguish null data frames from management frames.
Diffstat (limited to 'sys/dev/ic/ral.c')
-rw-r--r--sys/dev/ic/ral.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ic/ral.c b/sys/dev/ic/ral.c
index 60efec7658f..eefac96f946 100644
--- a/sys/dev/ic/ral.c
+++ b/sys/dev/ic/ral.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ral.c,v 1.26 2005/03/11 20:22:57 damien Exp $ */
+/* $OpenBSD: ral.c,v 1.27 2005/03/11 20:25:52 damien Exp $ */
/*-
* Copyright (c) 2005
@@ -1670,7 +1670,9 @@ ral_tx_mgt(struct ral_softc *sc, struct mbuf *m0, struct ieee80211_node *ni)
*(uint16_t *)wh->i_dur = htole16(d0.d_data_dur);
- if ((wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) ==
+ if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) ==
+ IEEE80211_FC0_TYPE_MGT &&
+ (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) ==
IEEE80211_FC0_SUBTYPE_PROBE_RESP)
desc->flags |= htole32(RAL_TX_INSERT_TIMESTAMP);
}