[PATCH] plugins: hciops: remove scan disable on poweroff

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Pavan Savoy <pavan_savoy@xxxxxxxx>

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

Signed-off-by: Pavan Savoy <pavan_savoy@xxxxxxxx>
---
Â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
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux