public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] ioctl: setting link mode and link policy
@ 2006-08-31 13:59 Marco Pracucci
  2006-08-31 12:18 ` Peter Wippich
  0 siblings, 1 reply; 6+ messages in thread
From: Marco Pracucci @ 2006-08-31 13:59 UTC (permalink / raw)
  To: Bluez Development ML

Hi list,

I have some problem when I try to set link mode and link policy using
ioctl() system call. In particular, when I set link policy or link mode,
it seems that nothing happens.

-----------------
int deviceDescriptor;
struct hci_dev_req request;

// Open device
deviceDescriptor = hci_open_dev(deviceID);
[...]

// Set link mode
memset(&request, 0, sizeof(request));
request.dev_id = deviceID;
request.dev_opt = HCI_LM_MASTER;
ioctl(deviceDescriptor, HCISETLINKMODE, (unsigned long) &request);
[...]

// Set link policy
memset(&request, 0, sizeof(request));
request.dev_id = deviceID;
request.dev_opt = policy;
ioctl(deviceDescriptor, HCISETLINKPOL, (unsigned long) &request);
[...]
-----------------

ioctl() system calls do not return any error, but when I check the link
mode and link policy with "hciconfig -a" nothing has changed. Moreover,
I have tried to debug it with "hcidump -V" but no related hci commands
are reported.

Bluez-libs: 2.25
Bluez-utils: 2.25

Have you any idea and/or suggestion?

Thanks,
Marco Pracucci


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-31 19:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-31 13:59 [Bluez-devel] ioctl: setting link mode and link policy Marco Pracucci
2006-08-31 12:18 ` Peter Wippich
2006-08-31 15:15   ` Marco Pracucci
2006-08-31 16:29     ` Marcel Holtmann
2006-08-31 16:42       ` Marco Pracucci
2006-08-31 19:23         ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox