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

miracled: try at most 5 times to connect to wpas

If, after 5 times (which is 1s), wpa_supplicant is still not reachable, we
now drop the link. This avoids hangup issues during wpas startup that
might happen from time to time.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
David Herrmann 2014-02-17 16:47:24 +01:00
parent 6a37cbe6b8
commit fe571fb729
2 changed files with 2 additions and 1 deletions

View file

@ -97,6 +97,7 @@ struct link {
struct wifi *w;
sd_event_source *wpa_child_source;
sd_event_source *wpa_startup_source;
unsigned int wpa_startup_attempts;
bool running : 1;
};