summaryrefslogtreecommitdiff
path: root/sys/dev/ic/atw.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/atw.c')
-rw-r--r--sys/dev/ic/atw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/atw.c b/sys/dev/ic/atw.c
index 24521747aef..cbf21da7400 100644
--- a/sys/dev/ic/atw.c
+++ b/sys/dev/ic/atw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atw.c,v 1.95 2017/01/22 10:17:37 dlg Exp $ */
+/* $OpenBSD: atw.c,v 1.96 2017/09/22 13:44:00 kevlo Exp $ */
/* $NetBSD: atw.c,v 1.69 2004/07/23 07:07:55 dyoung Exp $ */
/*-
@@ -3468,7 +3468,7 @@ atw_compute_duration(struct ieee80211_frame *wh, int len, uint32_t flags,
int ack, rc;
int firstlen, hdrlen, lastlen, lastlen0, npkt, overlen, paylen;
- if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) == IEEE80211_FC1_DIR_DSTODS)
+ if (ieee80211_has_addr4(wh))
hdrlen = sizeof(struct ieee80211_frame_addr4);
else
hdrlen = sizeof(struct ieee80211_frame);