[gnome-control-center] network: Build fixes
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Build fixes
- Date: Fri, 15 Aug 2014 14:19:35 +0000 (UTC)
commit e397a8ab4eb6a2c56c5495a0a0ee123c5bf6cbe3
Author: Bastien Nocera <hadess hadess net>
Date: Fri Aug 15 16:18:47 2014 +0200
network: Build fixes
The WPA key size was missing, and we were comparing strings by pointer
address.
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 b34ce06..5e262fa 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]