Hi Ajay,
On Wed, Nov 28, 2012 at 8:35 PM, Ajay [off-list ref] wrote:
is it possible to create an l2cap connection with cid 0x06 and psm 0
? , so that i can make use of dedicated smp-l2cap channel for data transfer
. I wanted to try how the remote device is handling on receiving an
smp_pairing_request . i have seen in l2cap_core.c , it is getting handled
inside a switch case (case cid == L2CAP_CID_SMP).
On Linux, all communication over the LE SMP CID is done on the kernel.
So you need to use either increase socket seclevel using setsockopt()
or using "Pair Device" from mgmt API to send the SMP Pairing Request
from userspace.
I don't know how you can send "raw" SMP requests from userspace.
Regards,
--
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil