mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-12 15:51:59 +00:00
Notice sinkctl if pending peer fails to connect/disconnects
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
This commit is contained in:
parent
1a86754573
commit
2fac0f0ea9
1 changed files with 8 additions and 0 deletions
|
@ -1378,6 +1378,14 @@ static void supplicant_event_ap_sta_disconnected(struct supplicant *s,
|
|||
return;
|
||||
}
|
||||
|
||||
if (sp->s->pending == sp) {
|
||||
sp->s->pending = NULL;
|
||||
if (sp->p->connected)
|
||||
peer_supplicant_connected_changed(sp->p, false);
|
||||
else
|
||||
peer_supplicant_formation_failure(sp->p, "disconnected");
|
||||
}
|
||||
|
||||
log_debug("unbind peer %s from its group", p2p_mac);
|
||||
supplicant_peer_drop_group(sp);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue