This will be useful in the core to relate the peer and its dhcp lease,
in case the local peer ends up as the dhcp server.
---
 plugins/wifi.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/plugins/wifi.c b/plugins/wifi.c
index 9357b92..68ed5d0 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -2787,9 +2787,8 @@ static void peer_changed(GSupplicantPeer *peer, 
GSupplicantPeerState state)
                p_state = CONNMAN_PEER_STATE_IDLE;
                break;
        case G_SUPPLICANT_PEER_GROUP_JOINED:
-               if (!g_supplicant_peer_is_in_a_group(peer))
-                       break;
-               p_state = CONNMAN_PEER_STATE_READY;
+               connman_peer_set_iface_address(connman_peer,
+                               g_supplicant_peer_get_iface_address(peer));
                break;
        case G_SUPPLICANT_PEER_GROUP_DISCONNECTED:
                p_state = CONNMAN_PEER_STATE_IDLE;
-- 
2.0.4

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to