[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3a9e70f9fe5ac0724730cb445b593fdb7eeeaae9.camel@sipsolutions.net>
Date: Mon, 13 Feb 2023 18:37:36 +0100
From: Johannes Berg <johannes@...solutions.net>
To: Marc Bornand <dev.mbornand@...temb.ch>
Cc: linux-wireless@...r.kernel.org,
"David S . Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Kalle Valo <kvalo@...nel.org>,
Yohan Prod'homme <kernel@...do.fr>, stable@...r.kernel.org
Subject: Re: [PATCH v2] Set ssid when authenticating
Hi,
As an aside - there's little point in encrypting the mail sent to me
when you send it also to a public list :) Just makes it more annoying to
use.
> > This is incorrect, doing an authentication doesn't require doing an
> > association afterwards, and doesn't necessarily imply any state change
> > in the kernel.
>
> So is it intended behavior that the ssid in wireless_dev is not set
> or is there a place were this state change should happen?
It's incorrect in that this is the wrong place to set it.
I don't have a strong feeling about whether it _should_ be set, but I
clearly assumed that it is indeed set ...
> > > alternatives:
> > > 1. Do the same but during association and not authentication.
> >
> >
> > Which should probably be done after successful authentication, even in
> > the CONNECT command case, which currently does it in cfg80211_connect()
> > but I guess that should move to __cfg80211_connect_result().
>
> Is there an existing way to get the ssid in __cfg80211_connect_result()?
There's the BSS, or multiple pointers for multi-link.
> Just a side question do the BSSes all have the same SSID?
>
In multi-link? Yes, I don't think we actively enforce that wpa_s does
that, but we'd probably fail to connect to the AP if that weren't the
case. So yeah. Maybe we should check it in assoc.
Here I think you can safely just pick any of the BSSes and look at the
SSID. Really we could even do the same in the nl80211 code, but it's
probably easier to fill in the ssid when we already have it anyway.
In the connect case it might be needed to fill it in earlier for use by
the SME state machine, not sure.
johannes
Powered by blists - more mailing lists