Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: James Hilliard <james.hilliard1@gmail.com>
Cc: James Prestwood <prestwoj@gmail.com>,
	iwd@lists.linux.dev, Andrew Zaborowski <balrogg@googlemail.com>
Subject: Re: NetworkManager connection gets stuck in pending state when bringing up AP mode connection with IWD backend
Date: Tue, 7 May 2024 17:31:23 -0500	[thread overview]
Message-ID: <bf11b479-5667-41ea-acc1-6ffed72e4440@gmail.com> (raw)
In-Reply-To: <CADvTj4pZ4JV8Ji2YrnRFs2fxar2wF-xRdhLTFLndKd0i8D1x1Q@mail.gmail.com>

Hi James,

On 5/7/24 5:12 PM, James Hilliard wrote:
> On Tue, May 7, 2024 at 3:40 PM Denis Kenzior <denkenz@gmail.com> wrote:
>>
>> Hi James,
>>
>>>>
>>>> Should only be using the Start(ssid, psk) method. Its really that simple
>>>> so I don't see how it could really get anything wrong as far as being
>>>> notified. But again, I'm not too familiar with NM.
>>>
>>> Looking into this that doesn't appear to be entirely accurate, that method
>>> seems to be working fine but is not the only API NM uses to interface with
>>> IWD.
>>>
>>> It looks like NM is also using this for interface configuration:
>>> https://git.kernel.org/pub/scm/network/wireless/iwd.git/tree/doc/agent-api.txt
>>
>> That is only relevant for Station interfaces (i.e. client mode) if you're
>> running iwd with EnableNetworkConfiguration=true.  The Access Point mode is not
>> setup to report network configuration details via this infrastructure.
> 
> The docs indicate that RegisterNetworkConfigurationAgent is relevant for:
> station-mode, AP-mode or P2P connection

Indeed.  But note that NetworkConfigurationAgent API is marked experimental and 
there's no infrastructure that would enable AP to invoke this agent at the 
moment.  It is only integrated with l_netconfig which is used for client side only.

It may be the intent was to add this functionality eventually, but it isn't 
there now.  I'm surprised NM tries to use it for AP mode actually.  Maybe Andrew 
(who wrote much of the code on both iwd and NM sides) would know.

> 
> If AP mode doesn't support this interface then how should the network
> configuration details be reported to NM when running in AP mode?

Well, I see two options:
   - If NM expects IP details from iwd even in AP mode, then teach iwd to do this
   - Make NM only use NetworkConfigurationAgent in station mode

Regards,
-Denis

      reply	other threads:[~2024-05-07 22:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-06 19:11 NetworkManager connection gets stuck in pending state when bringing up AP mode connection with IWD backend James Hilliard
2024-05-06 20:15 ` James Prestwood
2024-05-06 20:34   ` James Hilliard
2024-05-06 20:48     ` James Prestwood
2024-05-06 22:40       ` James Hilliard
2024-05-07 11:41         ` James Prestwood
2024-05-07 17:15           ` James Hilliard
2024-05-07 17:36             ` James Prestwood
2024-05-07 17:47               ` James Hilliard
2024-05-07 17:50                 ` James Prestwood
2024-05-07 21:26                   ` James Hilliard
2024-05-07 21:40                     ` Denis Kenzior
2024-05-07 22:12                       ` James Hilliard
2024-05-07 22:31                         ` 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=bf11b479-5667-41ea-acc1-6ffed72e4440@gmail.com \
    --to=denkenz@gmail.com \
    --cc=balrogg@googlemail.com \
    --cc=iwd@lists.linux.dev \
    --cc=james.hilliard1@gmail.com \
    --cc=prestwoj@gmail.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