summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-802_11.c
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2015-04-08 21:44:16 +0000
committersthen <sthen@openbsd.org>2015-04-08 21:44:16 +0000
commit738acb58dc3bef0eaf6b8f8fb46c9cfbe2db2ffa (patch)
tree5f391606cfd70c5770d4c39b48721b7e6769c0d8 /usr.sbin/tcpdump/print-802_11.c
parentadd a #define for IEEE80211_ELEMID_CSA, 802.11h-2003 Channel Switch Announcement (diff)
downloadwireguard-openbsd-738acb58dc3bef0eaf6b8f8fb46c9cfbe2db2ffa.tar.xz
wireguard-openbsd-738acb58dc3bef0eaf6b8f8fb46c9cfbe2db2ffa.zip
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/print-802_11.c')
-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)