aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Xie <mattx@google.com>2011-08-10 19:04:44 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-10 19:04:44 -0700
commitf2da73acda7d6b4da5330cfa7a5048aa2b2eeb97 (patch)
tree26d6ceeafaf381644c1efb1353141c25e843d671
parent6b08f121c817cda19431fa472c9640733df05d6f (diff)
downloadbluez-f2da73acda7d6b4da5330cfa7a5048aa2b2eeb97.tar.gz
Revert "Send hci command to disable scan mode in power down function"
This reverts commit 6b08f121c817cda19431fa472c9640733df05d6f
-rw-r--r--plugins/hciops.c9
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;