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

miracled: support managed wpa_supplicant

If miracled is spawned with --manage-wifi, we run our own copy of
wpa_supplicant on managed devices. This is meant for testing purposes
only. Hopefully, network-manages like NM or connman will provide a P2P API
at some time so we can switch. Until then, we allow the user to control
who is in charge of wpa_supplicant.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
David Herrmann 2014-02-17 16:42:54 +01:00
parent 5fb83c9159
commit 6a37cbe6b8
6 changed files with 277 additions and 11 deletions

View file

@ -95,6 +95,10 @@ struct link {
struct shl_dlist peers;
struct wifi *w;
sd_event_source *wpa_child_source;
sd_event_source *wpa_startup_source;
bool running : 1;
};
#define link_from_htable(_l) \
@ -166,4 +170,10 @@ void link_dbus_scan_stopped(struct link *l);
void link_dbus_added(struct link *l);
void link_dbus_removed(struct link *l);
/* cli arguments */
extern bool arg_manage_wifi;
extern const char *arg_wpa_rundir;
extern const char *arg_wpa_bindir;
#endif /* MIRACLED_H */