If the associated interface is marked for debugging with, for example,
"ifconfig wi0 debug"
then messages describing the operation of the 802.11 protocol will be sent to the console. Complete debugging controls are available using:
where X is the number of the wlan instance and mask is a bit-or of control bits that determine which debugging messages to enable. For example,
enables debugging messages related to scanning for an access point, adhoc neighbor, or an unoccupied channel when operation as an access point. The 80211debug tool provides a more user-friendly mechanism for doing the same thing.
Many drivers will also display the contents of each 802.11 frame sent and received when the interface is marked with both debugging and link2; e.g.,
"ifconfig wi0 debug link2"
Beware however that some management frames may be processed entirely within the device and not be received by the host.
The module name of wlan was used to be compatible with
an(4), ath(4), awi(4), netintro(4), wi(4), wlan_acl(4), wlan_ccmp(4), wlan_tkip(4), wlan_wep(4), wlan_xauth(4)