connman - add an explicit scan when popping up the popup.

this may make connman now list wifi networks if you use the new iwd
instead of wpa_supplicant
This commit is contained in:
Carsten Haitzler 2020-11-25 14:04:17 +00:00
parent 5311687e6d
commit edfb14460d
3 changed files with 10 additions and 0 deletions

View File

@ -82,6 +82,8 @@ extern int E_CONNMAN_EVENT_MANAGER_OUT;
/* Daemon monitoring */
unsigned int e_connman_system_init(Eldbus_Connection *eldbus_conn) EINA_ARG_NONNULL(1);
unsigned int e_connman_system_shutdown(void);
void e_connman_scan(struct Connman_Manager *cm);
/* Requests from UI */

View File

@ -991,3 +991,9 @@ e_connman_system_shutdown(void)
return init_count;
}
void
e_connman_scan(struct Connman_Manager *cm)
{
eldbus_proxy_call(cm->technology_iface, "Scan", NULL, NULL, -1, "");
}

View File

@ -271,6 +271,8 @@ _econnman_popup_new(E_Connman_Instance *inst)
if (!ctxt->cm)
return;
e_connman_scan(ctxt->cm);
inst->popup = e_gadcon_popup_new(inst->gcc, 0);
evas = e_comp->evas;