Re: l2cap sockets not properly multiplexed on ARM

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

 



Am 30.10.2013 12:24, schrieb Alexander Holler:
Am 29.10.2013 21:44, schrieb Tim Tisdall:

L2CAP sockets
-------------

socket(AF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP)
bind(bdaddr, 0)  // bind to bluetooth address and PSM 0 (Python
doesn't support LE directly,
                  // but this is enough for binding to the right device

That looks wrong. Try to bind to ATT_CID (4).


And don't forget to check the return code of bind (as well as of setsockopt and other calls).

Regards,

Alexander Holler

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