Skip to contentSkip to conversation

plugins: hciops: remove scan disable on poweroff

PATCH In review Pavan Savoy 2 participants 3 messages Jan 25, 2011 – Jan 26, 2011 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 plugins: hciops: remove scan disable on poweroff

From: Pavan Savoy <[email protected]>

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

---
 plugins/hciops.c |    5 -----

 1 files changed, 0 insertions(+), 5 deletions(-)
plugins/hciops.c +0 -0
index 719ef01..59a15a0 100644
@@ -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

#2 lore raw

Hi Pavan,

Quoted 9 lines · Pavan Savoy

From: Pavan Savoy <[email protected]>

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

---
 plugins/hciops.c |    5 -----

 1 files changed, 0 insertions(+), 5 deletions(-)

The patch seems to be corrupted (looks like the whitespace is messed up):

Applying: plugins: hciops: remove scan disable on poweroff
fatal: corrupt patch at line 10
Patch failed at 0001 plugins: hciops: remove scan disable on poweroff

Could you try re-sending it e.g. with git send-email?

Johan

#3 lore raw
Quoted 13 lines · Johan Hedberg

Hi Pavan,

Quoted 9 lines · Pavan Savoy

From: Pavan Savoy <[email protected]>

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

---
 plugins/hciops.c |    5 -----

 1 files changed, 0 insertions(+), 5 deletions(-)
Quoted 8 lines

The patch seems to be corrupted (looks like the whitespace is messed up):

Applying: plugins: hciops: remove scan disable on poweroff
fatal: corrupt patch at line 10
Patch failed at 0001 plugins: hciops: remove scan disable on poweroff

Could you try re-sending it e.g. with git send-email?

Yes, have sent it now, may be it was corrupted because it was forwarded from a mail which
got it via git send-email.
I wasn't registered to linux-bluetooth, with the mail ID with which i have smtp ..

so I hope it's ok now..

Quoted 2 lines

Johan