@@ -619,11 +619,11 @@ void load_ini_config()
619619 GKeyFile * gkf = load_ini_file ();
620620
621621 if (gkf ) {
622- gchar * log_level ;
623- log_level = g_key_file_get_string (gkf , "wifid" , "log-level" , NULL );
624- if (log_level ) {
625- log_max_sev = log_parse_arg (log_level );
626- g_free (log_level );
622+ gchar * log_level_tmp ;
623+ log_level_tmp = g_key_file_get_string (gkf , "wifid" , "log-level" , NULL );
624+ if (log_level_tmp ) {
625+ log_max_sev = log_parse_arg (log_level_tmp );
626+ g_free (log_level_tmp );
627627 }
628628 ip_binary = g_key_file_get_string (gkf , "wifid" , "ip-binary" , NULL );
629629 lazy_managed = g_key_file_get_boolean (gkf , "wifid" , "lazy-managed" , NULL );
@@ -632,6 +632,11 @@ void load_ini_config()
632632 config_methods = g_key_file_get_string (gkf , "wifid" , "config_methods" , NULL );
633633 go_intent = g_key_file_get_uint64 (gkf , "wifid" , "go-intent" , NULL );
634634 driver_param = g_key_file_get_string (gkf , "wifid" , "driver-param" , NULL );
635+ log_level_tmp = g_key_file_get_string (gkf , "wifid" , "wpa-log-level" , NULL );
636+ if (log_level_tmp ) {
637+ wpa_loglevel = log_parse_arg (log_level_tmp );
638+ g_free (log_level_tmp );
639+ }
635640 g_key_file_free (gkf );
636641 }
637642}
0 commit comments