Set the off_requested flag in struct btd_adapter to false when receiving confirmation that the adapter is off. The flag is used to indicate that the adapter is in the powering down state and should be cleared when it is actually down. /Daniel
From f863528e4d12eaa3b504eb739d15cdf04e412179 Mon Sep 17 00:00:00 2001 From: Daniel Orstadius <daniel.orstadius@xxxxxxxxx> Date: Wed, 18 Aug 2010 15:46:11 +0300 Subject: [PATCH] Clear the off_requested flag Set the off_requested flag in struct btd_adapter to false when receiving confirmation that the adapter is off. The flag is used to indicate that the adapter is in the powering down state and should be cleared when it is actually down. --- src/adapter.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/adapter.c b/src/adapter.c index b023c01..d5574e8 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -2502,6 +2502,7 @@ int adapter_stop(struct btd_adapter *adapter) adapter->state = DISCOVER_TYPE_NONE; adapter->cache_enable = TRUE; adapter->pending_cod = 0; + adapter->off_requested = FALSE; call_adapter_powered_callbacks(adapter, FALSE); -- 1.6.0.4