xref: /freebsd/usr.sbin/wlandebug/wlandebug.8 (revision 031beb4e239bfce798af17f5fe8dba8bcaf13d99)
1.\" Copyright (c) 2007 Sam Leffler, Errno Consulting
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\"
13.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD$
26.\"
27.Dd August 17, 2015
28.Dt WLANDEBUG 8
29.Os
30.Sh NAME
31.Nm wlandebug
32.Nd "set/query 802.11 wireless debugging messages"
33.Sh SYNOPSIS
34.Nm
35.Op Fl d | Fl i Ar ifnet
36.Op Fl flag|+flag Ar ...
37.Sh DESCRIPTION
38The
39.Nm
40command is a tool for enabling and disabling
41debugging messages in the
42.Xr wlan 4
43module.
44Running
45.Nm
46without any options will display the current messages
47enabled for the specified network interface
48(by default, ``wlan0').
49The default debugging level for new interfaces can be set
50by specifying the
51.Fl d
52option.
53When run as the super-user
54.Nm
55can be used to enable and/or disable debugging messages.
56.Pp
57To enable debugging messages of a certain
58.Ar type
59use
60.Ar +type ;
61to disable such messages use
62.Ar -type .
63Multiple messages can be enabled and disabled with a single command.
64.Pp
65Messages are organized in the following groups:
66.Bl -tag -width ".Ar dumppkts"
67.It Ar debug
68general debugging facilities; equivalent to setting the debug
69parameter with
70.Xr ifconfig 8 .
71.It Ar dumppkts
72dump packet contents on transmit and receive.
73.It Ar crypto
74crypto-related work.
75.It Ar input
76errors encountered during input handling.
77.It Ar xrate
78extended rate set handling (for 802.11g).
79.It Ar elemid
80information element processing in 802.11 management frames.
81.It Ar node
82management of per-station state.
83.It Ar assoc
84802.11 station association processing; particularly useful to
85see when stations join and leave a BSS.
86.It Ar auth
87802.11 station authentication processing.
88.It Ar scan
89scanning operation; especially useful for debugging problems
90with not locating an access point.
91.It Ar output
92errors encountered during output handling.
93.It Ar state
94.Xr wlan 4
95state machine operation.
96.It Ar power
97802.11 power save operation; in hostap mode this enables
98copious information about buffered frames for stations operating
99in power save mode.
100.It Ar hwmp
101trace operation of Hybrid Wireless Mesh Protocol processing.
102.It Ar dot1xsm
103802.1x state machine operation; not presently meaningful as 802.1x protocol
104support is implemented in user mode by the
105.Xr hostapd 8
106program.
107.It Ar radius
108radius backend operation as it relates to 802.1x operation;
109not presently meaningful as 802.1x protocol
110support is implemented in user mode by the
111.Xr hostapd 8
112program.
113.It Ar raddump
114dump packets exchanged with the radius backend for 802.1x operation;
115not presently meaningful as 802.1x protocol
116support is implemented in user mode by the
117.Xr hostapd 8
118program.
119.It Ar mesh
120trace operation of 802.11s mesh protocol processing.
121.It Ar wpa
122trace operation of the WPA protocol;
123only partly meaningful as WPA protocol
124support is mostly implemented in user mode by the
125.Xr hostapd 8
126and
127.Xr wpa_supplicant 8
128programs.
129.It Ar acl
130trace operation of the Access Control List (ACL) support; see
131.Xr wlan_acl 4
132for more details.
133.It Ar wme
134trace operation of WME/WMM protocol processing.
135.It Ar superg
136trace operation of Atheros SuperG protocol processing.
137.It Ar doth
138trace operation of IEEE 802.11h protocol processing.
139.It Ar inact
140trace station inactivity processing; in particular,
141show when stations associated to an access point are dropped due to
142inactivity.
143.It Ar roam
144trace station mode roaming between access points.
145.It Ar rate
146trace transmit rate control operation.
147.El
148.Sh EXAMPLES
149The following might be used to debug basic station mode operation:
150.Pp
151.Dl "wlandebug -i wlan1 scan+auth+assoc"
152.Pp
153it enables debug messages while scanning, authenticating to
154an access point, and associating to an access point.
155.Sh SEE ALSO
156.Xr ifconfig 8
157.Pp
158The
159.Pa /usr/src/tools
160directory contains some utilities that might be relevant to debug wireless
161issues.
162.Sh NOTES
163Different wireless drivers support different debugging messages.
164Drivers such as
165.Xr ath 4
166and
167.Xr ral 4
168that depend on the
169.Xr wlan 4
170module for 802.11 protocol processing typically support
171most of the debugging messages while devices that
172implement parts of the 802.11 protocol in firmware do not.
173.Pp
174Some debugging messages are no longer meaningful
175because protocol processing has moved from the operating
176system to user mode programs such as
177.Xr hostapd 8
178and
179.Xr wpa_supplicant 8 .
180