summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump/print-802_11.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2015-10-13 14:36:16 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2015-10-13 14:36:16 +0000
commit934ae1e0ffa31d0a7690dc93adb8d2b749ff40cf (patch)
tree92b70f07b022b3d23402f66285b15ca6395efe22 /usr.sbin/tcpdump/print-802_11.c
parent711b8f2fec9b18854e7059b08f74bbb3837dd41b (diff)
Don't use exp2f(), it breaks build on vax. Use a shift instead.
reported by deraadt@
Diffstat (limited to 'usr.sbin/tcpdump/print-802_11.c')
-rw-r--r--usr.sbin/tcpdump/print-802_11.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-802_11.c b/usr.sbin/tcpdump/print-802_11.c
index 8438334270c..01a0770a85e 100644
--- a/usr.sbin/tcpdump/print-802_11.c
+++ b/usr.sbin/tcpdump/print-802_11.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-802_11.c,v 1.26 2015/10/12 13:01:50 stsp Exp $ */
+/* $OpenBSD: print-802_11.c,v 1.27 2015/10/13 14:36:15 stsp Exp $ */
/*
* Copyright (c) 2005 Reyk Floeter <reyk@openbsd.org>
@@ -33,7 +33,6 @@
#include <pcap.h>
#include <stdio.h>
#include <string.h>
-#include <math.h>
#include "addrtoname.h"
#include "interface.h"
@@ -364,7 +363,7 @@ ieee80211_print_htcaps(u_int8_t *data, u_int len)
if ((ampdu & IEEE80211_AMPDU_PARAM_LE) >= 0 &&
(ampdu & IEEE80211_AMPDU_PARAM_LE) <= 3)
printf(",A-MPDU max %d",
- (int)(exp2f(13 + (ampdu & IEEE80211_AMPDU_PARAM_LE)) - 1));
+ (1 << (13 + (ampdu & IEEE80211_AMPDU_PARAM_LE))) - 1);
/* A-MPDU start spacing */
if (ampdu & IEEE80211_AMPDU_PARAM_SS) {