Disable moal debug log

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Disable moal debug log

Jump to solution
748 Views
tanoue
Contributor III

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.

 

0 Kudos
1 Solution
736 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @tanoue ,

I hope you are doing well.

->To disable the dmesg log please try to load the driver with the parameter drvdbg=0x00000000

Or one can load the driver but not give the drvdbg param along with other params.
It will disable all the logs.

EX:-
insmod mlan.ko && insmod moal.ko fw_name=nxp/<fw.bin> cfg80211_wext=0xf cal_data_cfg=none host_mlme=1

Thanks & Regards,
Sanket Parekh

View solution in original post

0 Kudos
4 Replies
737 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @tanoue ,

I hope you are doing well.

->To disable the dmesg log please try to load the driver with the parameter drvdbg=0x00000000

Or one can load the driver but not give the drvdbg param along with other params.
It will disable all the logs.

EX:-
insmod mlan.ko && insmod moal.ko fw_name=nxp/<fw.bin> cfg80211_wext=0xf cal_data_cfg=none host_mlme=1

Thanks & Regards,
Sanket Parekh
0 Kudos
725 Views
tanoue
Contributor III

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?

0 Kudos
722 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

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

0 Kudos
717 Views
tanoue
Contributor III

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;
 
Best Regards.
Tanoue.
0 Kudos