public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: James Prestwood <prestwoj@gmail.com>, iwd@lists.linux.dev
Subject: Re: [PATCH v2 1/4] knownnetworks: network: support updating known network settings
Date: Mon, 18 Dec 2023 22:31:41 -0600	[thread overview]
Message-ID: <6ac609fa-0540-479e-8ab3-387b0cab24cb@gmail.com> (raw)
In-Reply-To: <20231218141250.202157-1-prestwoj@gmail.com>

Hi James,

On 12/18/23 08:12, James Prestwood wrote:
> Currently if a known network is modified on disk the settings are not
> reloaded by network. Only disconnecting/reconnecting to the network
> would update the settings. This poses an issue to DPP since its
> creating or updating a known network after configuration then trying
> to connect. The connection itself works fine since the PSK/passphrase
> is set to the network object directly, but any additional settings
> are not updated.
> 
> To fix this add a new UPDATED known network event. This is then
> handled from within network and all settings read from disk are
> applied to the network object.
> ---
>   src/knownnetworks.c |  4 ++++
>   src/knownnetworks.h |  1 +
>   src/network.c       | 27 ++++++++++++++++++++++++---
>   3 files changed, 29 insertions(+), 3 deletions(-)
> 
> v2:
>   * Instead of bothering with individual settings we can just use the
>     new l_settings object. This would still prefer agent-obtained creds
>     set into the network object but also honor any new settings written

Ehh, I'm not so sure about this.  handshake_state_set_8021x_config() does a 
shallow copy of the l_settings object.  I think eap state machine will make 
copies of the info it needs, but...

>     to the profile if there is an ongoing connection. This is a much
>     simpler approach (unless I'm missing something). Only questionable

Also, netconfig_load_settings is called very early in __station_connect_network, 
so even if you overwrite the settings object here, it is probably too late to 
take any effect.

>     piece is what to do with the Security group. I hesitate to skip it
>     because its what we have on disk, but it could mean the network
>     object isn't synced with its settings. But I'm not sure this is
>     any different than what we have today, if a profile is modified
>     during an ongoing connection its settings (including security)
>     won't get updated until a disconnect/reconnect.
> 
>   * Remove frequency sync on UPDATED event
> 

Regards,
-Denis


  parent reply	other threads:[~2023-12-19  4:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-18 14:12 [PATCH v2 1/4] knownnetworks: network: support updating known network settings James Prestwood
2023-12-18 14:12 ` [PATCH v2 2/4] dpp: fix extra settings not being used when connecting James Prestwood
2023-12-18 14:12 ` [PATCH v2 3/4] auto-t: add DPP tests to check extra settings are applied James Prestwood
2023-12-18 14:12 ` [PATCH v2 4/4] auto-t: increase RAM when running with valgrind (UML) James Prestwood
2023-12-19  4:31 ` Denis Kenzior [this message]
2023-12-19 12:57   ` [PATCH v2 1/4] knownnetworks: network: support updating known network settings James Prestwood
2023-12-19 16:31     ` Denis Kenzior
2023-12-19 16:53       ` James Prestwood
2023-12-19 17:46         ` Denis Kenzior
2023-12-19 17:49           ` James Prestwood

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=6ac609fa-0540-479e-8ab3-387b0cab24cb@gmail.com \
    --to=denkenz@gmail.com \
    --cc=iwd@lists.linux.dev \
    --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