History log of /freebsd-10.0-release/usr.sbin/bluetooth/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


250926 23-May-2013 jkim

Work around build breakages with GCC 4.2.

Reported by: tinderbox


250460 10-May-2013 eadler

Fxi a bunch of typos.

PR: misc/174625
Submitted by: Jeremy Chadwick <jdc@koitsu.org>


249657 19-Apr-2013 ed

Add the Clang specific -Wmissing-variable-declarations to WARNS=6.

This compiler flag enforces that that people either mark variables
static or use an external declarations for the variable, similar to how
-Wmissing-prototypes works for functions.

Due to the fact that Yacc/Lex generate code that cannot trivially be
changed to not warn because of this (lots of yy* variables), add a
NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this
specific compiler warning.

Announced on: toolchain@


249373 11-Apr-2013 joel

Remove contractions.


249179 05-Apr-2013 adrian

Extend ath3kfw to include overridable device / vendor IDs.

This is required for ar3k series bluetooth devices who need firmware
but have a different vendor ID than normal.

Reviewed by: maksim


244040 08-Dec-2012 eadler

A number of places in the source tree still reference cuad.* after
sio(4) was deprecated by uart(4).

s/cuad/cuau/g/

PR: docs/171533
Reviewed by: imp
Approved by: cperciva (implicit)
MFC after: 3 weeks


241699 18-Oct-2012 emax

make sure that socket's send and receive buffers are properly sized

Submitted by: Iain Hibbert plunky at rya-online dot net
MFC after: 3 weeks


236500 03-Jun-2012 joel

mdoc: add missing width argument to Bl -tag.


235789 22-May-2012 bapt

Fix world after byacc import:
- old yacc(1) use to magicially append stdlib.h, while new one don't
- new yacc(1) do declare yyparse by itself, fix redundant declaration of
'yyparse'

Approved by: des (mentor)


233648 29-Mar-2012 eadler

Remove trailing whitespace per mdoc lint warning

Disussed with: gavin
No objection from: doc
Approved by: joel
MFC after: 3 days


233509 26-Mar-2012 joel

Fix date.


229655 05-Jan-2012 uqs

Touch up some more small typos missed in the previous round.

Reported by: Ben Kaduk <minimarmot@gmail.com> et al.


229075 31-Dec-2011 stefanf

Fix typos in command descriptions.


228990 30-Dec-2011 uqs

Spelling fixes for usr.sbin/


228976 30-Dec-2011 uqs

Reencode files to UTF-8. Drop CP1252 em-dash.


228655 17-Dec-2011 dim

In usr.sbin/bluetooth/sdpd/server.c, don't use the size of a pointer as
the length argument to memset, but the size of the object pointed to.

MFC after: 1 week


227876 23-Nov-2011 kevlo

Plug fd leaks


222772 06-Jun-2011 ed

Remove redundant assignments to WARNS.

For these directories, WARNS is already implied to be 6.


221448 04-May-2011 emax

Encode horizontal scroll events (AC Pan) as button presses (bit 5 and 6)

Submitted by: David Demelier demelier dot david at gmail dot com
MFC after: 1 week


220840 19-Apr-2011 emax

Improve the man page and l2control's usage() a bit.

Submitted by: arundel
MFC after: 1 week


220116 28-Mar-2011 emax

Do not use word 'flood' as it not entirely correct. Use better 'no delay'
description. While here, replace atoi(3) with strtol(3).

Submitted by: arundel
MFC after: 1 week


215676 22-Nov-2010 brucec

Don't generate input() since it's not used.


215195 12-Nov-2010 emax

Add firmware downloader for Atheros AR3011 based USB Bluetooth devices.

Hardware donated by: Rusty Nejdl rnejdl at ringofsaturn dot com
Tested by: Rusty Nejdl rnejdl at ringofsaturn dot com
Tested by: Andrzej Tobola ato at iem dot pw dot edu dot pl
MFC after: 3 weeks


212335 08-Sep-2010 emax

