Hi Harish,
On 03/17/2017 08:12 AM, Harish Jenny K N wrote:
Currently only if the service state is
CONNMAN_SERVICE_STATE_FAILURE,
the service is allowed to be removed. This commit allows removing the
service when service state is CONNMAN_SERVICE_STATE_IDLE and
CONNMAN_SERVICE_STATE_DISCONNECT.
This is needed if a connection attempt fails and the service State is in
CONNMAN_SERVICE_STATE_IDLE or CONNMAN_SERVICE_STATE_DISCONNECT, Remove()
method can be used to reset the service to clear any wrong passphrase given.
Signed-off-by: Harish Jenny K N <harish_kandiga(a)mentor.com>
I dropped the SoB because we don't do it for ConnMan.
---
doc/service-api.txt | 4 ++--
src/service.c | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/doc/service-api.txt b/doc/service-api.txt
index e2e9e84..c3682e2 100644
--- a/doc/service-api.txt
+++ b/doc/service-api.txt
@@ -91,8 +91,8 @@ Methods dict GetProperties() [deprecated]
to false, but that is currently not supported.
In the case a connection attempt failed and the
- service is in the State=failure, this method can
- also be used to reset the service.
+ service is in the State=FAILURE|IDLE|DISCONNECT, this
+ method can also be used to reset the service.
I also streamlined the 'State=F...' with the rest of the document. We
list the state normally as 'idle', '...'
Patch applied with the above mentioned changes.
Thanks,
Daniel