Commit Graph

74 Commits

Author SHA1 Message Date
pav
5276a2a060 MFC 1.14
Add `accept dns' to rfcomm-server example
2007-05-20 05:03:16 +00:00
emax
e58b211577 MFC:
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
2007-02-26 17:48:35 +00:00
markus
5f7c40b169 MFC rev. 1.13:
- Grammar fixes
  - Reword some sentences
  - Use .Cm for arguments
  - s/CAVEAT/CAVEATS/

Approved by:	emax (mentor)
2007-01-21 02:32:06 +00:00
emax
60682eee3e MFC:
Do not mark Bluetooth HID device as "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.

Approved by:	re (bmah)
2006-12-01 23:33:22 +00:00
emax
f70340493f MFC:
Properly htole16() PSM in sockaddr_l2cap

Approved by:	re (bmah)
2006-11-09 17:59:31 +00:00
markus
92b2357293 MFC rev. 1.2:
- Grammar and typo fixes
 - Rewording of some sentences

Approved by:	re (hrs), emax (mentor)
2006-10-13 11:17:21 +00:00
markus
9d4cff4935 MFC rev. 1.6:
Fix a typo introduced in the last commit: WWW Refresh is 0x227, not 0227

Approved by:	re (hrs), emax (mentor)
2006-10-12 23:08:14 +00:00
emax
3361db4c05 MFC:
Install vkbd(4) header into dev/vkbd.

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).

Add bthidd(8) rc(8) script.

Approved by:	re (kensmith)
2006-10-09 21:00:17 +00:00
emax
f66a2b1783 MFC:
Pacify new GCC4 warnings

Submitted by:	kan
Approved by:	re (kensmith)
2006-10-07 23:41:22 +00:00
cvs2svn
335209b3be This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-09-16 10:44:34 +00:00
markus
1302798964 MFV rev. 1.9:
- Document the new Read_Node_List command, autodetection of HCI nodes and
    that the '-n' parameter is now optional
  - Grammar fixes

Approved by:	emax (mentor)
2006-06-07 22:54:02 +00:00
markus
73f892b2f1 MFC:
- 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

Revisions:
	hccontrol.h	rev. 1.6
	hccontrol.c	rev. 1.4 + 1.5
	node.c		rev. 1.4

Approved by:	emax (mentor)
2006-06-07 22:53:56 +00:00
emax
e3348d1704 MFC:
Properly convert L2CAP PSM values in sockaddr_l2cap to LE16 byte order.
Fix formatting. Add missing break;

Submitted by:	Iain Hibbert
2006-05-15 17:04:28 +00:00
emax
065047bfe4 MFC:
Teach bthidd(8) to reload its config when SIGHUP is received.
Properly convert L2CAP PSM values in sockaddr_l2cap to LE16 byte order.
Properly map mouse buttons.
Fix typo.

PR:		bin/94577
Submitted by:	Iain Hibbert, Krzysztof Jedruczyk
2006-05-15 16:52:15 +00:00
markus
0e235fa343 MFC recent updates to hccontrol:
- Use official version strings for LMP and HCI version reporting and add
    version strings up to Bluetooth 2.0
  - Update manufacturer list

Revisions:

	hccontrol.h	rev. 1.5
	info.c		rev. 1.4
	link_control.c	rev. 1.10
	util.c		rev. 1.6

Approved by:	re (scottl), emax
2006-02-27 00:38:02 +00:00
markus
f0fed5c831 MFC: rev 1.2
Fix scancode translation table

Approved by:	re (scottl), emax
2006-02-23 15:37:43 +00:00
markus
fbabbd9d5a MFC: rev. 1.6
- Grammar fixes
- Reword one sentence

Approved by:	re (scottl), brueffer
2006-02-19 15:44:51 +00:00
markus
4b6a3490b9 MFC: rev. 1.2
- Fix attribute id of HIDBatteryPower
- Fix two typos in comments

Approved by:	re (scottl), emax
2006-02-19 15:39:31 +00:00
emax
b1877750af MFC: 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.
2005-12-13 00:38:28 +00:00
emax
fc03c2855d MFC: Fix typo in rfcomm_pppd(8) man page.
Noticed by:	Ronald Klop
2005-12-13 00:31:03 +00:00
emax
6778832488 MFC to RELENG_6
Fix typo in usage

Submitted by:	Jonatan B <onatan at gmail dot com>
Approved by:	re (scottl)
2005-09-12 16:09:23 +00:00
keramida
0467614a12 MFC spelling fixes of several manpages.
Approved by:	re (kensmith)

The merged revisions/files are:

Revision  Path
1.10      src/lib/libarchive/archive_entry.3
1.21      src/lib/libarchive/archive_read.3
1.8       src/lib/libautofs/libautofs.3
1.10      src/lib/libc/net/inet6_rth_space.3
1.8       src/lib/libc/posix1e/acl_get_entry.3
1.15      src/lib/libc/posix1e/mac.3
1.7       src/lib/libc/posix1e/mac_prepare.3
1.37      src/lib/libc/stdtime/strftime.3
1.16      src/lib/libc/sys/kse.2
1.8       src/lib/libc/sys/uuidgen.2
1.4       src/share/man/man4/man4.i386/acpi_ibm.4
1.6       src/share/man/man4/man4.i386/acpi_panasonic.4
1.40      src/share/man/man4/man4.i386/ep.4
1.6       src/share/man/man4/man4.i386/pbio.4
1.5       src/share/man/man4/man4.i386/snc.4
1.2       src/share/man/man4/man4.sparc64/openprom.4
1.4       src/share/man/man4/man4.sparc64/snd_audiocs.4
1.11      src/share/man/man4/witness.4
1.3       src/share/man/man5/devfs.conf.5
1.51      src/share/man/man9/ifnet.9
1.7       src/share/man/man9/printf.9
1.12      src/usr.bin/file2c/file2c.1
1.27      src/usr.bin/indent/indent.1
1.17      src/usr.bin/lockf/lockf.1
1.90      src/usr.bin/make/make.1
1.45      src/usr.bin/systat/systat.1
1.19      src/usr.bin/truss/truss.1
1.33      src/usr.bin/xinstall/install.1
1.11      src/usr.sbin/bluetooth/rfcomm_pppd/rfcomm_pppd.8
1.4       src/usr.sbin/bluetooth/sdpd/sdpd.8
1.9       src/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.3
1.36      src/usr.sbin/i4b/isdnd/isdnd.rc.5
1.53      src/usr.sbin/mtree/mtree.8
1.8       src/usr.sbin/ndiscvt/ndiscvt.8
1.13      src/usr.sbin/ntp/doc/ntpdc.8
1.26      src/usr.sbin/pppd/pppd.8
1.40      src/usr.sbin/syslogd/syslog.conf.5
1.5       src/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.conf.5
2005-08-18 15:01:27 +00:00
markus
fb9f2e36f1 - Grammar fixes
- s/spdcontrol/sdpcontrol/

Approved by:	re (hrs, rwatson), brueffer
MFC after:	3 days
2005-07-09 19:04:43 +00:00
emax
720e9b2d9f 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
2005-05-27 19:11:33 +00:00
emax
050a3f3809 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
2005-05-18 23:03:44 +00:00
ru
e68efdc747 Let bsd.prog.mk set SRCS and MAN to their default values. 2005-01-28 16:08:11 +00:00
ru
c05985f13f Sort sections. 2005-01-18 20:02:45 +00:00
ru
6cc4b6c220 Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
emax
9bd0242d83 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
2005-01-12 20:06:16 +00:00
ru
16dc33fabf Scheduled mdoc(7) sweep. 2005-01-11 11:47:22 +00:00
emax
681c866d3b Teach sdpd(8) about 32-bit and 128-bit uuid's.
MFC after:	3 days
2005-01-05 18:37:37 +00:00
emax
626c8fa3a1 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
2005-01-04 20:13:48 +00:00
ru
cec60429bb Start the dreaded NOFOO -> NO_FOO conversion.
OK'ed by:	core
2004-12-21 08:47:35 +00:00
emax
d4ffd83e77 Check in updated bthidd(8). This is still work in progress. 2004-11-18 18:05:15 +00:00
emax
73349ef8ea Serial devices now called /dev/cuadXX not /dev/cuaaXX 2004-11-02 20:12:06 +00:00
ru
5db2b9d5b3 For variables that are only checked with defined(), don't provide
any fake value.
2004-10-24 15:33:08 +00:00
emax
6f238d1359 Add missing #include
Bump WARNS level to 2

PR:		bin/71668
Submitted by:	Dan Lukes <dan@obluda.cz>
MFC after:	3 days
2004-09-14 20:04:33 +00:00
emax
5846466bff Update links to the bluez-firmware package
Update md5 hash
2004-08-11 00:22:23 +00:00
emax
726a7fca00 Introduce ng_hci_inquiry_response structure and use it in the hccontrol(8) 2004-08-10 00:38:50 +00:00
emax
c114a6212c - 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
2004-08-05 16:32:41 +00:00
emax
dc4be55644 - 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>
2004-08-04 20:43:57 +00:00
kan
c8e1a3d9de Avoid casts as lvalues. 2004-07-28 07:20:04 +00:00
emax
858cb94e23 Add workaround for brain damaged cell phones
PR:		bin/67906
2004-07-27 22:40:42 +00:00
emax
f56f3f1724 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.
2004-06-28 00:58:53 +00:00
imp
d1f0e75537 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.
2004-06-25 23:14:06 +00:00
ru
dc54ee200d Assorted markup, grammar, and spelling fixes. 2004-06-13 18:03:44 +00:00
ru
3d43f7de86 Markup nits. 2004-06-04 19:23:12 +00:00
ru
c78a480d1f Reapply some lost fixes, fix some more. 2004-06-04 19:22:04 +00:00
emax
043ec21649 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.
2004-04-10 00:18:00 +00:00
emax
96b75c2267 Use uint instead of u_int 2004-04-09 23:58:53 +00:00