network: Re-set the SSID when enabling the Hotspot

Instead of expecting the hostname to stay the same.

https://bugzilla.gnome.org/show_bug.cgi?id=705546
This commit is contained in:
Bastien Nocera 2016-06-10 16:56:03 +02:00
parent bbdcaaa039
commit e824868976

View file

@ -1058,6 +1058,10 @@ start_shared_connection (NetDeviceWifi *device_wifi)
client = net_object_get_client (NET_OBJECT (device_wifi)); client = net_object_get_client (NET_OBJECT (device_wifi));
if (c != NULL) { if (c != NULL) {
NMSettingWireless *sw;
sw = nm_connection_get_setting_wireless (c);
g_object_set (sw, "ssid", ssid, NULL);
g_bytes_unref (ssid); g_bytes_unref (ssid);
g_debug ("activate existing hotspot connection\n"); g_debug ("activate existing hotspot connection\n");