Reported by Daniel Wagner <[email protected]>
---
 plugins/wifi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/wifi.c b/plugins/wifi.c
index e169692..2dd5dc4 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -2025,8 +2025,8 @@ static void p2p_support(GSupplicantInterface *interface)
        if (g_supplicant_interface_has_p2p(interface)) {
                g_supplicant_interface_set_p2p_device_config(interface,
                                        connman_utsname_get_hostname());
-               connman_technology_driver_register(&p2p_tech_driver);
-               connman_peer_driver_register(&peer_driver);
+               if (connman_technology_driver_register(&p2p_tech_driver) == 0)
+                       connman_peer_driver_register(&peer_driver);
        }
 }
 
-- 
1.8.3.2

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

Reply via email to