Send connman mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."
Today's Topics:
1. Unable to establish a data connection on cdma network
(Nicolas ADELL)
----------------------------------------------------------------------
Message: 1
Date: Thu, 2 Mar 2017 10:18:44 +0000
From: Nicolas ADELL <[email protected]>
To: "[email protected]" <[email protected]>
Subject: Unable to establish a data connection on cdma network
Message-ID:
<vi1pr01mb188797a0835df2cf578743bb85...@vi1pr01mb1887.eurprd01.prod.exchangelabs.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi all,
We're using connman 1.31 to manage cdma network using a Cinterion modem. In
particular cases, connman is uncapable to configuring the network.
The current head branch leads to the same behavior.
During its initialization, ofono broadcasts a 'PropertyChanged' signal
notifying the addition of 'org.ofono.cdma.NetworkRegistration' as new interface.
Connman catches this signal and requests its properties. Because, the interface
'org.ofono.cdma.ConnectionManager' is postponed immediately after the request,
connman is not able to retrieve these properties because the pending call did
not have received a reply yet.
?? ?Jan 01 00:31:48 pcm connmand[470]: plugins/ofono.c:api_added() cdma-netreg
added
?? ?Jan 01 00:31:48 pcm connmand[470]: plugins/ofono.c:get_properties()
/cinterionpxs8_0 path /cinterionpxs8_0 org.ofono.cdma.NetworkRegistration
?? ?...
?? ?Jan 01 00:31:48 pcm connmand[470]: plugins/ofono.c:modem_changed()
/cinterionpxs8_0 Interfaces 0x1b
?? ?Jan 01 00:31:48 pcm connmand[470]:
plugins/ofono.c:modem_update_interfaces() /cinterionpxs8_0
?? ?Jan 01 00:31:48 pcm connmand[470]: plugins/ofono.c:api_added() cmda-cm added
?? ?Jan 01 00:31:48 pcm connmand[470]: plugins/ofono.c:get_properties()
/cinterionpxs8_0 path /cinterionpxs8_0 org.ofono.cdma.ConnectionManager
?? ?Jan 01 00:31:48 pcm connmand[470]: Pending GetProperties
?? ?Jan 01 00:31:48 pcm connmand[470]: plugins/ofono.c:get_properties_reply()
/cinterionpxs8_0 path /cinterionpxs8_0 org.ofono.cdma.NetworkRegistration
?? ?Jan 01 00:31:48 pcm connmand[470]:
plugins/ofono.c:cdma_netreg_properties_reply() /cinterionpxs8_0
Then, when ofono broadcasts a PropertyChanged signal into dbus system bus
notifying its new ConnectionManager settings, no context list were created and
connnman is trying to use a NULL list causing a segfault.
?? ?Jan 01 00:31:55 pcm connmand[470]: plugins/ofono.c:get_properties()
/cinterionpxs8_0 path /cinterionpxs8_0 org.ofono.cdma.NetworkRegistration
?? ?Jan 01 00:31:55 pcm connmand[470]:
plugins/ofono.c:cdma_cm_update_settings() /cinterionpxs8_0 Settings
?? ?Jan 01 00:31:55 pcm connmand[470]: Aborting (signal 11) [/usr/sbin/connmand]
The CDMA access technology does not require a context but connman needs to hold
settings into a context.
By modifying the cdma_cm_update_settings() function, we got a better behavior.
First, by checking if a context exists to avoid the aborting situation.
In case of missing context, verifying if a pending call is still waiting a
reply and wait until the pending call is completed if necessary.
Then, connman can send its request to ofono to get its ConnectionManager
properties.
I can work on a patch but that would be interesting if you could give me your
opinion about the situation, confirm me that this is an actual issue, and not a
misinterpretation of the code.
Thanks,
Regards,
Nicolas
------------------------------
Subject: Digest Footer
_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman
------------------------------
End of connman Digest, Vol 17, Issue 2
**************************************