Hi Jiajia,

> Thanks for your answers! Good to know that you are think about Ad-hoc mode. :)
> Still a few questions below.

until yesterday, I didn't :)

> >> 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.
> > 
> 
> When I got the above results, my wireless device was connecting with an AP 
> via ConnMan. Though this AP is inside an isolated WLAN just for testing, 
> should the "Connection" and "State" here indicate this kind of network 
> connection? In other words, what are the definitions for "Connection" and 
> "State" here? Must it be connected with Internet to be "Online"?

That should make no different for the state. The current definition of
online is that you are associated (or cable is plugged in), DHCP
retrieved an IP and that one has been set.

When calling list-connections (or test-manager) do you see any
connection object. If yes, then the state should be online. If not, then
you are not. So if DHCP fails, then your WiFi can be associated, but it
doesn't count as a connection.

> Besides, I still want to ask the question about WEP. I agree that different 
> key-index is useless. But most APs selling in the market implement four 
> different key-index. What if some end users choose those different key index? 
> Will ConnMan reminder them that only key[1] is available?

We can set the same key on all four indexes if that helps anybody, but
other than set I am not sure if that helps, since the card can only use
one index at a time anyway. Also I don't know if the key index makes a
difference over the air? Meaning if it has to match with the index of
the AP. Just never thought about this. I have been dealing with WiFi for
over 10 years now and I have no answer to this. Never used it in my life
and here we are talking about a time where we had only WEP.

Regards

Marcel


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

Reply via email to