My specific questions are:
-
- How to change the debug level to MSG_DEBUG of wpa_supplicant in
Android? - Do I need to compile the wpa_supplicant to achieve this goal?
- How to view the logs?
- How to change the debug level to MSG_DEBUG of wpa_supplicant in
I had tried to use these commands:
adb shell wpa_supplicant -c/etc/wpa_supplicant.conf -iwlan0 -dadb logcat | grep -i "wpa_supplicant"
But these commands didn’t bring up MSG_DEBUG level logs.
I tried to use the conf file in /system/etc/wifi directory. i.e.
adb shell wpa_supplicant -c/system/etc/wifi/wpa_supplicant.conf -iwlan0 -d
But this give me an error:
mkdir[ctrl_interface]: Read-only file system
I didn’t find a workaround for this. How can I solve this?
in the wpa_common.c file,you can find the wpa_printf function output the debug log,you cant use MSG_DEBUG as a parameter,that’s you question 1 and 2