I am investigating all sort of odd state issues with connman and my user
interface / application and the latest oddity is that when I issue:
net.connman.Service.Disconnect
and then:
net.connman.Manager.SetProperty OfflineMode 1
I end up in a state in which no services are connected, yet connman still
reports that State=online and ConnectedTechnologies = [ wifi ], despite the
fact that there are no connected services or technologies. Is this normal,
expected, as-designed behavior?
# Execute /profile/default/wifi_000c294c56a2_53706f74_managed_psk
net.connman.Service.Disconnect
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
connmand[783]: Disabling DNS server 10.2.0.1
connmand[783]: Removing DNS server 10.2.0.1
connmand[783]: Deleting host route failed (No such process)
connmand[783]: Deleting host route failed (No such process)
connmand[783]: Deleting host route failed (No such process)
connmand[783]: wlan0 {add} route ff00:: gw :: scope 0 <UNIVERSE>
connmand[783]: wlan0 {add} route fe80:: gw :: scope 0 <UNIVERSE>
connmand[783]: wlan0 {update} flags 69635 <UP,LOWER_UP>
connmand[783]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu 1500
connmand[783]: wlan0 {RX} 294135 packets 49409107 bytes
connmand[783]: wlan0 {TX} 54258 packets 15941232 bytes
connmand[783]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu 1500
connmand[783]: wlan0 {newlink} index 2 operstate 5 <DORMANT>
connmand[783]: wlan0 {update} flags 69699 <UP,RUNNING,LOWER_UP>
connmand[783]: wlan0 {RX} 294135 packets 49409107 bytes
connmand[783]: wlan0 {TX} 54258 packets 15941232 bytes
connmand[783]: wlan0 {update} flags 4099 <UP>
connmand[783]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu 1500
connmand[783]: wlan0 {newlink} index 2 operstate 2 <DOWN>
connmand[783]: wlan0 {del} route 10.2.0.1 gw 0.0.0.0 scope 253 <LINK>
connmand[783]: wlan0 {del} route 0.0.0.0 gw 10.2.0.1 scope 0 <UNIVERSE>
connmand[783]: wlan0 {del} address 10.2.0.144/16 label wlan0
connmand[783]: wlan0 {del} route 10.2.0.0 gw 0.0.0.0 scope 253 <LINK>
connmand[783]: wlan0 {RX} 294135 packets 49409107 bytes
connmand[783]: wlan0 {TX} 54258 packets 15941232 bytes
connmand[783]: wlan0 {update} flags 4098 <DOWN>
connmand[783]: wlan0 {newlink} index 2 address 00:0c:29:4c:56:a2 mtu 1500
connmand[783]: wlan0 {newlink} index 2 operstate 2 <DOWN>
connmand[783]: wlan0 {del} route fe80:: gw :: scope 0 <UNIVERSE>
connmand[783]: wlan0 {del} route ff00:: gw :: scope 0 <UNIVERSE>
# dbus-send --system --dest=net.connman --print-reply
/profile/default/wifi_000c294c56a2_53706f74_managed_psk net.connman.Service.
GetProperties
Error org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with
signature "" on interface "net.connman.Service" doesn't exist
# dbus-send --system --dest=net.connman --print-reply /
net.connman.Manager.GetServices
method return sender=:1.27 -> dest=:1.43 reply_serial=2
array [
]
# dbus-send --system --dest=net.connman --print-reply
/ net.connman.Manager.GetProperties
method return sender=:1.27 -> dest=:1.31 reply_serial=2
array [
dict entry(
string "ActiveProfile"
variant object path "/profile/default"
)
dict entry(
string "Profiles"
variant array [
object path "/profile/default"
]
)
dict entry(
string "Services"
variant array [
]
)
dict entry(
string "Technologies"
variant array [
object path "/net/connman/technology/wifi"
]
)
dict entry(
string "State"
variant string "online"
)
dict entry(
string "OfflineMode"
variant boolean true
)
dict entry(
string "AvailableTechnologies"
variant array [
string "wifi"
]
)
dict entry(
string "EnabledTechnologies"
variant array [
]
)
dict entry(
string "ConnectedTechnologies"
variant array [
string "wifi"
]
)
dict entry(
string "DefaultTechnology"
variant string ""
)
dict entry(
string "AvailableDebugs"
variant array [
]
)
dict entry(
string "EnabledDebugs"
variant array [
]
)
]
# dbus-send --system --dest=net.connman --print-reply /
net.connman.Manager.GetState
method return sender=:1.27 -> dest=:1.41 reply_serial=2
string "online"
# dbus-send --system --dest=net.connman --print-reply /
net.connman.Manager.GetState
method return sender=:1.27 -> dest=:1.42 reply_serial=2
string "online"
# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:15982 errors:0 dropped:0 overruns:0 frame:0
TX packets:15982 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1136645 (1.0 MiB) TX bytes:1136645 (1.0 MiB)
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman