Hi.
I would like to disable debug log in moal.ko and mlan.ko.
Debug logs are shown here.
[ 20.633064] wlan: SCAN COMPLETED: scanned AP count=42 # warning(4)
[ 20.754332] wlan: mlan0 START SCAN # alert(1)
[ 25.149396] wlan: SCAN COMPLETED: scanned AP count=43
[ 25.271133] wlan: mlan0 START SCAN
[ 29.617621] wlan: SCAN COMPLETED: scanned AP count=42
[ 31.514434] wlan: SCAN COMPLETED: scanned AP count=17
[ 31.536933] wlan: wfd0 START SCAN # alert(1)
[ 35.882825] wlan: SCAN COMPLETED: scanned AP count=36
[ 35.991569] wlan: wfd0 START SCAN
[ 40.337134] wlan: SCAN COMPLETED: scanned AP count=41
[ 40.345986] wlan: sched scan start
:
I read README in moal(kernel-module-nxp89xx) directory.
It lets me know that there are mlanctl for masking debug messages, but I didn't understand how to use it.
How all debug logs are disabled?
Best Regards.
Tanoue.
Solved! Go to Solution.
Hello @tanoue ,
I hope you are doing well.
->To disable the dmesg log please try to load the driver with the parameter drvdbg=0x00000000
Hello @tanoue ,
I hope you are doing well.
->To disable the dmesg log please try to load the driver with the parameter drvdbg=0x00000000
Hi, @Sanket_Parekh .
Thank you for replying.It seems to my solution.
If you know, please let me know because mlanctl is not worked in my enrironment.
What is default drvdbg value?
Hello @tanoue ,
I hope you are doing well.
I'm happy to help you.
->There is a standard drvdbg value that is recommended to use is 0x20037, no default value is there.
->One can set it as per their use case.
->One can check how to set the value of drvdbg in README.txt
As the issue is solved now, Can I Close this case?
Thanks & Regards,
Sanket Parekh
Hi, @Sanket_Parekh
I understand the details of 0x20037 in according to README_WLAN.
mlanutl mlan0 drvdbg 0x20037 : Enable MMSG, MFATAL, MEEROR,MCMND, MEVENT and MCMD_D messages
My "default" means to what message shown whih no drvdbg parameter.
It's answer was written in moal_init.c here.
#ifdef DEBUG_LEVEL1#ifdef DEBUG_LEVEL2#define DEFAULT_DEBUG_MASK (0xffffffff)#else#define DEFAULT_DEBUG_MASK (MMSG | MFATAL | MERROR | MREG_D)#endif /* DEBUG_LEVEL2 */t_u32 drvdbg = DEFAULT_DEBUG_MASK;