This parameter tells if we want to be the GO or not. Thus it applies in
gsupplicant in a higher go intent.
---
 plugins/wifi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/wifi.c b/plugins/wifi.c
index cd6316b..6413ede 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -312,6 +312,8 @@ static int peer_connect(struct connman_peer *peer,
        if (wps_pin)
                peer_params->wps_pin = g_strdup(wps_pin);
 
+       peer_params->master = connman_peer_service_is_master();
+
        ret = g_supplicant_interface_p2p_connect(wifi->interface, peer_params,
                                                peer_connect_callback, wifi);
        if (ret == -EINPROGRESS) {
-- 
1.8.5.5

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to