diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-08-15 16:18:47 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2014-08-15 16:18:47 +0200 |
commit | e397a8ab4eb6a2c56c5495a0a0ee123c5bf6cbe3 (patch) | |
tree | 3c2fe5a908957f72de0e753bdfda3064595adff9 /panels | |
parent | 03bacf6f2cd0879c873458ee359240c89f3e4acf (diff) | |
download | gnome-control-center-e397a8ab4eb6a2c56c5495a0a0ee123c5bf6cbe3.tar.gz |
network: Build fixes
The WPA key size was missing, and we were comparing strings by pointer
address.
Diffstat (limited to 'panels')
-rw-r--r-- | panels/network/net-device-wifi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c index b34ce068b..5e262fa82 100644 --- a/panels/network/net-device-wifi.c +++ b/panels/network/net-device-wifi.c @@ -857,7 +857,7 @@ generate_ssid_for_hotspot (NetDeviceWifi *device_wifi) return ssid_array; } -#define WPA_PASSKEY_SIZE +#define WPA_PASSKEY_SIZE 8 static void set_wpa_key (NMSettingWirelessSecurity *sws) { @@ -1073,7 +1073,7 @@ start_shared_connection (NetDeviceWifi *device_wifi) sws = (NMSettingWirelessSecurity*) nm_setting_wireless_security_new (); - if (mode == NM_SETTING_WIRELESS_MODE_AP) { + if (g_strcmp0 (mode, NM_SETTING_WIRELESS_MODE_AP) == 0) { if (caps & NM_WIFI_DEVICE_CAP_RSN) { set_wpa_key (sws); nm_setting_wireless_security_add_proto (sws, "rsn"); |