* Missing BT_POWER option for l2cap sockets in bluetooth.h?
@ 2013-12-02 20:22 Mathieu Laurendeau
2013-12-03 9:22 ` Johan Hedberg
0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Laurendeau @ 2013-12-02 20:22 UTC (permalink / raw)
To: linux-bluetooth
Hello,
I believe the following defines are missing in the bluetooth.h file:
#define BT_POWER 9
struct bt_power {
uint8_t force_active;
};
#define BT_POWER_FORCE_ACTIVE_OFF 0
#define BT_POWER_FORCE_ACTIVE_ON 1
Regards,
Mathieu
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Missing BT_POWER option for l2cap sockets in bluetooth.h?
2013-12-02 20:22 Missing BT_POWER option for l2cap sockets in bluetooth.h? Mathieu Laurendeau
@ 2013-12-03 9:22 ` Johan Hedberg
2013-12-03 17:46 ` Mathieu Laurendeau
0 siblings, 1 reply; 3+ messages in thread
From: Johan Hedberg @ 2013-12-03 9:22 UTC (permalink / raw)
To: Mathieu Laurendeau; +Cc: linux-bluetooth
Hi Mathieu,
On Mon, Dec 02, 2013, Mathieu Laurendeau wrote:
> I believe the following defines are missing in the bluetooth.h file:
>
> #define BT_POWER 9
> struct bt_power {
> uint8_t force_active;
> };
> #define BT_POWER_FORCE_ACTIVE_OFF 0
> #define BT_POWER_FORCE_ACTIVE_ON 1
I think the only user of this has been pre-4.2 Android versions
(considering that the feature came from Android developers), which is
probably why this never made it to bluez.git. Anyway, I just pushed a
patch to add it there.
What are you planning to use this for? Do you have a patch to contribute
to our A2DP implementation?
Johan
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Missing BT_POWER option for l2cap sockets in bluetooth.h?
2013-12-03 9:22 ` Johan Hedberg
@ 2013-12-03 17:46 ` Mathieu Laurendeau
0 siblings, 0 replies; 3+ messages in thread
From: Mathieu Laurendeau @ 2013-12-03 17:46 UTC (permalink / raw)
To: Johan Hedberg; +Cc: linux-bluetooth
On Tue, Dec 03, 2013, Johan Hedberg wrote:
> What are you planning to use this for?
I'm working on a software [1] that can make a PC take the identity of a
Sixaxis and control a PS3 over bluetooth. It worked fine until kernel
3.1 from which there was a connection issue (a variable latency of at
least 4s). I tried tweaking the flush timeout, but it was not
concluding. Lately I took a look at the kernel source code and saw the
BT_POWER option was introduced in kernel 3.1. I turned it off and the
latency disappeared.
Thanks for the patch,
Mathieu
[1] https://github.com/matlo/GIMX
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-03 17:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-02 20:22 Missing BT_POWER option for l2cap sockets in bluetooth.h? Mathieu Laurendeau
2013-12-03 9:22 ` Johan Hedberg
2013-12-03 17:46 ` Mathieu Laurendeau
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.