[meego-commits] 24721: Changes to MeeGo:1.2.0:oss:Update:Testing/connman

Ying An Deng no_reply at build.meego.com
Mon Jan 9 03:28:11 UTC 2012


Hi,
I have made the following changes to connman in project MeeGo:1.2.0:oss:Update:Testing. Please review and accept ASAP.

Thank You,
Ying An Deng

[This message was auto-generated]

---

Request #24721:

  submit:   home:yingan:branches:MeeGo:1.2.0:oss:Update:Testing/connman(r2)(cleanup) -> MeeGo:1.2.0:oss:Update:Testing/connman


Message:
    Fix bmc23717 by only create context after attached to ps network

State:   new          2012-01-08T19:04:22 yingan
Comment: None



changes files:
--------------
--- connman.changes
+++ connman.changes
@@ -0,0 +1,3 @@
+* Mon Jan 9 2012 DengYingAn <ying.an.deng at intel.com> - 0.69.6
+- Add 0008-ofono-create-the-cellular-context-only-when-attached.patch fixed BMC#23717
+

new:
----
  0008-ofono-create-the-cellular-context-only-when-attached.patch

spec files:
-----------
--- connman.spec
+++ connman.spec
@@ -21,6 +21,7 @@
 Patch4:     0003-service-Destroy-the-GHashTable-counter_table-only-wh.patch
 Patch5:     0004-fix-connman-crash.patch
 Patch6:     0001-ipconfig-Don-t-clear-ipconfig-struct-for-manual-meth.patch
+Patch7:     0008-ofono-create-the-cellular-context-only-when-attached.patch
 Requires:   dbus
 Requires:   wpa_supplicant >= 0.7.1
 Requires:   bluez
@@ -91,6 +92,8 @@
 %patch5 -p1
 # 0001-ipconfig-Don-t-clear-ipconfig-struct-for-manual-meth.patch
 %patch6 -p1
+# 0008-ofono-create-the-cellular-context-only-when-attached.patch
+%patch7 -p1
 # >> setup
 # << setup
 

other changes:
--------------

++++++ 0008-ofono-create-the-cellular-context-only-when-attached.patch (new)
--- 0008-ofono-create-the-cellular-context-only-when-attached.patch
+++ 0008-ofono-create-the-cellular-context-only-when-attached.patch
+From 2af38aa037f30e1f1e8cc3a5e534124bc1d07b5f Mon Sep 17 00:00:00 2001
+From: Nicolas Bertrand <nicolas.bertrand at linux.intel.com>
+Date: Mon, 2 Jan 2012 12:49:08 +0100
+Subject: [PATCH 8/8] ofono: create the cellular context only when attached
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+---
+ plugins/ofono.c |    8 ++++++--
+ 1 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/plugins/ofono.c b/plugins/ofono.c
+index 37099e6..a8e7cb4 100644
+--- a/plugins/ofono.c
++++ b/plugins/ofono.c
+@@ -1080,10 +1080,15 @@ static void modem_gprs_changed(struct modem_data *modem,
+ 	if (g_str_equal(key, "Attached") == TRUE) {
+ 		DBG("Attached %d", value);
+ 
++                if (modem->attached == value)
++                        return;
++                
+ 		modem->attached = value;
+ 
+-		if (value)
++		if (value == TRUE) {
+ 			modem_clear_network_errors(modem);
++                        check_networks(modem);
++                }
+ 	} else if (g_str_equal(key, "Powered") == TRUE) {
+ 		DBG("Powered %d", value);
+ 
+@@ -1128,7 +1133,6 @@ done:
+ 
+ 	dbus_pending_call_unref(call);
+ 
+-	check_networks(modem);
+ }
+ 
+ static void check_gprs(struct modem_data *modem)
+-- 
+1.7.5.4
+

++++++ connman.yaml
--- connman.yaml
+++ connman.yaml
@@ -35,6 +35,7 @@
     - 0003-service-Destroy-the-GHashTable-counter_table-only-wh.patch
     - 0004-fix-connman-crash.patch
     - 0001-ipconfig-Don-t-clear-ipconfig-struct-for-manual-meth.patch
+    - 0008-ofono-create-the-cellular-context-only-when-attached.patch
 Configure: configure
 ConfigOptions:
     - --enable-ethernet=builtin



More information about the MeeGo-commits mailing list