[gnome-control-center] network: Re-set the SSID when enabling the Hotspot



commit e8248689762593c3efd03da239303f1aceb1f81a
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jun 10 16:56:03 2016 +0200

    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

 panels/network/net-device-wifi.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 73aa69d..f6b35ba 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -1058,6 +1058,10 @@ start_shared_connection (NetDeviceWifi *device_wifi)
 
         client = net_object_get_client (NET_OBJECT (device_wifi));
         if (c != NULL) {
+                NMSettingWireless *sw;
+
+                sw = nm_connection_get_setting_wireless (c);
+                g_object_set (sw, "ssid", ssid, NULL);
                 g_bytes_unref (ssid);
 
                 g_debug ("activate existing hotspot connection\n");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]