From: Patrik Flykt <[email protected]>
---
src/session.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/session.c b/src/session.c
index e4c2081..4cf643c 100644
--- a/src/session.c
+++ b/src/session.c
@@ -562,13 +562,16 @@ static int service_type_weight(enum connman_service_type
type)
* to use. Nevertheless we have to sort them
* according their type. The ordering is
*
- * 1. Ethernet
- * 2. Bluetooth
- * 3. WiFi/WiMAX
- * 4. GSM/UTMS/3G
+ * 1. VPN
+ * 2. Ethernet
+ * 3. Bluetooth
+ * 4. WiFi/WiMAX
+ * 5. GSM/UTMS/3G
*/
switch (type) {
+ case CONNMAN_SERVICE_TYPE_VPN:
+ return 5;
case CONNMAN_SERVICE_TYPE_ETHERNET:
return 4;
case CONNMAN_SERVICE_TYPE_BLUETOOTH:
@@ -581,7 +584,6 @@ static int service_type_weight(enum connman_service_type
type)
case CONNMAN_SERVICE_TYPE_UNKNOWN:
case CONNMAN_SERVICE_TYPE_SYSTEM:
case CONNMAN_SERVICE_TYPE_GPS:
- case CONNMAN_SERVICE_TYPE_VPN:
case CONNMAN_SERVICE_TYPE_GADGET:
break;
}
--
1.7.2.5
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman