Commit Graph

36 Commits

Author SHA1 Message Date
plunky
5cf7cee741 don't try to imitate the kernel while doing a reset, just
set the init flags and poll until they are cleared
2010-11-28 20:37:24 +00:00
plunky
52ea709089 update for ioctl improvements
- use SIOCGBTFEAT to recover device features rather than
  querying the device
- print also the max ACL/SCO buffers
2010-11-22 20:02:06 +00:00
plunky
5b17090754 be more explicit 2010-10-17 12:45:28 +00:00
plunky
b6cf5bddb1 some extra information about "page timeout" option 2010-10-11 15:37:55 +00:00
plunky
7583393055 handle device page timeout value as LE 2009-10-09 12:58:28 +00:00
plunky
d8166becbf use the bt_dev(3) api instead of rolling our own inquiry and
request functions
2009-10-08 19:50:03 +00:00
plunky
7efcafc964 fiddle with printing of "Class of Device" values
- pass the class of device octet stream to the function
  - only print where the format is known (we only know format #0)
  - use language from the Baseband Assigned numbers document
  - use bit numbers from the Baseband Assigned numbers document
  - add Health device major class

(only these changes this time :)
2009-10-08 19:31:41 +00:00
plunky
3729e633c8 revert previous commit
(bah, I committed the wrong version and there are some other
changes that may not work with current sources)
2009-10-08 19:29:42 +00:00
plunky
ba4cd6cd5e fiddle with printing of "Class of Device" information
- pass the octet stream pointer to the function
  - only print where the format is known (we only know format #0)
  - use language from the Baseband Assigned numbers document
  - use bit numbers from the Baseband Assigned numbers document
  - add Health device major class
2009-10-08 19:25:24 +00:00
plunky
9501383a83 print features from 3.0 + HS spec, including extended features 2009-09-11 19:22:15 +00:00
plunky
0b2b507e45 bump date for previous 2009-09-01 18:20:14 +00:00
plunky
e4d755d754 add xrefs for bluetooth drivers bcsp(4), btbc(4) and sbt(4) 2009-09-01 18:19:08 +00:00
plunky
ff3abe1407 update/correct printing of HCI version numbers according to the
recently published Assigned Numbers documents at www.bluetooth.com
2009-09-01 18:04:33 +00:00
wiz
8b0f1ea834 Bump date for previous. 2009-08-24 22:05:26 +00:00
plunky
26f09dd36e add "imode" parameter to allow setting the Inquiry Mode. This supercedes
the "rssi" parameter (which remains for compatibility)

imode takes an argument: "std", "rssi" or "ext"
2009-08-24 20:43:35 +00:00
plunky
b7dec17fbf add a per-unit master setting, to control requesting the master role
when accepting connections.
2009-08-20 21:40:59 +00:00
plunky
c1cd0cdec6 clarify role switching for "switch" option
bump date for wiz
2009-08-20 11:45:51 +00:00
wiz
bda39b5016 Bump date for previous. 2009-08-18 21:31:51 +00:00
plunky
b486cef1fe update the "Class of Device" information, now that the Assigned Numbers
documents are available at www.bluetooth.com
2009-08-18 17:40:31 +00:00
lukem
9c1945664c Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 13:36:57 +00:00
plunky
307f630315 remove unused code (it will never be used) 2008-02-11 11:26:15 +00:00
plunky
0bda0fe19b add details relating to v2.1 of bluetooth specification 2008-02-11 11:23:46 +00:00
plunky
aeab3db895 request and keep a mask of supported commands per unit in order
to block unsupported HCI commands sent by unprivileged users
reaching the device.
2007-12-30 18:26:42 +00:00
plunky
a2576166f0 only read inquiry mode if the HCI version is appropriate 2007-12-29 14:35:39 +00:00
plunky
736a9db087 Clean up the way that bluetooth drivers attach to the bluetooth stack,
to remove the frobbing that drivers must do in the hci_unit structure.

- driver provides a static const interface descriptor
- hci_unit is allocated by hci_attach() rather than part of softc
- statistics are compiled by driver and provided on request
- driver provides output methods and is responsible for output queue
- stack provides input methods and is responsible for input queue
- mutex is used to arbitrate device queue access
2007-11-28 20:16:11 +00:00
plunky
26a4d1cf14 sort & remove unnecessary include files 2007-11-06 21:35:36 +00:00
plunky
0d2b4f91b7 add new option 'rssi' to enable/disable inquiry results with RSSI, and
add recognition of the "inquiry result with RSSI" packets
2007-09-07 18:40:01 +00:00
joerg
1c0eed0117 Fix typo. 2007-08-09 18:50:58 +00:00
tls
4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
plunky
e05c6c8d1e add xref for btuart(4) 2007-04-22 10:07:43 +00:00
plunky
a746bed179 fix warnings produced by -Wextra 2007-03-30 21:23:18 +00:00
hubertf
889da1779b * Don't include headers twice
* Remove a few trailing whitespaces
 * Rearrange and join to one #if for some headers

Patch contributed by Slava Semushin <slava.semushin@gmail.com>
in private mail.
2007-01-16 17:32:04 +00:00
plunky
c980b109dd BluetootH SCO Audio update.
Provide an ioctl to set the SCO mtu value in the controller and
place limits in the SCO code such that only packets of this size
may be sent.

Move the mtu option from btsco(4) and btdevctl(8), to the
btconfig(8) program.

Remove temporary BLUETOOTH_SCO kernel option, and enable SCO
socket access.

Fix incoming connection handling for btsco(4) and SCO sockets.

Fix documentation to reflect the new world order.
2006-08-27 11:41:58 +00:00
wiz
7169170d51 Bump date for previous.
Sort SEE ALSO.
Add some dots at end of sentences.
New sentence, new line.
2006-07-29 23:51:09 +00:00
tron
eea081262a Bluetooth fixes by Iain Hibbert:
- Add 'page timeout' option.
- Fix printing of 2Mb/3Mb packet types.
2006-07-26 10:00:43 +00:00
gdamore
a5c89047c0 Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
NetBSD Foundation Membership still pending.)  This stack was written by
Iain under sponsorship from Itronix Inc.

The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.

Drivers for both PCMCIA and USB bluetooth controllers are included.
2006-06-19 15:44:33 +00:00