summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2015-04-08 21:44:17 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2015-04-08 21:44:17 +0000
commit59e80e2eddd2aee933fab8de3f45708ef6273e9c (patch)
treeb454e858843e90109c5f61d7aa20a3d2871bb05c /usr.sbin/tcpdump
parentaa19282ca46f957f314eb7149767e0c9a7b26c92 (diff)
Teach the 802.11 printer about Channel Switch Announcements (advertised by
an AP in beacons in the run-up to a channel switch, either for radar avoidance, or for frequency management). ok stsp@ We don't support these in net80211 yet (as pointed out by stsp a few days ago) but it's useful to at least have a way to debug why your connection is getting knocked down!
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/print-802_11.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/print-802_11.c b/usr.sbin/tcpdump/print-802_11.c
index 5f81f45ebca..73b949eef3f 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.16 2015/01/16 06:40:21 deraadt Exp $ */
+/* $OpenBSD: print-802_11.c,v 1.17 2015/04/08 21:44:16 sthen Exp $ */
/*
* Copyright (c) 2005 Reyk Floeter <reyk@openbsd.org>
@@ -323,6 +323,10 @@ ieee80211_elements(struct ieee80211_frame *wh, u_int flen)
if (vflag)
ieee80211_print_element(data, len);
break;
+ case IEEE80211_ELEMID_CSA:
+ printf(", csa (chan %u count %u%s)", data[1], data[2],
+ (data[0] == 1) ? " noTX" : "");
+ break;
case IEEE80211_ELEMID_ERP:
printf(", erp");
if (vflag)