summaryrefslogtreecommitdiffstats
path: root/src/adapter.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-27 18:21:25 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-27 18:21:25 +0200
commit363da064d395925f46be7793ece5800ec66a82ab (patch)
tree2235f89cbd772f69938c9280546eda1204ff4f59 /src/adapter.h
parent041076b043f9d950ea9478cfea956b4cad040dfa (diff)
Don't call read scan enable if the adapter is powering down
When powering down we explicitly set the scan mode to 0 before calling the HCI_DEVDOWN ioctl. To avoid HCI command timeouts track this situation and don't call read scan enable in dbus-hci.c when the command complete for the write scan enable arrives.
Diffstat (limited to 'src/adapter.h')
-rw-r--r--src/adapter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/adapter.h b/src/adapter.h
index 59b00f70..06f558aa 100644
--- a/src/adapter.h
+++ b/src/adapter.h
@@ -139,3 +139,4 @@ const char *adapter_any_get_path(void);
const char *btd_adapter_any_request_path(void);
void btd_adapter_any_release_path(void);
gboolean adapter_is_pairable(struct btd_adapter *adapter);
+gboolean adapter_powering_down(struct btd_adapter *adapter);