From: Daniel Wagner <wagi@monom.org>
To: John Keeping <john@metanate.com>
Cc: "VAUTRIN Emmanuel (Canal Plus Prestataire)"
<Emmanuel.VAUTRIN@cpexterne.org>,
connman@lists.linux.dev
Subject: Re: [PATCH] service: Complete only after user connection retries
Date: Mon, 28 Jun 2021 21:54:11 +0200 [thread overview]
Message-ID: <20210628195411.innzcyprpozgtuag@beryllium.lan> (raw)
In-Reply-To: <20210628160413.416f51e4.john@metanate.com>
Hi John,
On Mon, Jun 28, 2021 at 04:04:13PM +0100, John Keeping wrote:
> > Could you try to add some debug printfs and report back?
>
> It looks like the length of the invalid passphrase matters here. If I
> use a short passphrase like you have above then I reproduce that
> behaviour, but if the wrong passphrase has at least 8 characters then it
> enters the failure state.
D'oh! You are so right :)
> I think __connman_service_check_passphrase() is rejecting the short
> passphrase so it never even gets to wpa_supplicant.
>
> In the failing case, I don't get the chance to choose to retry. Instead
> the output looks like:
>
> Passphrase? asdfgghjgj
> Agent ReportError wifi_b0f1ecffb46f_7073475462456b44_managed_psk
> invalid-key
> Agent request cancelled by ConnMan
> Retry (yes/no)? connmanctl>
>
> where the new prompt appears instantly. Inspecting the DBus traffic, I
> see that connman calls Agent.ReportError and then immediately calls
> Agent.Cancel (the timestamp is less than a millisecond later, although
> there is a call to fi.w1.fpa_supplicant1.Interface.Disconnect in
> between).
>
> I added extra logging in report_error_cb() and can confirm that this is
> never called when this happens.
Alright, we are getting closer. Hmm, just an idea what could happen is
the agent state machine gets canceled (the supplicant is likely to say,
password is not working) and this it eats up the pending callback.
Thanks,
Daniel
next prev parent reply other threads:[~2021-06-28 19:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <PR1PR02MB4794EB6ADA4A23AA374EE58493909@PR1PR02MB4794.eurprd02.prod.outlook.com>
[not found] ` <20210327124254.iorhou27y3u4pwih@beryllium.lan>
2021-06-15 11:09 ` [PATCH] service: Complete only after user connection retries John Keeping
2021-06-28 7:58 ` Daniel Wagner
2021-06-28 15:04 ` John Keeping
2021-06-28 19:54 ` Daniel Wagner [this message]
2021-06-29 7:35 ` Daniel Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210628195411.innzcyprpozgtuag@beryllium.lan \
--to=wagi@monom.org \
--cc=Emmanuel.VAUTRIN@cpexterne.org \
--cc=connman@lists.linux.dev \
--cc=john@metanate.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).