Which hci source code to use ?
by jan128 from LinuxQuestions.org on (#5C7TF)
I am, trying to decode one of the "hci" commands.
Specifically "hci-inquiry".
I am after "delete existing bluetooth devices from (what) list " AND how to track hci-inquiry" timing.
I found two code sources at github
This one does not include "hci-inquiry"
https://github.com/torvalds/linux/bl...th/hci_event.c
This one does include "hci-inquiry"
https://github.com/pauloborges/bluez...ster/lib/hci.c
Few questions
Which source code is "official" ?
It appears that https://github.com/pauloborges/bluez...ster/lib/hci.c is used to build "hci library" and it does work.
But the "linux" one also looks as it is using the second source - which appears to be "build on top" of "standard Linux "blueZ" stack.
It is ahrd to analyze the actual code when these relations are not really spelled out - one can only guess by variety of "headers" being used in accrual code.
I guess my original question - which is actual code passed to Linux - "blueZ" stack or "hci".
Or to put it differently - first is "hci" then "blueZ" then what ?
.


Specifically "hci-inquiry".
I am after "delete existing bluetooth devices from (what) list " AND how to track hci-inquiry" timing.
I found two code sources at github
This one does not include "hci-inquiry"
https://github.com/torvalds/linux/bl...th/hci_event.c
This one does include "hci-inquiry"
https://github.com/pauloborges/bluez...ster/lib/hci.c
Few questions
Which source code is "official" ?
It appears that https://github.com/pauloborges/bluez...ster/lib/hci.c is used to build "hci library" and it does work.
But the "linux" one also looks as it is using the second source - which appears to be "build on top" of "standard Linux "blueZ" stack.
It is ahrd to analyze the actual code when these relations are not really spelled out - one can only guess by variety of "headers" being used in accrual code.
I guess my original question - which is actual code passed to Linux - "blueZ" stack or "hci".
Or to put it differently - first is "hci" then "blueZ" then what ?
.