diff options
author | Kevin Lo <kevlo@cvs.openbsd.org> | 2017-09-22 13:44:01 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@cvs.openbsd.org> | 2017-09-22 13:44:01 +0000 |
commit | 83dbdb75beecdbd407e86dcdd0a27271177241da (patch) | |
tree | bcdd3a8465c9e1e3379076055eca6f6eb6f963eb /sys/dev/ic/atw.c | |
parent | b2ae0df76bfe648925fb865cf8dfec13f8e906ac (diff) |
Use ieee80211_has_addr4() inline function where possible.
ok stsp@
Diffstat (limited to 'sys/dev/ic/atw.c')
-rw-r--r-- | sys/dev/ic/atw.c | 4 |
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); |