libhci update

Iain Hibbert plunky at rya-online.net
Sun May 17 10:21:42 UTC 2009


Hi Max,
  more queries

- in bt_devany_cb() you should perhaps make sure that the device is an
  enabled one?

- I'm thinking that bt_devopen() should have an options argument, in order
  to pre-set any options such as TIMESTAMP, DIRECTION etc (even NBIO)
  which will get around the differences in API for that (BlueZ had a weird
  thing with not supporting SOL_SOCKET, SO_TIMESTAMP even though Linux
  does I don't know if they fixed it yet)

- in bt_devinquiry() we accept (dev == NULL) to mean any device, should
  that happen in bt_devopen() too?

- along this line I wonder if it is possible open a promiscuous socket
  (eg as used by hcidump) instead of any particular device? (could be
  dev==NULL I guess, or a PROMISCUOUS option?) I'm not sure how Linux
  works but on NetBSD you must explicitly bind to 00:00:00:00:00:00 to
  get that behaviour (IIRC FreeBSD gives it to you by default but I was
  paranoid :)

regards,
iain



More information about the freebsd-bluetooth mailing list