Article 5C7TF Which hci source code to use ?

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 ?

.latest?d=yIl2AUoC8zA latest?i=msyIeRxF1kY:Ihq3lS7kN6A:F7zBnMy latest?i=msyIeRxF1kY:Ihq3lS7kN6A:V_sGLiP latest?d=qj6IDK7rITs latest?i=msyIeRxF1kY:Ihq3lS7kN6A:gIN9vFwmsyIeRxF1kY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments