Hi,

> "struct connman_service *service"  to __connman_service_auto_connect,
> and then ConnMan don't need to lookup the service from service_list again.
>
> I think it is possible to optimize the algorithm, kindly give me your
> advice, please.

No there is nothing to "optimize" here with session,
__connman_service_auto_connect() is an importance piece in service.c.

What if the service the session was connected through is not an
auto-connectable service? What is if does not fit with preferred tech?
etc...

One session cannot decide on its own what to do.

Tomasz
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to