Linux bluetooth development
 help / color / mirror / Atom feed
* why scan_disable during hciops_power_off
@ 2011-01-25 13:12 Pavan Savoy
  2011-01-25 15:27 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 7+ messages in thread
From: Pavan Savoy @ 2011-01-25 13:12 UTC (permalink / raw)
  To: linux-bluetooth

when hciops gets a set_powered with powered=0, then hciops_power_off is called.
However in here we write the SCAN_ENABLE (=0) to the device and then
do the HCIDEVDOWN...

so couple of questions,
1. are there controllers there which even after doing hci0 down,
allows other devices to be scanned?
for those what do hci0 down mean ? radio not switched off ?

2. what happens to the response? in case hci0 down is considered as
say close of UART?
There is a case I have a combo chip, and I need to keep UART opened,
because someone else is using the UART, and then
I do this power_off, the hci0 interface is down, and bluetooth just
dumps down the scan_disable and quits, but the response
which comes from the device has no takers....

so shouldn't hciops use a hci_send_req before HCIDEVDOWN ?

regards,
Pavan

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-01-26 10:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-25 13:12 why scan_disable during hciops_power_off Pavan Savoy
2011-01-25 15:27 ` Luiz Augusto von Dentz
2011-01-25 15:58   ` Pavan Savoy
2011-01-25 16:08     ` Johan Hedberg
2011-01-25 16:11       ` Marcel Holtmann
2011-01-25 16:17         ` Pavan Savoy
2011-01-26 10:51           ` Pavan Savoy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox