* [PATCH] Clear the off_requested flag
@ 2010-08-18 12:54 Daniel Örstadius
2010-08-18 13:16 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Örstadius @ 2010-08-18 12:54 UTC (permalink / raw)
To: linux-bluetooth
[-- Attachment #1: Type: text/plain, Size: 244 bytes --]
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
[-- Attachment #2: 0001-Clear-the-off_requested-flag.patch --]
[-- Type: text/x-patch, Size: 903 bytes --]
From f863528e4d12eaa3b504eb739d15cdf04e412179 Mon Sep 17 00:00:00 2001
From: Daniel Orstadius <daniel.orstadius@nokia.com>
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Clear the off_requested flag
2010-08-18 12:54 [PATCH] Clear the off_requested flag Daniel Örstadius
@ 2010-08-18 13:16 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2010-08-18 13:16 UTC (permalink / raw)
To: Daniel Örstadius; +Cc: linux-bluetooth
Hi Daniel,
On Wed, Aug 18, 2010, Daniel Örstadius wrote:
> From: Daniel Orstadius <daniel.orstadius@nokia.com>
> 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(-)
Thanks. The patch is now upstream.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-18 13:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-18 12:54 [PATCH] Clear the off_requested flag Daniel Örstadius
2010-08-18 13:16 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).