An invalid key error is indicated from the respective plugin by calling
__connman_service_indicate_error() from network.c. That function removes
the passphrase used and is detected a few lines earlier before this
change.
---
 src/service.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/service.c b/src/service.c
index d98d229..87a2f2c 100644
--- a/src/service.c
+++ b/src/service.c
@@ -5846,10 +5846,9 @@ static int service_connect(struct connman_service 
*service)
                                if (!service->wps ||
                                        
!connman_network_get_bool(service->network, "WiFi.UseWPS"))
                                        return -ENOKEY;
-                       } else if (service->error ==
-                                       CONNMAN_SERVICE_ERROR_INVALID_KEY)
-                               return -ENOKEY;
+                       }
                        break;
+
                case CONNMAN_SERVICE_SECURITY_8021X:
                        if (!service->eap)
                                return -EINVAL;
-- 
2.1.1

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

Reply via email to