Hi, Alok
> 
> turn on/off Airplane mode quickly? IMHO the UI should grey 
> out the button
> when there is a operation
> in progress.
> 

I talked about this issue with Padovan in my previous patch, and we come to a 
conclusion that:
Connman should have a protect mechanism to make sure that even app layer 
doesn't handle this logic process(grey out the button),  
connman status should not be conflict, for the logic process should be handled 
in connman instead of app layer,
which will make connman more robust, right?

> >
> > I think if each device can maintain the device status 
> itself and record the
> > last power request,
> > It may fix the issue above in a nice way. So I suggest to use
> > powered_pending flag to record the
> > last power request and return EINPROGRESS instead of just 
> returning EBUSY,
> > which will ignore
> > the power request when device is busy.
> >
> > So what's your suggestions about it?
> 
> 
> It returns EINPROGRESS(or success) when a power command is issued
> successfully and returns EBUSY when there is
> already a request queued.
> 

Do you mean that we will still keep the queue? I just think in this condition, 
for we only need to concern the last power command,
Keeping a bool variable powered_pending to handle it is enough, maybe a queue 
is not very necessary, any suggestions?



Best Regards,
zhengguang
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to