Re: Bluetooth honeypot - hci socket that reads package problem -

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

 



Hi Vincenzo,

> > You need to set the device into RAW mode. Otherwise the kernel will keep
> > processing the HCI packets.
> 
> Do you mean that i've to use a special device that supports RAW mode or that i 
> can open a socket in RAW mode?
> 
> if it's the latter,i'm googlin for a while and i don't find any useful 
> information. How should i call the socket C function to accomplish it?

you have to turn the Bluetooth HCI device into RAW mode. And also
hciconfig will tell you if the device is in that mode. Otherwise you
will have the kernel interfere and act as it is suppose to.

	dd = hci_open_dev(dev_id);
	ioctl(dd, HCISETRAW, 1);
	hci_close_dev(dd);

Regards

Marcel


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