Make sure to only pickup hid_input items when parsing input reports.
As it turns out, libusbhid(3) also picks up hic_collection items even
though we explicitly requested hid_input items only.

Tested by: Buganini < buganini at gmail dot com >
MFC after: 1 week


212296 07-Sep-2010 emax

Do not request SDP attributes using ranges.
Apparently some devices do not like it.

MFC after: 1 week
Tested by: Buganini < buganini at gmail dot com >


208028 13-May-2010 uqs

mdoc: move remaining sections into consistent order

This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections.

Found by: mdocml lint run
Reviewed by: ru


208027 13-May-2010 uqs

mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the
bottom of the manpages and order them consistently.

GNU groff doesn't care about the ordering, and doesn't even mention
CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put
them.

Found by: mdocml lint run
Reviewed by: ru


207812 09-May-2010 kaiw

Catch up with libusbhid merge (rev 205728).

hid_get_data() now expects that the hid data passed in always contains
the report ID byte. Thus we should not skip the the report ID byte in
hid_interrupt(). Also, if HUP_KEYBOARD usage is an array, do not try
to modify the 'data' pointer, instead, increase the hid_item_t field
'pos' by 'report_size' before calling hid_get_data() during each
iteration.

PR: usb/146367
Reported and tested by: Alex Deiter
Pointy hat to: kaiw
Reviewed by: emax


204596 02-Mar-2010 uqs

Remove redundant WARNS?=6 overrides and inherit the WARNS setting from
the toplevel directory.

This does not change any WARNS level and survives a make universe.

Approved by: ed (co-mentor)


192308 18-May-2009 emax

Teach btpand(8) to recognized Bluetooth device node names.

Tested by: Daniel O'Connor <doconnor -at- gsoft -dot- com -dot- au>
MFC after: 3 days


191232 17-Apr-2009 emax

Fix bug in event timeout handling

Submitted by: mav
MFC after: 3 days


188945 23-Feb-2009 thompsa

Build fixups for the new USB stack.


188130 04-Feb-2009 emax

Clenup code a bit and do not call fork(2) before dameon(3) where not needed.

MFC after: 1 month


188014 02-Feb-2009 emax

Hook up btpand(8) to the build

MFC after: 1 month


188013 02-Feb-2009 emax

Fix client mode. Pick up service availability changes.

Obtained from: NetBSD
MFC after: 1 month


187938 30-Jan-2009 emax

Add btpand(8) daemon from NetBSD. This daemon provides support for
Bluetooth Network Access Point (NAP), Group Ad-hoc Network (GN) and
Personal Area Network User (PANU) profiles.

Obtained from: NetBSD
MFC after: 1 month


185320 25-Nov-2008 emax

Straighten out those pesky SDP records for the Bluetooth
Service Discovery Application Profile.

Discussed with: Iain Hibbert of NetBSD plunky at rya dash online dot net
MFC after: 3 weeks


177364 19-Mar-2008 emax

Add mandatory "security description" SDP parameter to the PANU profile

Pointed-out by: Iain Hibbert < plunky at rya-online dot net >
MFC after: 3 days


177358 18-Mar-2008 emax

Add PSM and Load Factor SDP parameters to the BNEP based profiles
(NAP, GN and PANU). No reason to not to support them.

Separate SDP parameters data structures for the BNEP based profiles.

Generalize Service Availability SDP parameter creation.

Requested by: Iain Hibbert < plunky at rya-online dot net >
MFC after: 3 days


177174 14-Mar-2008 emax

Update usage() - add new -D option. While I'm here, update copyright
information and license formatting

MFC after: 1 day


177059 11-Mar-2008 emax

Add support for the NAP, GN and PANU profiles to the sdpd(8).
It should be mentioned that a somewhat similar patch was
submitted by Rako < rako29 at gmail dot com >

MFC after: 1 week


176857 06-Mar-2008 emax

Add an option to register DUN (Dial-Up Networking) service on the same
RFCOMM channel if needed. There is really no good reason to not to support
this. AT-command exchange can be faked with chat script in ppp.conf.

