Linux bluetooth development
 help / color / mirror / Atom feed
From: pavan.savoy@gmail.com
To: linux-bluetooth@vger.kernel.org, johan.hedberg@gmail.com
Cc: Pavan Savoy <pavan_savoy@sify.com>
Subject: [PATCH] plugins: hciops: remove scan disable on poweroff
Date: Wed, 26 Jan 2011 16:51:55 +0530	[thread overview]
Message-ID: <1296040915-5519-1-git-send-email-pavan_savoy@sify.com> (raw)

From: Pavan Savoy <pavan_savoy@sify.com>

remove sending of the scan disable command when the
device is being powered off.

Signed-off-by: Pavan Savoy <pavan_savoy@sify.com>
---
 plugins/hciops.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/plugins/hciops.c b/plugins/hciops.c
index 719ef01..59a15a0 100644
--- a/plugins/hciops.c
+++ b/plugins/hciops.c
@@ -335,14 +335,9 @@ 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 = SCAN_DISABLED;
 
 	DBG("hci%d", index);
 
-	if (hci_send_cmd(dev->sk, OGF_HOST_CTL,
-					OCF_WRITE_SCAN_ENABLE, 1, &mode) < 0)
-		return -errno;
-
 	if (ioctl(dev->sk, HCIDEVDOWN, index) < 0 && errno != EALREADY)
 		return -errno;
 
-- 
1.7.0.4


             reply	other threads:[~2011-01-26 11:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-26 11:21 pavan.savoy [this message]
2011-01-26 11:36 ` [PATCH] plugins: hciops: remove scan disable on poweroff Johan Hedberg
2011-01-26 12:39   ` Pavan Savoy
     [not found] <1295973136-30908-1-git-send-email-pavan_savoy@sify.com>
2011-01-25 16:33 ` Pavan Savoy
2011-01-26 11:16   ` Johan Hedberg
2011-01-26 11:26     ` Pavan Savoy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1296040915-5519-1-git-send-email-pavan_savoy@sify.com \
    --to=pavan.savoy@gmail.com \
    --cc=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=pavan_savoy@sify.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox