Skip to contentSkip to conversation

automatic change of link role?

Bluez-users Collin R. Mulliner 2 participants 2 messages Jun 23, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi List,

just a simple/stupid question. Do I have to change the link role (master/slave) manually (by calling hci_switch_role) or does this happen automatically if needed (the hci device is set to RSWITCH). I have a program which will connect/disconnect to many different devices.

thanks ... Collin

Signature · 15 lines
Collin R. Mulliner <[email protected]>
BETAVERSiON Systems [www.betaversion.net]
info/pgp: finger [email protected]
RTFM: No just an acronym, it's the LAW!


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
maintainer
#1 lore raw

Hi Collin,

Quoted 4 lines

just a simple/stupid question. Do I have to change the link role (master/slave) manually (by calling hci_switch_role) or does this happen automatically if needed (the hci device is set to RSWITCH). I have a program which will connect/disconnect to many different devices.

the link policy only allows role switch, it doesn't change the role. The best way is to do it manually or set the link mode. The link mode can be set for a device or also for a L2CAP listen socket.

Regards

Marcel

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users