Hi Marcel:
In order to make the auto-connection more simply to be handled, I suggest add 
"auto-connect mode" and "manual" mode. 

See below state changing:

+------------------------+         
|connman-off/flight-mode | <---------+ 
+------------------------+           |            
         |                           |
         |(1)                        |
         V                           |
  +------------------+               |
  |auto-connect mode |               |(4)
  +------------------+               |
     |        A                      |
     |(2)     |(3)                   |
     V        |                      |
  +------------------+               |
  |   manual mode    | ______________|
  +------------------+

(1) After system booting and flight-mode off, ConnMan will be in auto-connect 
mode, at this mode ConnMan will handle connection automatically..
(2) Once user manually connect/disconnect or join network, ConnMan will be 
manual mode. Auto-connect will not work.
(3) User can choose to let ConnMan back to auto-connect mode. 

Without the two modes, any auto-connection involving user operation will 
confuse user easily, and makes the implementation of auto-connection quite 
complicated.
Think of below situations.
1. The new created service may terminate the connecting of guest, which leads 
Connman-0.21 can not connect to Guest network sometimes.
2. User chose to connect one service. But auto-connect may terminate the 
connecting and connect to other one. That confuse user quite a lot.
I think add "auto-connect" and "manual" mode can easily resolve above issue.
If you agree I can give out the patch.
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to