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);
|
||||||
|
@ -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