xref: /freebsd/usr.sbin/wlandebug/wlandebug.8 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
130a270b4SSam Leffler.\" Copyright (c) 2007 Sam Leffler, Errno Consulting
230a270b4SSam Leffler.\" All rights reserved.
330a270b4SSam Leffler.\"
430a270b4SSam Leffler.\" Redistribution and use in source and binary forms, with or without
530a270b4SSam Leffler.\" modification, are permitted provided that the following conditions
630a270b4SSam Leffler.\" are met:
730a270b4SSam Leffler.\" 1. Redistributions of source code must retain the above copyright
830a270b4SSam Leffler.\"    notice, this list of conditions and the following disclaimer.
930a270b4SSam Leffler.\" 2. Redistributions in binary form must reproduce the above copyright
1030a270b4SSam Leffler.\"    notice, this list of conditions and the following disclaimer in the
1130a270b4SSam Leffler.\"    documentation and/or other materials provided with the distribution.
1230a270b4SSam Leffler.\"
1330a270b4SSam Leffler.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1430a270b4SSam Leffler.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1530a270b4SSam Leffler.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1630a270b4SSam Leffler.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1730a270b4SSam Leffler.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1830a270b4SSam Leffler.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1930a270b4SSam Leffler.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2030a270b4SSam Leffler.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2130a270b4SSam Leffler.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2230a270b4SSam Leffler.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2330a270b4SSam Leffler.\" SUCH DAMAGE.
2430a270b4SSam Leffler.\"
2550411184SGleb Smirnoff.Dd August 17, 2015
2630a270b4SSam Leffler.Dt WLANDEBUG 8
2730a270b4SSam Leffler.Os
2830a270b4SSam Leffler.Sh NAME
2930a270b4SSam Leffler.Nm wlandebug
3030a270b4SSam Leffler.Nd "set/query 802.11 wireless debugging messages"
3130a270b4SSam Leffler.Sh SYNOPSIS
3230a270b4SSam Leffler.Nm
33433b4c16SAndrew Thompson.Op Fl d | Fl i Ar ifnet
3430a270b4SSam Leffler.Op Fl flag|+flag Ar ...
3530a270b4SSam Leffler.Sh DESCRIPTION
3630a270b4SSam LefflerThe
3730a270b4SSam Leffler.Nm
3830a270b4SSam Lefflercommand is a tool for enabling and disabling
3930a270b4SSam Lefflerdebugging messages in the
4030a270b4SSam Leffler.Xr wlan 4
4130a270b4SSam Lefflermodule.
4230a270b4SSam LefflerRunning
4330a270b4SSam Leffler.Nm
4430a270b4SSam Lefflerwithout any options will display the current messages
4530a270b4SSam Lefflerenabled for the specified network interface
4650411184SGleb Smirnoff(by default, ``wlan0').
47433b4c16SAndrew ThompsonThe default debugging level for new interfaces can be set
48433b4c16SAndrew Thompsonby specifying the
491bf8d630SAndrew Thompson.Fl d
50433b4c16SAndrew Thompsonoption.
5130a270b4SSam LefflerWhen run as the super-user
5230a270b4SSam Leffler.Nm
5330a270b4SSam Lefflercan be used to enable and/or disable debugging messages.
5430a270b4SSam Leffler.Pp
5530a270b4SSam LefflerTo enable debugging messages of a certain
5630a270b4SSam Leffler.Ar type
5730a270b4SSam Leffleruse
5830a270b4SSam Leffler.Ar +type ;
5930a270b4SSam Lefflerto disable such messages use
6030a270b4SSam Leffler.Ar -type .
6180ffc9b7SJoel DahlMultiple messages can be enabled and disabled with a single command.
6230a270b4SSam Leffler.Pp
6330a270b4SSam LefflerMessages are organized in the following groups:
6430a270b4SSam Leffler.Bl -tag -width ".Ar dumppkts"
6530a270b4SSam Leffler.It Ar debug
6680ffc9b7SJoel Dahlgeneral debugging facilities; equivalent to setting the debug
6730a270b4SSam Lefflerparameter with
6830a270b4SSam Leffler.Xr ifconfig 8 .
6930a270b4SSam Leffler.It Ar dumppkts
7030a270b4SSam Lefflerdump packet contents on transmit and receive.
7130a270b4SSam Leffler.It Ar crypto
7230a270b4SSam Lefflercrypto-related work.
7330a270b4SSam Leffler.It Ar input
7430a270b4SSam Lefflererrors encountered during input handling.
7530a270b4SSam Leffler.It Ar xrate
7630a270b4SSam Lefflerextended rate set handling (for 802.11g).
7730a270b4SSam Leffler.It Ar elemid
7830a270b4SSam Lefflerinformation element processing in 802.11 management frames.
7930a270b4SSam Leffler.It Ar node
8030a270b4SSam Lefflermanagement of per-station state.
8130a270b4SSam Leffler.It Ar assoc
8230a270b4SSam Leffler802.11 station association processing; particularly useful to
8330a270b4SSam Lefflersee when stations join and leave a BSS.
8430a270b4SSam Leffler.It Ar auth
8530a270b4SSam Leffler802.11 station authentication processing.
8630a270b4SSam Leffler.It Ar scan
8730a270b4SSam Lefflerscanning operation; especially useful for debugging problems
8830a270b4SSam Lefflerwith not locating an access point.
8930a270b4SSam Leffler.It Ar output
9030a270b4SSam Lefflererrors encountered during output handling.
9130a270b4SSam Leffler.It Ar state
9230a270b4SSam Leffler.Xr wlan 4
9330a270b4SSam Lefflerstate machine operation.
9430a270b4SSam Leffler.It Ar power
9530a270b4SSam Leffler802.11 power save operation; in hostap mode this enables
9630a270b4SSam Lefflercopious information about buffered frames for stations operating
9730a270b4SSam Lefflerin power save mode.
98412c4395SSam Leffler.It Ar hwmp
99412c4395SSam Lefflertrace operation of Hybrid Wireless Mesh Protocol processing.
10030a270b4SSam Leffler.It Ar dot1xsm
10130a270b4SSam Leffler802.1x state machine operation; not presently meaningful as 802.1x protocol
10230a270b4SSam Lefflersupport is implemented in user mode by the
10330a270b4SSam Leffler.Xr hostapd 8
10430a270b4SSam Lefflerprogram.
10530a270b4SSam Leffler.It Ar radius
10630a270b4SSam Lefflerradius backend operation as it relates to 802.1x operation;
10730a270b4SSam Lefflernot presently meaningful as 802.1x protocol
10830a270b4SSam Lefflersupport is implemented in user mode by the
10930a270b4SSam Leffler.Xr hostapd 8
11030a270b4SSam Lefflerprogram.
11130a270b4SSam Leffler.It Ar raddump
11230a270b4SSam Lefflerdump packets exchanged with the radius backend for 802.1x operation;
11330a270b4SSam Lefflernot presently meaningful as 802.1x protocol
11430a270b4SSam Lefflersupport is implemented in user mode by the
11530a270b4SSam Leffler.Xr hostapd 8
11630a270b4SSam Lefflerprogram.
117412c4395SSam Leffler.It Ar mesh
118412c4395SSam Lefflertrace operation of 802.11s mesh protocol processing.
11930a270b4SSam Leffler.It Ar wpa
12030a270b4SSam Lefflertrace operation of the WPA protocol;
12130a270b4SSam Leffleronly partly meaningful as WPA protocol
12280ffc9b7SJoel Dahlsupport is mostly implemented in user mode by the
12330a270b4SSam Leffler.Xr hostapd 8
12430a270b4SSam Lefflerand
12530a270b4SSam Leffler.Xr wpa_supplicant 8
12630a270b4SSam Lefflerprograms.
12730a270b4SSam Leffler.It Ar acl
12830a270b4SSam Lefflertrace operation of the Access Control List (ACL) support; see
12930a270b4SSam Leffler.Xr wlan_acl 4
13030a270b4SSam Lefflerfor more details.
13130a270b4SSam Leffler.It Ar wme
13230a270b4SSam Lefflertrace operation of WME/WMM protocol processing.
13330a270b4SSam Leffler.It Ar superg
13430a270b4SSam Lefflertrace operation of Atheros SuperG protocol processing.
13530a270b4SSam Leffler.It Ar doth
13630a270b4SSam Lefflertrace operation of IEEE 802.11h protocol processing.
13730a270b4SSam Leffler.It Ar inact
13830a270b4SSam Lefflertrace station inactivity processing; in particular,
13930a270b4SSam Lefflershow when stations associated to an access point are dropped due to
14030a270b4SSam Lefflerinactivity.
14130a270b4SSam Leffler.It Ar roam
14230a270b4SSam Lefflertrace station mode roaming between access points.
14330a270b4SSam Leffler.It Ar rate
14430a270b4SSam Lefflertrace transmit rate control operation.
14530a270b4SSam Leffler.El
14630a270b4SSam Leffler.Sh EXAMPLES
14730a270b4SSam LefflerThe following might be used to debug basic station mode operation:
14830a270b4SSam Leffler.Pp
14950411184SGleb Smirnoff.Dl "wlandebug -i wlan1 scan+auth+assoc"
15030a270b4SSam Leffler.Pp
15130a270b4SSam Lefflerit enables debug messages while scanning, authenticating to
15230a270b4SSam Leffleran access point, and associating to an access point.
15330a270b4SSam Leffler.Sh SEE ALSO
154*16b22904SFernando Apesteguía.Xr ifconfig 8
155*16b22904SFernando Apesteguía.Pp
156*16b22904SFernando ApesteguíaThe
157*16b22904SFernando Apesteguía.Pa /usr/src/tools
158*16b22904SFernando Apesteguíadirectory contains some utilities that might be relevant to debug wireless
159*16b22904SFernando Apesteguíaissues.
16030a270b4SSam Leffler.Sh NOTES
16130a270b4SSam LefflerDifferent wireless drivers support different debugging messages.
16230a270b4SSam LefflerDrivers such as
16330a270b4SSam Leffler.Xr ath 4
16430a270b4SSam Lefflerand
16530a270b4SSam Leffler.Xr ral 4
16630a270b4SSam Lefflerthat depend on the
16730a270b4SSam Leffler.Xr wlan 4
16830a270b4SSam Lefflermodule for 802.11 protocol processing typically support
16930a270b4SSam Lefflermost of the debugging messages while devices that
17030a270b4SSam Lefflerimplement parts of the 802.11 protocol in firmware do not.
17130a270b4SSam Leffler.Pp
17230a270b4SSam LefflerSome debugging messages are no longer meaningful
17330a270b4SSam Lefflerbecause protocol processing has moved from the operating
17430a270b4SSam Lefflersystem to user mode programs such as
17530a270b4SSam Leffler.Xr hostapd 8
17630a270b4SSam Lefflerand
17730a270b4SSam Leffler.Xr wpa_supplicant 8 .
178