1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

miracle-wifid: fix the timing of notification of P2P availability

Change-Id: I86c453256b614022db5d941d64984f9eecd4ef39
This commit is contained in:
Derek Dai 2017-04-22 17:03:40 +08:00
parent 91ef1b79ff
commit c44f2dbcec
No known key found for this signature in database
GPG key ID: E109CC97553EF009
2 changed files with 4 additions and 3 deletions

View file

@ -149,7 +149,7 @@ void wfd_session_set_state(struct wfd_session *s,
wfd_fn_session_properties_changed(s, "State"); wfd_fn_session_properties_changed(s, "State");
} }
bool wfd_session_is_established(struct wfd_session *s) int wfd_session_is_established(struct wfd_session *s)
{ {
assert_retv(wfd_is_session(s), false); assert_retv(wfd_is_session(s), false);

View file

@ -1526,11 +1526,12 @@ static void supplicant_try_ready(struct supplicant *s)
s->has_wfd = false; s->has_wfd = false;
s->running = true; s->running = true;
link_supplicant_started(s->l);
link_supplicant_p2p_state_known(s->l, s->has_p2p ? 1 : -1);
LINK_FOREACH_PEER(p, s->l) LINK_FOREACH_PEER(p, s->l)
peer_supplicant_started(p); peer_supplicant_started(p);
link_supplicant_started(s->l);
link_supplicant_p2p_state_known(s->l, s->has_p2p ? 1 : -1);
} }
static int supplicant_p2p_set_disallow_freq_fn(struct wpas *w, static int supplicant_p2p_set_disallow_freq_fn(struct wpas *w,