status/network: Use connection name with hidden AP

When connected to an OWE transition network, NetworkManager
reports the connected API with a hidden SSID.

Handle this by using the active connection's name before
ultimately falling back to the device name.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6918

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2927>
This commit is contained in:
Florian Müllner 2023-08-30 01:47:00 +02:00 committed by Marge Bot
parent 0bfc6bd0c0
commit 3c6c8a40ae

View File

@ -1166,6 +1166,11 @@ const NMWirelessDeviceItem = GObject.registerClass({
if (ssid)
return ssidToLabel(ssid);
// Use connection name when connected to hidden AP
const {activeConnection} = this._device;
if (activeConnection)
return activeConnection.connection.get_id();
return this._deviceName;
}