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:
parent
0bfc6bd0c0
commit
3c6c8a40ae
@ -1166,6 +1166,11 @@ const NMWirelessDeviceItem = GObject.registerClass({
|
|||||||
if (ssid)
|
if (ssid)
|
||||||
return ssidToLabel(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;
|
return this._deviceName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user