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. Re: [PATCH] wifi: Don't perform handle_wps_completion() when
p2p is connecting (Saurav Babu)
2. connman crashes when turn off Wi-Fi during P2P connection
establishing (Vasyl Vavrychuk)
3. Connman + ofono + telit le910v2 : no service (Louis Rannou)
----------------------------------------------------------------------
Message: 1
Date: Fri, 1 Dec 2017 12:01:50 +0530
From: Saurav Babu <[email protected]>
To: [email protected]
Cc: [email protected], Saurav Babu <[email protected]>
Subject: Re: [PATCH] wifi: Don't perform handle_wps_completion() when
p2p is connecting
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
Hello Jose,
Sorry for the late reply.
> Digging into this issue I reached the conclusion that when P2P is
> connecting, we actually do not need to handle interface state changes
> G_SUPPLICANT_STATE_*. Instead, the connection success is completely
> based on the peer state CONNMAN_PEER_STATE_*.
> Therefore, we should ignore all the interface state changes during the
> P2P connection, otherwise it could result in an inconsistency. In
> fact, I tested your patch and it solves the connection problem but at
> the end of the connection the service belonging to the just created
> P2P group, goes in "association" state and we do not want this.
> Here my proposal:
> From f4cfb7707af3c97a3beca1007c0145ba15bf772c Mon Sep 17 00:00:00 2001
> From: Jose Blanquicet
> Date: Sun, 22 Oct 2017 19:39:31 +0200
> Subject: [PATCH] wifi: Avoid state machine moves forward with P2P networks
> ---
> plugins/wifi.c | 4 ++++
> 1 file changed, 4 insertions(+)
> diff --git a/plugins/wifi.c b/plugins/wifi.c
> index 74f216d..c2226a3 100644
> --- a/plugins/wifi.c
> +++ b/plugins/wifi.c
> @@ -2822,6 +2822,10 @@ static void
> network_associated(GSupplicantNetwork *network)
> if (!wifi)
> return;
> + /* P2P networks must not be treated as WiFi networks */
> + if (wifi->p2p_connecting || wifi->p2p_device)
> + return;
> +
> identifier = g_supplicant_network_get_identifier(network);
> connman_network = connman_device_get_network(wifi->device, identifier);
> --
> 1.9.1
> wifi->p2p_device will handle system's configuration where the P2P
> group interface is created and wifi->p2p_connecting where it is not.
> Could you please test this patch and give us your feedback?
This patch worked for me.
Thanks,
Saurav
------------------------------
Message: 2
Date: Fri, 1 Dec 2017 10:19:37 +0200
From: Vasyl Vavrychuk <[email protected]>
To: [email protected]
Subject: connman crashes when turn off Wi-Fi during P2P connection
establishing
Message-ID:
<CAGj4m+6B-yVpaF+9eRi6K21=mdw6o2scjfejwez_lvfux-s...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
g_str_hash (v=0x0) at
/usr/src/debug/glib-2.0/1_2.50.3-r0/glib-2.50.3/glib/ghash.c:1876
1876 for (p = v; *p != '\0'; p++)
(gdb) bt
#0 g_str_hash (v=0x0) at
/usr/src/debug/glib-2.0/1_2.50.3-r0/glib-2.50.3/glib/ghash.c:1876
#1 0xb6f026a0 in g_hash_table_lookup_node (hash_return=<synthetic
pointer>, key=0x0, hash_table=0xe0288) at
/usr/src/debug/glib-2.0/1_2.50.3-r0/glib-2.50.3/glib/ghash.c:375
#2 g_hash_table_lookup_extended (hash_table=0xe0288, lookup_key=0x0,
orig_key=orig_key@entry=0x0, value=0xe2680, value@entry=0x0) at
/usr/src/debug/glib-2.0/1_2.50.3-r0/glib-2.50.3/glib/ghash.c:1184
#3 0x0008e378 in allow_property_changed (peer=0xe3fe0) at
/usr/src/debug/connman/1.35-r1/connman-1.35/src/peer.c:275
#4 state_changed (peer=0xe3fe0) at
/usr/src/debug/connman/1.35-r1/connman-1.35/src/peer.c:429
#5 connman_peer_set_state (peer=peer@entry=0xe3fe0,
new_state=new_state@entry=CONNMAN_PEER_STATE_DISCONNECT) at
/usr/src/debug/connman/1.35-r1/connman-1.35/src/peer.c:930
#6 0x0008e7c4 in peer_disconnect (peer=peer@entry=0xe3fe0) at
/usr/src/debug/connman/1.35-r1/connman-1.35/src/peer.c:633
#7 0x0008e85c in report_error_cb (user_context=0xe3fe0, retry=<optimized
out>, user_data=<optimized out>) at
/usr/src/debug/connman/1.35-r1/connman-1.35/src/peer.c:852
#8 0x00060ea8 in report_error_reply (reply=0x1015c8, user_data=0xd12c8) at
/usr/src/debug/connman/1.35-r1/connman-1.35/src/agent.c:369
#9 0x00060fc4 in agent_finalize_pending (reply=reply@entry=0x1015c8,
agent=<optimized out>) at
/usr/src/debug/connman/1.35-r1/connman-1.35/src/agent.c:121
#10 0x00061120 in agent_receive_message (call=0xfb9e0, user_data=0xfc4f0)
at /usr/src/debug/connman/1.35-r1/connman-1.35/src/agent.c:208
#11 0xb6e8d8bc in ?? () from /usr/lib/libdbus-1.so.3
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.01.org/pipermail/connman/attachments/20171201/cb5dfbd5/attachment-0001.html>
------------------------------
Message: 3
Date: Fri, 1 Dec 2017 15:27:35 +0100
From: Louis Rannou <[email protected]>
To: [email protected]
Subject: Connman + ofono + telit le910v2 : no service
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
Hello,
I am trying to get a connection with a GSM modem Telit LE910 v2.
When I power it on, everything goes well, the technology is present :
connmanctl> technologies
/net/connman/technology/cellular
? Name = Cellular
? Type = cellular
? Powered = True
? Connected = False
? Tethering = False
/net/connman/technology/ethernet
? Name = Wired
? Type = ethernet
? Powered = True
? Connected = True
? Tethering = False
?but I don't get the associated service (only the service from the
ethernet connection) :
connmanctl> services
*AR Wired??????????????? ethernet_f8811a0424e0_cable
I can force the activation through dbus, but that's not very satisfying.
dbus-send --system --print-reply --dest=org.ofono /telit_0/context1
org.ofono.ConnectionContext.SetProperty string:"Active" variant:boolean:"true"
Files attached are logs from connman and ofono merged together, and the
d-bus capture.
Am I missing something ?
Thanks,
Louis.
--
Logo <http://www.smile.eu/>
14 rue G?nissieu
38000 Grenoble
*Louis RANNOU*
Ing?nieur ?tudes et D?veloppement
email [email protected] <mailto:[email protected]>
url http://www.smile.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.01.org/pipermail/connman/attachments/20171201/355e8a5d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ofono-connman.log
Type: text/x-log
Size: 33092 bytes
Desc: not available
URL:
<http://lists.01.org/pipermail/connman/attachments/20171201/355e8a5d/attachment.log>
-------------- next part --------------
signal time=1512137918.977342 sender=org.freedesktop.DBus -> destination=:1.6
serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus;
member=NameAcquired
string ":1.6"
signal time=1512137918.980607 sender=org.freedesktop.DBus -> destination=:1.6
serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus;
member=NameLost
string ":1.6"
signal time=1512137955.256091 sender=:1.4 -> destination=(null destination)
serial=14 path=/; interface=org.ofono.Manager; member=ModemAdded
object path "/telit_0"
array [
dict entry(
string "Online"
variant boolean false
)
dict entry(
string "Powered"
variant boolean false
)
dict entry(
string "Lockdown"
variant boolean false
)
dict entry(
string "Emergency"
variant boolean false
)
dict entry(
string "Interfaces"
variant array [
]
)
dict entry(
string "Features"
variant array [
]
)
dict entry(
string "Type"
variant string "hardware"
)
]
method call time=1512137955.301124 sender=:1.3 -> destination=org.ofono
serial=54 path=/telit_0; interface=org.ofono.Modem; member=SetProperty
string "Powered"
variant boolean true
method return time=1512137955.450977 sender=:1.4 -> destination=:1.3 serial=15
reply_serial=54
signal time=1512137955.483771 sender=:1.4 -> destination=(null destination)
serial=16 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Powered"
variant boolean true
signal time=1512137955.515765 sender=:1.4 -> destination=(null destination)
serial=17 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Interfaces"
variant array [
string "org.ofono.SimManager"
]
method call time=1512137955.548497 sender=:1.3 -> destination=org.ofono
serial=55 path=/telit_0; interface=org.ofono.Modem; member=SetProperty
string "Powered"
variant boolean true
signal time=1512137955.562826 sender=:1.4 -> destination=(null destination)
serial=18 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Features"
variant array [
string "sim"
]
method return time=1512137955.590490 sender=:1.4 -> destination=:1.3 serial=19
reply_serial=55
signal time=1512137955.745514 sender=:1.4 -> destination=(null destination)
serial=20 path=/telit_0; interface=org.ofono.SimManager; member=PropertyChanged
string "Present"
variant boolean true
signal time=1512137955.753355 sender=:1.4 -> destination=(null destination)
serial=21 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Manufacturer"
variant string "Telit"
signal time=1512137955.767745 sender=:1.4 -> destination=(null destination)
serial=22 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Model"
variant string "LE910-EU V2"
signal time=1512137955.813785 sender=:1.4 -> destination=(null destination)
serial=23 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Revision"
variant string "20.00.402"
signal time=1512137955.880147 sender=:1.4 -> destination=(null destination)
serial=24 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Serial"
variant string "351622073603819"
signal time=1512137955.976078 sender=:1.4 -> destination=(null destination)
serial=25 path=/telit_0; interface=org.ofono.SimManager; member=PropertyChanged
string "CardIdentifier"
variant string "8933201417016256791"
signal time=1512137956.113834 sender=:1.4 -> destination=(null destination)
serial=26 path=/telit_0; interface=org.ofono.SimManager; member=PropertyChanged
string "PreferredLanguages"
variant array [
string "fr"
]
signal time=1512137956.173658 sender=:1.4 -> destination=(null destination)
serial=27 path=/telit_0; interface=org.ofono.SimManager; member=PropertyChanged
string "Retries"
variant array [
dict entry(
string "pin"
byte 3
)
dict entry(
string "pin2"
byte 3
)
dict entry(
string "puk"
byte 10
)
dict entry(
string "puk2"
byte 10
)
]
signal time=1512137956.569057 sender=:1.4 -> destination=(null destination)
serial=28 path=/telit_0; interface=org.ofono.SimManager; member=PropertyChanged
string "SubscriberIdentity"
variant string "208201401625679"
signal time=1512137956.648766 sender=:1.4 -> destination=(null destination)
serial=29 path=/telit_0; interface=org.ofono.SimManager; member=PropertyChanged
string "MobileCountryCode"
variant string "208"
signal time=1512137956.664376 sender=:1.4 -> destination=(null destination)
serial=30 path=/telit_0; interface=org.ofono.SimManager; member=PropertyChanged
string "MobileNetworkCode"
variant string "20"
signal time=1512137956.673442 sender=:1.3 -> destination=(null destination)
serial=56 path=/; interface=net.connman.Manager; member=TechnologyAdded
object path "/net/connman/technology/cellular"
array [
dict entry(
string "Name"
variant string "Cellular"
)
dict entry(
string "Type"
variant string "cellular"
)
dict entry(
string "Powered"
variant boolean false
)
dict entry(
string "Connected"
variant boolean false
)
dict entry(
string "Tethering"
variant boolean false
)
]
method call time=1512137956.726901 sender=:1.3 -> destination=org.ofono
serial=57 path=/telit_0; interface=org.ofono.Modem; member=SetProperty
string "Online"
variant boolean true
signal time=1512137956.765311 sender=:1.4 -> destination=(null destination)
serial=31 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Online"
variant boolean true
signal time=1512137956.793544 sender=:1.3 -> destination=(null destination)
serial=58 path=/net/connman/technology/cellular;
interface=net.connman.Technology; member=PropertyChanged
string "Powered"
variant boolean true
signal time=1512137956.843981 sender=:1.4 -> destination=(null destination)
serial=32 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Interfaces"
variant array [
string "org.ofono.AllowedAccessPoints"
string "org.ofono.SimManager"
]
signal time=1512137956.845209 sender=:1.4 -> destination=(null destination)
serial=33 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Features"
variant array [
string "sim"
]
method return time=1512137956.846193 sender=:1.4 -> destination=:1.3 serial=34
reply_serial=57
signal time=1512137957.020120 sender=:1.4 -> destination=(null destination)
serial=35 path=/telit_0; interface=org.ofono.SimManager; member=PropertyChanged
string "SubscriberNumbers"
variant array [
string "+33698850152"
]
method call time=1512137957.140960 sender=:1.4 -> destination=org.bluez
serial=36 path=/org/bluez; interface=org.bluez.ProfileManager1;
member=RegisterProfile
object path "/bluetooth/profile/dun_gw"
string "00001103-0000-1000-8000-00805f9b34fb"
array [
dict entry(
string "Name"
variant string "dun_gw"
)
dict entry(
string "Version"
variant uint16 256
)
]
error time=1512137957.153992 sender=org.freedesktop.DBus -> destination=:1.4
error_name=org.freedesktop.DBus.Error.ServiceUnknown reply_serial=36
string "The name org.bluez was not provided by any .service files"
signal time=1512137957.179317 sender=:1.4 -> destination=(null destination)
serial=37 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Interfaces"
variant array [
string "org.ofono.ConnectionManager"
string "org.ofono.AllowedAccessPoints"
string "org.ofono.SimManager"
]
method call time=1512137957.203468 sender=:1.3 -> destination=org.ofono
serial=59 path=/telit_0; interface=org.ofono.ConnectionManager;
member=GetProperties
signal time=1512137957.216227 sender=:1.4 -> destination=(null destination)
serial=38 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Features"
variant array [
string "gprs"
string "sim"
]
method call time=1512137957.235555 sender=:1.3 -> destination=org.ofono
serial=60 path=/telit_0; interface=org.ofono.ConnectionManager;
member=GetContexts
method return time=1512137957.247633 sender=:1.4 -> destination=:1.3 serial=39
reply_serial=59
array [
dict entry(
string "Attached"
variant boolean false
)
dict entry(
string "Bearer"
variant string "none"
)
dict entry(
string "RoamingAllowed"
variant boolean false
)
dict entry(
string "Powered"
variant boolean true
)
]
method return time=1512137957.286238 sender=:1.4 -> destination=:1.3 serial=40
reply_serial=60
array [
struct {
object path "/telit_0/context1"
array [
dict entry(
string "Name"
variant string "Internet"
)
dict entry(
string "Active"
variant boolean false
)
dict entry(
string "Type"
variant string "internet"
)
dict entry(
string "Protocol"
variant string "ip"
)
dict entry(
string "AccessPointName"
variant string ""
)
dict entry(
string "Username"
variant string ""
)
dict entry(
string "Password"
variant string ""
)
dict entry(
string "AuthenticationMethod"
variant string "chap"
)
dict entry(
string "Settings"
variant array [
]
)
dict entry(
string "IPv6.Settings"
variant array [
]
)
]
}
]
signal time=1512137957.383592 sender=:1.4 -> destination=(null destination)
serial=41 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Interfaces"
variant array [
string "org.ofono.NetworkRegistration"
string "org.ofono.ConnectionManager"
string "org.ofono.AllowedAccessPoints"
string "org.ofono.SimManager"
]
signal time=1512137957.437508 sender=:1.4 -> destination=(null destination)
serial=42 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Features"
variant array [
string "net"
string "gprs"
string "sim"
]
signal time=1512137957.455035 sender=:1.4 -> destination=(null destination)
serial=43 path=/telit_0; interface=org.ofono.NetworkRegistration;
member=PropertyChanged
string "Status"
variant string "registered"
signal time=1512137957.469016 sender=:1.4 -> destination=(null destination)
serial=44 path=/telit_0; interface=org.ofono.NetworkRegistration;
member=PropertyChanged
string "LocationAreaCode"
variant uint16 20641
signal time=1512137957.481057 sender=:1.4 -> destination=(null destination)
serial=45 path=/telit_0; interface=org.ofono.NetworkRegistration;
member=PropertyChanged
string "CellId"
variant uint32 4194501
signal time=1512137957.490646 sender=:1.4 -> destination=(null destination)
serial=46 path=/telit_0; interface=org.ofono.NetworkRegistration;
member=PropertyChanged
string "Technology"
variant string "hspa"
signal time=1512137957.528505 sender=:1.4 -> destination=(null destination)
serial=47 path=/telit_0; interface=org.ofono.SimManager; member=PropertyChanged
string "ServiceProviderName"
variant string "Bouygues Telecom"
signal time=1512137957.572204 sender=:1.4 -> destination=(null destination)
serial=48 path=/telit_0; interface=org.ofono.NetworkRegistration;
member=PropertyChanged
string "Strength"
variant byte 100
signal time=1512137959.302877 sender=:1.4 -> destination=(null destination)
serial=49 path=/telit_0; interface=org.ofono.NetworkRegistration;
member=PropertyChanged
string "Name"
variant string "Bouygues Telecom"
signal time=1512137959.321168 sender=:1.4 -> destination=(null destination)
serial=50 path=/telit_0; interface=org.ofono.NetworkRegistration;
member=PropertyChanged
string "MobileCountryCode"
variant string "208"
signal time=1512137959.343203 sender=:1.4 -> destination=(null destination)
serial=51 path=/telit_0; interface=org.ofono.NetworkRegistration;
member=PropertyChanged
string "MobileNetworkCode"
variant string "20"
signal time=1512137959.362120 sender=:1.4 -> destination=(null destination)
serial=52 path=/telit_0; interface=org.ofono.ConnectionManager;
member=PropertyChanged
string "Attached"
variant boolean true
method call time=1512137959.419372 sender=:1.3 -> destination=org.ofono
serial=61 path=/telit_0; interface=org.ofono.NetworkRegistration;
member=GetProperties
signal time=1512137959.434302 sender=:1.4 -> destination=(null destination)
serial=53 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Interfaces"
variant array [
string "org.ofono.Phonebook"
string "org.ofono.NetworkRegistration"
string "org.ofono.ConnectionManager"
string "org.ofono.AllowedAccessPoints"
string "org.ofono.SimManager"
]
signal time=1512137959.442830 sender=:1.4 -> destination=(null destination)
serial=54 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Features"
variant array [
string "net"
string "gprs"
string "sim"
]
method return time=1512137959.467639 sender=:1.4 -> destination=:1.3 serial=55
reply_serial=61
array [
dict entry(
string "Status"
variant string "registered"
)
dict entry(
string "Mode"
variant string "auto"
)
dict entry(
string "LocationAreaCode"
variant uint16 20641
)
dict entry(
string "CellId"
variant uint32 4194501
)
dict entry(
string "Technology"
variant string "hspa"
)
dict entry(
string "MobileCountryCode"
variant string "208"
)
dict entry(
string "MobileNetworkCode"
variant string "20"
)
dict entry(
string "Name"
variant string "Bouygues Telecom"
)
dict entry(
string "Strength"
variant byte 100
)
]
signal time=1512137959.644548 sender=:1.4 -> destination=(null destination)
serial=56 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Interfaces"
variant array [
string "org.ofono.SmartMessaging"
string "org.ofono.PushNotification"
string "org.ofono.MessageManager"
string "org.ofono.Phonebook"
string "org.ofono.NetworkRegistration"
string "org.ofono.ConnectionManager"
string "org.ofono.AllowedAccessPoints"
string "org.ofono.SimManager"
]
signal time=1512137959.656850 sender=:1.4 -> destination=(null destination)
serial=57 path=/telit_0; interface=org.ofono.Modem; member=PropertyChanged
string "Features"
variant array [
string "sms"
string "net"
string "gprs"
string "sim"
]
signal time=1512137961.122882 sender=:1.4 -> destination=(null destination)
serial=58 path=/telit_0; interface=org.ofono.NetworkRegistration;
member=PropertyChanged
string "Strength"
variant byte 80
signal time=1512137964.971481 sender=:1.4 -> destination=(null destination)
serial=59 path=/telit_0; interface=org.ofono.NetworkRegistration;
member=PropertyChanged
string "LocationAreaCode"
variant uint16 31183
signal time=1512137965.001981 sender=:1.4 -> destination=(null destination)
serial=60 path=/telit_0; interface=org.ofono.NetworkRegistration;
member=PropertyChanged
string "CellId"
variant uint32 130777600
signal time=1512137965.002826 sender=:1.4 -> destination=(null destination)
serial=61 path=/telit_0; interface=org.ofono.NetworkRegistration;
member=PropertyChanged
string "Technology"
variant string "lte"
signal time=1512137966.114638 sender=:1.4 -> destination=(null destination)
serial=62 path=/telit_0; interface=org.ofono.ConnectionManager;
member=PropertyChanged
string "Bearer"
variant string "lte"
signal time=1512138011.112174 sender=:1.4 -> destination=(null destination)
serial=63 path=/telit_0; interface=org.ofono.NetworkRegistration;
member=PropertyChanged
string "Strength"
variant byte 60
signal time=1512138016.107832 sender=:1.4 -> destination=(null destination)
serial=64 path=/telit_0; interface=org.ofono.NetworkRegistration;
member=PropertyChanged
string "Strength"
variant byte 80
------------------------------
Subject: Digest Footer
_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman
------------------------------
End of connman Digest, Vol 26, Issue 1
**************************************