Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: iwd@lists.01.org
Subject: Re: [PATCH v2] agent: call back even if agent disconnects
Date: Fri, 09 Apr 2021 11:37:26 -0500	[thread overview]
Message-ID: <adf35e5b-e425-e091-c284-7d2a1b7a16a3@gmail.com> (raw)
In-Reply-To: <20210409163714.1307122-1-prestwoj@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 941 bytes --]

Hi James,

On 4/9/21 11:37 AM, James Prestwood wrote:
> It was found that if the user cancels/disconnects the agent prior to
> entering credentials, IWD would get stuck and could no longer accept
> any connect calls with the error "Operation already in progress".
> For example exiting iwctl in the Password prompt would cause this:
> 
> iwctl
> $ station wlan0 connect myssid
> $ Password: <Ctrl-C>
> 
> This was due to the agent never calling the network callback in the
> case of an agent disconnect. Network would wait indefinitely for the
> credentials, and disallow any future connect attempts.
> 
> To fix this agent_finalize_pending can be called in agent_disconnect
> with a NULL reply which behaves the same as if there was an
> internal timeout and ultimately allows network to fail the connection
> ---
>   src/agent.c | 3 +++
>   1 file changed, 3 insertions(+)
> 

Applied, thanks.

Regards,
-Denis

      reply	other threads:[~2021-04-09 16:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-09 16:37 [PATCH v2] agent: call back even if agent disconnects James Prestwood
2021-04-09 16:37 ` Denis Kenzior [this message]

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=adf35e5b-e425-e091-c284-7d2a1b7a16a3@gmail.com \
    --to=denkenz@gmail.com \
    --cc=iwd@lists.01.org \
    /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