[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [bluetooth-dev] Opcodes and hci_internal.h
read local name is already there, see bt_if.c bt_read_local_name
(userspace fnc) which calls the corresponding function in hci.
Remote name is read when a new acl link comes up and can be read
in /proc/bt_status. READ_COUNTRY_CODE is not there yet but
if you look how we did read local name that should be similar.
Read rssi function is there but has no ioctl attached yet.
Send me a patch and I'll add it in the CVS.
> -----Original Message-----
> From: Per Haglund [mailto:email@example.com]
> Sent: den 26 juli 2001 01:30
> To: firstname.lastname@example.org
> Subject: [bluetooth-dev] Opcodes and hci_internal.h
> Now that I finally have the stack up and running, I have a question
> about HCI commands. The defines in btcommon.h can be used in ioctl
> calls, that much is clear. However, how do I use commands found in
> hci_internal.h such as READ_COUNTRY_CODE or READ_RSSI?
> I have tried to figure out if/how the OGF and OCF values in
> hci_internal.h are used to form the commands in btcommon.h, but don't
> know how it fits together. I want to be able to read remote name, read
> local name etc.
> Kind regards,
> To unsubscribe from this list: send the line "unsubscribe
> bluetooth-dev" in
> the body of a message to email@example.com
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to firstname.lastname@example.org