EVK-LILY-W1 - User Guide
UBX-15030290 - R04
Software
Page 22 of 25
The value of
drvdbg
can be given as a module parameter when the driver is loaded, by writing to the
proc file system’s
debug
file or by setting it via the
iwpriv or mlanutl tool.
Listing 10: Debug examples
bit 0: MMSG PRINTM(MMSG,...)
bit 1: MFATAL PRINTM(MFATAL,...)
bit 2: MERROR PRINTM(MERROR,...)
bit 3: MDATA PRINTM(MDATA,...)
bit 4: MCMND PRINTM(MCMND,...)
bit 5: MEVENT
PRINTM(MEVENT,...)
bit 6: MINTR PRINTM(MINTR,...)
bit 7: MIOCTL PRINTM(MIOCTL,...)
...
bit 16: MDAT_D PRINTM(MDAT_D,...), DBG_HEXDUMP(MDAT_D,...)
bit 17: MCMD_D PRINTM(MCMD_D,...), DBG_HEXDUMP(MCMD_D,...)
bit 18: MEVT_D PRINTM(MEVT_D,...), DBG_HEXDUMP(MEVT_D,...)
bit 19: MFW_D PRINTM(MFW_D,...), DBG_HEXDUMP(MFW_D,...)
bit 20: MIF_D PRINTM(MIF_D,...), DBG_HEXDUMP(MIF_D,...)
...
bit 28: MENTRY PRINTM(MENTRY,...), ENTER(), LEAVE()
bit 29: MWARN PRINTM(MWARN,...)
bit 30: MINFO PRINTM(MINFO,...)
iwpriv mlan0 drvdbg
# Get the current driver debug mask
iwpriv mlan0 drvdbg 0
# Disable all debug messages
echo "drvdbg=0x7" > /proc/mwlan/mlan0/debug
# enable MMSG, MFATAL and MERROR
mlanutl mlan0 drvdbg
-1
# Enable all debug messages