summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2016-12-18 10:38:02 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2016-12-18 10:38:02 +0000
commit36f99d0b51ce341dd3f5639b0608f1e2e5d8aa94 (patch)
tree949e6e1461cf9d0a676bf121c8e7c06abd4d2620
parent5057be34f0f18fb6a31daa1d060652c947941908 (diff)
Make tcpdump show "11n" for a channel which is used in 11n mode.
ok mpi@
-rw-r--r--usr.sbin/tcpdump/print-802_11.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-802_11.c b/usr.sbin/tcpdump/print-802_11.c
index aa3777aa4dc..73332b0d48d 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.35 2016/11/19 19:35:46 stsp Exp $ */
+/* $OpenBSD: print-802_11.c,v 1.36 2016/12/18 10:38:01 stsp Exp $ */
/*
* Copyright (c) 2005 Reyk Floeter <reyk@openbsd.org>
@@ -1101,7 +1101,12 @@ ieee802_11_radio_if_print(u_char *user, const struct pcap_pkthdr *h,
printf(", chan %u", ieee80211_any2ieee(freq, flags));
- if (flags & IEEE80211_CHAN_DYN &&
+ if (flags & IEEE80211_CHAN_HT)
+ printf(", 11n");
+ else if (flags & IEEE80211_CHAN_DYN &&
+ flags & IEEE80211_CHAN_2GHZ)
+ printf(", 11g");
+ else if (flags & IEEE80211_CHAN_DYN &&
flags & IEEE80211_CHAN_2GHZ)
printf(", 11g");
else if (flags & IEEE80211_CHAN_CCK &&