NetworkManager r3710 - in trunk: . src
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r3710 - in trunk: . src
- Date: Thu, 29 May 2008 20:55:05 +0000 (UTC)
Author: dcbw
Date: Thu May 29 20:55:05 2008
New Revision: 3710
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3710&view=rev
Log:
2008-05-29 Dan Williams <dcbw redhat com>
* src/nm-device-802-11-wireless.c
- (real_get_best_auto_connection): auto-activate 'shared' method
connections too
Modified:
trunk/ChangeLog
trunk/src/nm-device-802-11-wireless.c
Modified: trunk/src/nm-device-802-11-wireless.c
==============================================================================
--- trunk/src/nm-device-802-11-wireless.c (original)
+++ trunk/src/nm-device-802-11-wireless.c Thu May 29 20:55:05 2008
@@ -944,6 +944,7 @@
NMConnection *connection = NM_CONNECTION (iter->data);
NMSettingConnection *s_con;
NMSettingWireless *s_wireless;
+ NMSettingIP4Config *s_ip4;
s_con = (NMSettingConnection *) nm_connection_get_setting (connection, NM_TYPE_SETTING_CONNECTION);
if (s_con == NULL)
@@ -962,6 +963,11 @@
continue;
}
+ /* Use the connection if it's a shared connection */
+ s_ip4 = (NMSettingIP4Config *) nm_connection_get_setting (connection, NM_TYPE_SETTING_IP4_CONFIG);
+ if (s_ip4 && !strcmp (s_ip4->method, NM_SETTING_IP4_CONFIG_METHOD_SHARED))
+ return connection;
+
for (ap_iter = priv->ap_list; ap_iter; ap_iter = g_slist_next (ap_iter)) {
NMAccessPoint *ap = NM_AP (ap_iter->data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]