Fixes current return value handling which does the contrary.
---
 plugins/wifi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/wifi.c b/plugins/wifi.c
index 3c8f26f..9afff4e 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -1897,7 +1897,7 @@ static void p2p_support(GSupplicantInterface *interface)
        if (!g_supplicant_interface_has_p2p(interface))
                return;
 
-       if (connman_technology_driver_register(&p2p_tech_driver) == 0)
+       if (connman_technology_driver_register(&p2p_tech_driver) < 0)
                DBG("Could not register P2P technology driver");
 }
 
-- 
1.8.5.5

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

Reply via email to