[GUIDE] Disable WiFi logging on MIUI ROM

prathameshsd

Senior Member
Feb 7, 2013
318
1,212
0
pdstack.wordpress.com
You must have noticed WLAN_LOGS folder in your internal storage with some files inside it taking up considerable amount of space. These files re-apppear even after deleting them. WLAN_LOGS : https://imgur.com/a/pq32N

After further digging I found out that MIUI devs have enabled (or should I say forgotten to disable) WiFi logging on the final build of MIUI ROM. WiFi logs are dumped as soon as you connect to any WiFi. This issue is present on official MIUI8, MIUI9 ROM and MIUI based custom ROMs such as Xiaomi.EU, MIUI Pro etc. as well.

How to disable WiFi log spam (needs root access) : Root here
  • Install any file manager app that supports root access such as Solid Explorer, MiXplorer
  • Open the app and grant root permissions
  • Go to the root folder > data > misc > wifi > cnss.diag.conf
  • Open it with the text editor and change the values as under
    Code:
    LOG_PATH_FLAG = 0
    MAX_LOG_FILE_SIZE = 1
    MAX_ARCHIVES = 1
    LOG_STORAGE_PATH =
  • Save the file and reboot your phone. WiFi logging will be disabled permanently.
 
Last edited:

dawabz94

Senior Member
Sep 24, 2010
522
104
43
France
Hi all,

Just sharing my solution, I wanted to avoid rooting
So I deleted the folder wan_logs and created an empty file in internal root folder with the same name
So the system finds itself unable to create the folder and consequently can't create files in there
Seems to do the job
 

[email protected]#

Senior Member
Oct 23, 2015
490
70
0
New Delhi
Location

Hi all,

Just sharing my solution, I wanted to avoid rooting
So I deleted the folder wan_logs and created an empty file in internal root folder with the same name
So the system finds itself unable to create the folder and consequently can't create files in there
Seems to do the job
Where did you find that folder ? Please shre the location
 

sirarisma

Senior Member
Oct 25, 2013
118
10
18
Old DCIM trick xD
Hi all,

Just sharing my solution, I wanted to avoid rooting
So I deleted the folder wan_logs and created an empty file in internal root folder with the same name
So the system finds itself unable to create the folder and consequently can't create files in there
Seems to do the job
 

paradise220

Senior Member
Aug 15, 2012
215
30
58
I am also using this trick in my max 2 since 5 months.just make a file through es file explorer in the root directory with name wlan_logs .
 

jututt

Senior Member
Sep 28, 2014
91
42
48
On my Mi9 running MIUI 11 .conf file is located at /data/vendor/wifi and log files are at /data/vendor/wlan_logs
 
Last edited: