diff options
author | Matthew Xie <mattx@google.com> | 2011-08-11 11:42:28 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-08-11 11:42:28 -0700 |
commit | 09cd200b6dc9934a20fa0433ab735c88d3dab86b (patch) | |
tree | feacc3dd1dc9f4e501aa76a929687958cbc70db5 | |
parent | e592a455745e2f8c781672159a751c70e9d3e770 (diff) | |
parent | f2da73acda7d6b4da5330cfa7a5048aa2b2eeb97 (diff) | |
download | bluez-09cd200b6dc9934a20fa0433ab735c88d3dab86b.tar.gz |
Merge "Revert "Send hci command to disable scan mode in power down function""
-rw-r--r-- | plugins/hciops.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/hciops.c b/plugins/hciops.c index ad977295..817a180c 100644 --- a/plugins/hciops.c +++ b/plugins/hciops.c @@ -462,15 +462,8 @@ static int hciops_set_pairable(int index, gboolean pairable) static int hciops_power_off(int index) { struct dev_info *dev = &devs[index]; - uint8_t mode; - DBG("hci%d set scan mode off", index); - mode = SCAN_DISABLED; - if (hci_send_cmd(dev->sk, OGF_HOST_CTL, OCF_WRITE_SCAN_ENABLE, - 1, &mode) < 0) - return -errno; - - DBG("hci%d HCIDEVDOWN", index); + DBG("hci%d", index); if (ioctl(dev->sk, HCIDEVDOWN, index) < 0 && errno != EALREADY) return -errno; |