在main.c中配置wpa_debug_level的级别即可。
int main(int argc, char *argv[])
{
int c, i;
struct wpa_interface *ifaces, *iface;
int iface_count, exitcode = -1;
struct wpa_params params;
struct wpa_global *global;
if (os_program_init())
return -1;
os_memset(¶ms, 0, sizeof(params));
<span style="color:#3366FF;"><strong>params.wpa_debug_level = MSG_MSGDUMP;</strong></span>