Hi Jiajia,

> I tried create-network against commit 
> 76fc6c0e0c2ad9890a5cfde7b503b11276f64a95 (Only allow WiFi devices to create 
> networks for now).
> I created a network named "testing". But it has less properties then other 
> wireless networks listed. Why are they different? Is "create-network" used to 
> create an Ad-hoc network?

I only did limited testing on this and I assume there are still some
bits missing. My intention here was actually to create a network for an
AP that is hidden.

I might have to get the semantics in the API specification a little bit
more correct. Totally forgot the Ad-Hoc case. So currently I am thinking
about adding WiFi.Mode property since we do wanna indicate Ad-Hoc
networks differently.

And maybe renaming CreateNetwork to JoinNetwork might be a good idea.
Let me think about it.

> Here is the result I got: 
> "otc_11215947_dlink2_a" is an AP, "testing" is the network I created.
>     [ /dev_00_13_E8_05_7E_7D/otc_11215947_dlink2_a ]
>         Available = 1
>         Strength = 42
>         WiFi.Passphrase =
>         Remember = 0
>         WiFi.Security = none
>         Policy = auto
>         Connected = 0
>         WiFi.SSID = [ otc-11215947-dlink2-a ]
>         Device = /dev_00_13_E8_05_7E_7D
>         Name = otc-11215947-dlink2-a
>     [ /dev_00_13_E8_05_7E_7D/testing ]
>         Available = 0
>         Remember = 1
>         Policy = auto
>         Connected = 0
>         Device = /dev_00_13_E8_05_7E_7D
>         Name = testing
> 
> And my test machine is connected with Internet, but the "State" of "manager" 
> interface is always "offline". 
>     Connections = dbus.Array([], signature=dbus.Signature('o'), 
> variant_level=1)
> **** Is it for ethernet connection or wifi connection? Is this "Connection" 
> expected to be the path of the connected network?
>     State = offline
> **** Why is the "State" always offline? 
>     Devices = dbus.Array([dbus.ObjectPath('/dev_00_0E_0C_72_BC_68'), 
> dbus.ObjectPath('/dev_00_13_E8_05_7E_7D')], signature=dbus.Signature('o'), 
> variant_level=1)
>     Profiles = dbus.Array([dbus.ObjectPath('/profile/default')], 
> signature=dbus.Signature('o'), variant_level=1)

If you don't connect via ConnMan, then we are still not tracking the
state for self-made connections. There is limited code to deal with the
default gateway, but the IP tracking is still incomplete. The RTNL stuff
is really complicated.

Also the State only indicates the ConnMan managed networks. If you use
for example -i wlan0, then whatever you do on eth0 doesn't matter.

Regards

Marcel


_______________________________________________
connman mailing list
[email protected]
https://lists.moblin.org/mailman/listinfo/connman

Reply via email to