Wifi plugins is now using path as the only way to identify the peer
while connecting or disconnecting.
---
gsupplicant/gsupplicant.h | 1 -
gsupplicant/supplicant.c | 14 +-------------
2 files changed, 1 insertion(+), 14 deletions(-)
diff --git a/gsupplicant/gsupplicant.h b/gsupplicant/gsupplicant.h
index e20d6fd..207e281 100644
--- a/gsupplicant/gsupplicant.h
+++ b/gsupplicant/gsupplicant.h
@@ -170,7 +170,6 @@ struct _GSupplicantScanParams {
typedef struct _GSupplicantScanParams GSupplicantScanParams;
struct _GSupplicantPeerParams {
- const char *identifier;
char *wps_pin;
char *path;
};
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index ce0740d..b8ad5a2 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -4720,17 +4720,6 @@ int
g_supplicant_interface_p2p_connect(GSupplicantInterface *interface,
if (!interface->p2p_support)
return -ENOTSUP;
- if (!peer_params->path) {
- GSupplicantPeer *peer;
-
- peer = g_supplicant_interface_peer_lookup(interface,
- peer_params->identifier);
- if (!peer)
- return -ENODEV;
-
- peer_params->path = g_strdup(peer->path);
- }
-
data = dbus_malloc0(sizeof(*data));
data->interface = interface;
data->path = g_strdup(interface->path);
@@ -4763,8 +4752,7 @@ int
g_supplicant_interface_p2p_disconnect(GSupplicantInterface *interface,
if (!interface->p2p_support)
return -ENOTSUP;
- peer = g_supplicant_interface_peer_lookup(interface,
- peer_params->identifier);
+ peer = g_hash_table_lookup(interface->peer_table, peer_params->path);
if (!peer)
return -ENODEV;
--
1.8.5.5
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman