mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
miracle-wifid: postpone the emittion of managed signal after the status
query
This commit is contained in:
parent
f46617383d
commit
2da1f70ccd
1 changed files with 3 additions and 2 deletions
|
@ -1707,6 +1707,8 @@ static int supplicant_status_fn(struct wpas *w,
|
||||||
} else {
|
} else {
|
||||||
s->has_p2p = true;
|
s->has_p2p = true;
|
||||||
|
|
||||||
|
link_supplicant_managed(s->l);
|
||||||
|
|
||||||
r = wpas_message_new_request(s->bus_global,
|
r = wpas_message_new_request(s->bus_global,
|
||||||
"SET",
|
"SET",
|
||||||
&m);
|
&m);
|
||||||
|
@ -2219,7 +2221,7 @@ static int supplicant_global_attach_fn(struct wpas *w,
|
||||||
s->l->ifname);
|
s->l->ifname);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Devices with P2P_DEVICE support (instead of direct P2P_GO/CLIENT
|
* Devices with P2P_DEVICE support (instead of direct P2P_GO/CLIENT
|
||||||
* support) are broken with a *lot* of wpa_supplicant versions on the
|
* support) are broken with a *lot* of wpa_supplicant versions on the
|
||||||
|
@ -2577,7 +2579,6 @@ static int supplicant_timer_fn(sd_event_source *source,
|
||||||
} else {
|
} else {
|
||||||
/* wpas is running smoothly, disable timer */
|
/* wpas is running smoothly, disable timer */
|
||||||
sd_event_source_set_enabled(source, SD_EVENT_OFF);
|
sd_event_source_set_enabled(source, SD_EVENT_OFF);
|
||||||
link_supplicant_managed(s->l);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Who armed this timer? What timer is this? */
|
/* Who armed this timer? What timer is this? */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue