Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1221)

Unified Diff: src/service.c

Issue 6783030: Mark services in password-fail as PassPhrase Required (Closed) Base URL: http://git.chromium.org/git/flimflam.git@master
Patch Set: Trim back to the original CL change Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/service.c
diff --git a/src/service.c b/src/service.c
index 6d159d6fe80a0cea9c2afeeceb6281435c51d843..d382f13254bcaf049971772f0379314750b98cc5 100644
--- a/src/service.c
+++ b/src/service.c
@@ -806,6 +806,9 @@ static connman_bool_t is_passphrase_required(
case CONNMAN_SERVICE_SECURITY_PSK:
if (service->passphrase == NULL)
return TRUE; /* must have a passphrase */
+ if (service->state == CONNMAN_SERVICE_STATE_FAILURE &&
+ service->error == CONNMAN_SERVICE_ERROR_BAD_PASSPHRASE)
+ return TRUE; /* bad passphrase */
if (service->favorite == TRUE)
return FALSE; /* successfully used before */
/* if passphrase was never used, assume it is correct */
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698