1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-12 13:11:55 +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:
Andrey Gusakov 2014-10-28 07:18:55 +03:00 committed by albfan
parent 1a86754573
commit 2fac0f0ea9

View file

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