about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2019-03-19 16:17:13 +0100
committerSebastien Bacher <seb128@ubuntu.com>2019-03-19 16:17:13 +0100
commit9920e41d48f93b794ab1ab59b0a2f9c8edbe5c07 (patch)
treed624d230049607b9cf28e92e4a94fd477171fc94 /src
parentb5ca5b45b1aa47e373af49b27064e813b4f77194 (diff)
parentb225b477d3f6e110bf61ccd88e4ad176504e36b0 (diff)
Update upstream source from tag 'upstream/1.16.0'
Update to upstream version '1.16.0'
with Debian dir 55e2f8b86df2220d682056c78117065bbe3e5a81
Diffstat (limited to 'src')
-rw-r--r--src/devices/wifi/nm-device-wifi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c
index d33d4307..64869672 100644
--- a/src/devices/wifi/nm-device-wifi.c
+++ b/src/devices/wifi/nm-device-wifi.c
@@ -2942,14 +2942,14 @@ act_stage4_ip_config_timeout (NMDevice *device,
 	gboolean may_fail;
 
 	connection = nm_device_get_applied_connection (device);
-	s_ip = nm_connection_get_setting_ip4_config (connection);
+	s_ip = nm_connection_get_setting_ip_config (connection, addr_family);
 	may_fail = nm_setting_ip_config_get_may_fail (s_ip);
 
 	if (priv->mode == NM_802_11_MODE_AP)
 		goto call_parent;
 
 	if (   may_fail
-	    && !is_static_wep (connection)) {
+	    || !is_static_wep (connection)) {
 		/* Not static WEP or failure allowed; let superclass handle it */
 		goto call_parent;
 	}
@@ -2961,7 +2961,7 @@ act_stage4_ip_config_timeout (NMDevice *device,
 	 * types (open, WPA, 802.1x, etc) if the secrets/certs were wrong the
 	 * connection would have failed before IP configuration.
 	 *
-	* Activation failed, we must have bad encryption key */
+	 * Activation failed, we must have bad encryption key */
 	_LOGW (LOGD_DEVICE | LOGD_WIFI,
 	       "Activation: (wifi) could not get IP configuration for connection '%s'.",
 	       nm_connection_get_id (connection));