[PATCH] User channel issue

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

 



Hi,

While working with User Channel I've noticed that it is not possible to
bind to it from 'Index Added' callback. Returned error was EBUSY which
indicates that device is powered on (although mgmt settings show not powered).

The root cause is HCI_AUTO_OFF which keeps transport powered for seconds
after device is plugged.

I'm not quite sure how to fix this properly in kernel. Attached is an initial
version of tester that shows the bug (first test).

Userspace can workaournd the problem by toggling power on/off before
opening user channel (third test) or simply waiting >2 seconds before
opening it.

Comments are welcome.

Szymon Janc (1):
  tools: Add initial User Channel tester

 .gitignore                 |   1 +
 Makefile.tools             |  11 +-
 tools/userchannel-tester.c | 333 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 344 insertions(+), 1 deletion(-)
 create mode 100644 tools/userchannel-tester.c

-- 
1.9.3

--
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