MFC after: 1 week


173335 04-Nov-2007 emax

Allow search for any UUID entered by user.

MFC after: 3 days


172401 01-Oct-2007 ru

Fixed "make checkdpadd" (missing library dependencies).

Approved by: re (kensmith)


169533 13-May-2007 pav

Add `accept dns' to rfcomm-server example

PR: docs/111320
Submitted by: James Flemer <jflemer@alum.rpi.edu>
No objection: emax
MFC after: 1 week


166915 23-Feb-2007 emax

Check that the length of the received message is at least as big as a PDU
before we use pdu->len.

Submitted by: Iain Hibbert
MFC after: 3 days


164700 27-Nov-2006 emax

Do not mark Bluetooth HID device as a "potential keyboard" if its descriptor
has items with CONSUMER page. For now only check for items with KEYBOARD page.
This should prevent bthidd(8) from allocating vkbd(4) keyboard for Microsoft
Bluetooth Explorer mouse.

Reported by: Eric Anderson
MFC after: 3 days


164240 13-Nov-2006 markus

- Grammar fixes
- Reword some sentences
- Use .Cm for arguments
- s/CAVEAT/CAVEATS/

Based on PR: docs/78174
Submitted by: Jeremy Chadwick <freebsd@jdc.parodius.com>
Reviewed by: brueffer
Approved by: emax (mentor)
MFC after: 3 days


163918 02-Nov-2006 emax

Properly htole16() PSM in sockaddr_l2cap

MFC after: 3 days


163811 31-Oct-2006 markus

- Add a 'verbose' switch -v
- Only dump items that are being used for padding when being verbose. This
brings bthidcontrol in line with the behaviour of usbhidctl(1).
- Update the manpage accordingly

Approved by: emax


163214 10-Oct-2006 markus

- Grammar and typo fixes
- Rewording of some sentences

Reviewed by: brueffer
Approved by: emax (mentor)
MFC after: 3 days


163185 09-Oct-2006 markus

Fix a typo introduced in the last commit: WWW Refresh is 0x227, not 0227

Approved by: emax (mentor)
MFC after: 1 day


162529 21-Sep-2006 emax

Pacify new GCC4 warnings.

Submitted by: kan
MFC after: 1 week


162495 21-Sep-2006 emax

Get rid of extra const to pacify new GCC4 warnings.

Submitted by: kan
MFC after: 1 week


162494 21-Sep-2006 emax

Use socklen_t instead of int32_t where appropriate to pacify new GCC4
warnings.

Submitted by: kan
MFC after: 1 week


162157 08-Sep-2006 emax

Temporarily put ugly workaround in place to make sparc64 build happy.
panther is down at the moment, so better fix will follow later.


162128 07-Sep-2006 emax

Update bthidd(8) code and hook it up to the build.
bthidd(8) now was integrated with vkbd(4) and supports
multiple keyboards via vkbd(4)/kbdmux(4).

The code was tested with Apple Bluetooth keyboard and
SE k700i cell phone (remote control feature).

MFC after: 1 month


159156 02-Jun-2006 markus

- Only print a clarifying message about which HCI node has been used if there
is more than one HCI node present
- Use errx(3) instead of err(3) if there is no HCI node present as errno
is 0 in this case and the resulting error message wouldn't make much sense

Approved by: emax (mentor)


158835 22-May-2006 markus

- Document the new Read_Node_List command, autodetection of HCI nodes and
that the '-n' parameter is now optional
- Grammar fixes

Reviewed by: emax
Approved by: emax
MFC after: 1 week


158834 22-May-2006 markus

- Add HCI node autodetection. As a consequence of this, make the '-n'
parameter optional.
- Add Read_Node_List command which prints a list of available HCI nodes,
their Netgraph IDs and connected hooks

Reviewed by: emax
Approved by: emax
MFC after: 1 week


158579 14-May-2006 emax

Fix formatting. Add missing break;

Submitted by: Iain Hibbert
MFC after: 3 days


156965 21-Mar-2006 emax

Properly map mouse buttons

PR: bin/94577
Submitted by: Krzysztof Jedruczyk < beaker at hot dot pl >
MFC after: 3 days


156784 16-Mar-2006 emax

Properly convert L2CAP PSM values in sockaddr_l2cap to LE16 byte order.

Noticed by: Iain Hibbert < plunky at rya-online dot net >
MFC after: 3 days


156735 15-Mar-2006 ru

Style: NO_MAN doesn't need any value.


156713 14-Mar-2006 emax

Teach bthidd(8) to reload its config when SIGHUP is received.

Submitted by: Iain Hibbert < plunky at rya-online dot net >
MFC after: 3 days


156697 13-Mar-2006 emax

Fix typo

Submitted by: Iain Hibbert < plunky at rya-online dot net >
MFC after: 3 days


155964 23-Feb-2006 markus

- Use official version strings for LMP and HCI version reporting and add
version strings up to Bluetooth 2.0
- Update manufacturer list

Approved by: emax
MFC after: 3 days


155858 20-Feb-2006 markus

Fix scancode translation table

Approved by: emax
MFC after: 3 days


155541 11-Feb-2006 markus

- Grammar fixes
- Reword one sentence

Approved by: brueffer
MFC after: 3 days


155516 10-Feb-2006 markus

- Fix attribute id of HIDBatteryPower
- Fix two typos in comments

Approved by: emax


153331 12-Dec-2005 emax

Fix typo in rfcomm_pppd(8) man page.

Noticed by: Ronald Klop
MFC after: 1 day


153176 06-Dec-2005 emax

Teach sdpd(8) to check peer's credentials before accepting request to
register, remove or change services in the local database. For now only
accept the request if the peer has effective user ID the same as 'root'
user ID.

MFC after: 1 week


149698 01-Sep-2005 emax

Fix typo in usage.

Submitted by: Jonatan B < onatan at gmail dot com >
MFC after: 3 days


148580 31-Jul-2005 keramida

Fix all the spelling mistakes I could find in the man pages for words
that have at least 3 characters.

MFC after: 1 week
Thanks to: Music band ``Chingon''
for keeping me company while searching for these.


147869 09-Jul-2005 markus

- Grammar fixes
- s/spdcontrol/sdpcontrol/

Approved by: re (hrs, rwatson), brueffer
MFC after: 3 days


146691 27-May-2005 emax

Do not tread 128-bit UUID as int128. Provide separate macros to get/put
128-bit UUID libsdp(3). Fix 128-bit UUID printing in sdpcontrol(8).

MFC after: 3 days


146357 18-May-2005 emax

Fix problem with session termination. bthidd(8) maintains two L2CAP
connections to Bluetooth HID device. As soon as Bluetooth HID device
is powered off (or goes out of RF range) the stack will terminate both
connections. File descriptors for both connections will become active
on next select(2) call. Because bthidd(8) processes file descriptors
in order, it will detect descriptor for one of the closed connections
first and kill the session. However, there is still a second (active)
descriptor that used to point to the same session. bthidd(8) used to
assert() if it cant find session by file descriptor, which was wrong.

While I'm here fix a couple of typos in parser.y

Reported by: Eric Anderson anderson AT centtech DOT com
MFC after: 3 days


140941 28-Jan-2005 ru

Let bsd.prog.mk set SRCS and MAN to their default values.


140442 18-Jan-2005 ru

Sort sections.


140368 17-Jan-2005 ru

Added the EXIT STATUS section where appropriate.


140130 12-Jan-2005 emax

Fix typo %d -> %x

That should fix the problem with invalid PSM returned from bthidcontrol.
Pointy hat goes to me.

PR: misc/76107
Submitted by: Hiroyuki Aizu < aizu at navi dot org >
MFC after: 1 day


140063 11-Jan-2005 ru

Scheduled mdoc(7) sweep.


139721 05-Jan-2005 emax

Teach sdpd(8) about 32-bit and 128-bit uuid's.

MFC after: 3 days


139686 04-Jan-2005 emax

Rename 'class' field to 'uclass' in the ng_hci_inquiry_response structure.
class is a reserved word in C++

Submitted by: Markus Brueffer < markus AT brueffer DOT de >
MFC after: 3 days


139103 21-Dec-2004 ru

Start the dreaded NOFOO -> NO_FOO conversion.

OK'ed by: core


137868 18-Nov-2004 emax

Check in updated bthidd(8). This is still work in progress.


137135 02-Nov-2004 emax

Serial devices now called /dev/cuadXX not /dev/cuaaXX


136910 24-Oct-2004 ru

For variables that are only checked with defined(), don't provide
any fake value.


135245 14-Sep-2004 emax

Add missing #include
Bump WARNS level to 2

PR: bin/71668
Submitted by: Dan Lukes <dan@obluda.cz>
MFC after: 3 days


133461 11-Aug-2004 emax

Update links to the bluez-firmware package
Update md5 hash


133415 10-Aug-2004 emax

Introduce ng_hci_inquiry_response structure and use it in the hccontrol(8)


133178 05-Aug-2004 emax

- One can use both BD_ADDR or name to specify address of the Bluetooth device.
Update man pages to document this fact.

- Update usage messages

- Change u_intXXX to uintXXX


133140 04-Aug-2004 emax

- Update l2ping(8) man page and mention that it is possible to use names
instead of BD_ADDRs

- Convert BD_ADDRs in l2ping(8) output into the human readable names via
bt_gethostbyaddr(3)

- Introduce and document '-n' - numberic output option

Suggested by: Anil Madhavapeddy <anil at recoil dot org>


132790 28-Jul-2004 kan

Avoid casts as lvalues.


132711 27-Jul-2004 emax

Add workaround for brain damaged cell phones

PR: bin/67906


131216 28-Jun-2004 emax

Fix cut-n-paste bugs in hccontrol(8). Its very strange that no one noticed
them earlier. Thanks to Mike Crosland (mcrosland at xs4all.nl) for pointing
them out.


131120 25-Jun-2004 imp

Remove dependency on dev/usb/usbdevs.h, in preparation for its
disappearing from the tree. We already were splitting the baby (using
the symbol for the vendor BROADCOM, but not for the device). Use
#defines for both.


130420 13-Jun-2004 ru

Assorted markup, grammar, and spelling fixes.


130087 04-Jun-2004 ru

Markup nits.


130085 04-Jun-2004 ru

Reapply some lost fixes, fix some more.


128080 10-Apr-2004 emax

Start committing Bluetooth HID (Human Interface Device) support.
Note: bthidd(8) is still not complete. Need to commit kernel
support (a-la Linux /dev/input) to feed HID events into kernel.
Also need to write bthidd(8) and bthidd.conf(5) man pages.


128079 09-Apr-2004 emax

Use uint instead of u_int


128076 09-Apr-2004 emax

Make sure Bluetooth stuff can be compiled on amd64

Submitted by: ps


126643 05-Mar-2004 markm

Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)
that this provokes. "Wherever possible" means "In the kernel OR NOT
C++" (implying C).

There are places where (void *) pointers are not valid, such as for
function pointers, but in the special case of (void *)0, agreement
settles on it being OK.

Most of the fixes were NULL where an integer zero was needed; many
of the fixes were NULL where ascii <nul> ('\0') was needed, and a
few were just "other".

Tested on: i386 sparc64


126297 26-Feb-2004 emax

Add extra sanity check for SDP packets in libsdp(3)
Fix yet another endianess bug in sdpd(8)


126245 25-Feb-2004 emax

Fix endianes bug


126169 23-Feb-2004 emax

Teach rfcomm_pppd(8) how to register Bluetooth LAN service with local sdpd(8)
Add -u(unit) option

Reviewed by: imp (mentor), ru


125943 17-Feb-2004 emax

l2ping(8) should not loose echo data if target does not responds to the ping

Reviewed by: imp (mentor), ru


124986 25-Jan-2004 emax

Cleanup CFLAGS in libsdp(3) Makefile
Connect sdpd(8) to the build

Reviewed by: ru, imp (mentor)


124758 20-Jan-2004 emax

Import sdpd(8) sources. This is Bluetooth Service Discovery Protocol daemon.
Extend libsdp(3) API to allow service registration and removal.
Fix uninitialized variable bug in sdpcontrol(8).

Reviewed by: imp (mentor)
No objection: ru


124317 09-Jan-2004 emax

Change sdp_open_local(3) API. It now takes a path to a control socket
Teach sdpcontrol(8) how to talk to the local SDP server
Update man pages
s/u_int/uint

Reviewed by: imp (mentor), ru


123676 19-Dec-2003 emax

Fix uncontrolled access to the buffer in rfcomm_sppd(1).
Fix typo in hcsecd(8) man page.

Submitted by: Guido Falsi <mad@madpilot.net>
Reviewed by: imp (mentor)
Approved by: imp (mentor)


122758 15-Nov-2003 harti

Replace all uses of the old netgraph constants NG_*LEN by the new
constants NG_*SIZ that include the trailing NUL byte. This change
is mostly mechanical except for the replacement of a couple of snprintf()
and sprintf() calls with strlcpy.


122451 11-Nov-2003 emax

Fix few typos

Reviewed by: imp, julian, ru
Approved by: imp (mentor)


121054 12-Oct-2003 emax

Update Bluetooth code.

Reviewed by: M. Warner Losh <imp@bsdimp.com>; John Hay <jhay@freebsd.org>
Approved by: M. Warner Losh <imp@bsdimp.com> (mentor)


116788 24-Jun-2003 julian

Account for the fact that "buildworld" builds in the 'obj' tree
Pointed out by: Andrew Gallatin <gallatin@cs.duke.edu>


115185 20-May-2003 ru

Reapply mdoc(7) fixes that got accidentally lost in the last
Bluetooth update, and fix a few more issues.

Submitted by: Maksim Yevmenkin <m_evmenkin@yahoo.com>, ru
Approved by: re (blanket)


114900 11-May-2003 julian

Make the README reflect reality.

Approved by: re@ (blanket for bluetooth upgrade)


114899 11-May-2003 julian

Re-enable the broadcom firmware utility now that the Makefile in that subdir
has been fixed to not need the missing files.
The firmware files themselves still now need to be fetched from the internet.
The README there gives the location.

Approved by: re@ (part of bluetooth upgrade)


114898 11-May-2003 julian

Fix (presently unused) Makefile to not need files not yet checked in.
Submitted by: Maksim Yevmenkin <m_evmenkin@yahoo.com>

Approved by: re@ (part of Bluetooth upgrade)


114882 10-May-2003 julian

Don't compile the broadcom firmware module yet.


114881 10-May-2003 julian

Broadcom firmware loading module.. The actual firmware files will follow when
the legal status has been confirmed, in the meanwhile they can be
downloaded from the location in the README file.


114879 10-May-2003 julian

Part 2 of the commit if new bluetooth code.
Submitted by: Maksim Yevmenkin <m_evmenkin@yahoo.com>
Approved by: re@


108533 01-Jan-2003 schweikh

Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.


107775 12-Dec-2002 ru

mdoc(7) police: markup fixes.

Approved by: re


107120 20-Nov-2002 julian

The second try a committing the bluetooth code
Has been seen to work on several cards and communicating with
several mobile phones to use them as modems etc.

We are still talking with 3com to try get them to allow us to include
the firmware for their pccard in the driver but the driver is here..
In the mean time
it can be downloaded from the 3com website and loaded using the utility
bt3cfw(8) (supplied) (instructions in the man page)

Not yet linked to the build

Submitted by: Maksim Yevmenkin <myevmenk@exodus.net>
Approved by: re