Commit 6b908238 authored by Marc Bornand's avatar Marc Bornand Committed by Treehugger Robot
Browse files

UPSTREAM: wifi: cfg80211: Set SSID if it is not already set



When a connection was established without going through
NL80211_CMD_CONNECT, the ssid was never set in the wireless_dev struct.
Now we set it in __cfg80211_connect_result() when it is not already set.

When using a userspace configuration that does not call
cfg80211_connect() (can be checked with breakpoints in the kernel),
this patch should allow `networkctl status device_name` to output the
SSID instead of null.

Bug: 254441685
Cc: stable@vger.kernel.org
Reported-by: default avatarYohan Prod'homme <kernel@zoddo.fr>
Fixes: 7b0a0e3c (wifi: cfg80211: do some rework towards MLO link APIs)
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216711


Signed-off-by: default avatarMarc Bornand <dev.mbornand@systemb.ch>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
(cherry picked from commit c38c7018)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Iccc1c20654b798769f978341e0429842eaa5b618
parent 554a9671
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment