Commit Graph

80 Commits

Author SHA1 Message Date
emax
964f1eb261 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
2006-11-27 22:52:11 +00:00
markus
af13dadbdc - 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
2006-11-13 01:13:28 +00:00
emax
ece06026a5 Properly htole16() PSM in sockaddr_l2cap
MFC after:	3 days
2006-11-02 18:57:09 +00:00
markus
9de050b142 - 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
2006-10-31 00:26:58 +00:00
markus
693821d923 - Grammar and typo fixes
- Rewording of some sentences

Reviewed by:	brueffer
Approved by:	emax (mentor)
MFC after:	3 days
2006-10-10 22:38:31 +00:00
markus
bf4f608288 Fix a typo introduced in the last commit: WWW Refresh is 0x227, not 0227
Approved by:	emax (mentor)
MFC after:	1 day
2006-10-09 22:27:23 +00:00
emax
e942f54609 Pacify new GCC4 warnings.
Submitted by:	kan
MFC after:	1 week
2006-09-21 17:16:37 +00:00
emax
52329dc10d Get rid of extra const to pacify new GCC4 warnings.
Submitted by:	kan
MFC after:	1 week
2006-09-21 02:41:04 +00:00
emax
aed4a149cb Use socklen_t instead of int32_t where appropriate to pacify new GCC4
warnings.

Submitted by:	kan
MFC after:	1 week
2006-09-21 02:32:28 +00:00
emax
776a1a4288 Temporarily put ugly workaround in place to make sparc64 build happy.
panther is down at the moment, so better fix will follow later.
2006-09-08 15:05:38 +00:00
emax
0a0c0e69a8 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
2006-09-07 21:47:49 +00:00
markus
9e4a31c8ec - 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)
2006-06-02 00:29:01 +00:00
markus
72be14d030 - 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
2006-05-22 17:58:19 +00:00
markus
583587debb - 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
2006-05-22 17:58:09 +00:00
emax
c1402da0d8 Fix formatting. Add missing break;
Submitted by:	Iain Hibbert
MFC after:	3 days
2006-05-14 22:19:38 +00:00
emax
270ddd37db Properly map mouse buttons
PR:		bin/94577
Submitted by:	Krzysztof Jedruczyk < beaker at hot dot pl >
MFC after:	3 days
2006-03-21 18:42:52 +00:00
emax
21e354aa2a 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
2006-03-16 18:26:54 +00:00
ru
30cc3ea988 Style: NO_MAN doesn't need any value. 2006-03-15 10:46:38 +00:00
emax
f8eae18fea 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
2006-03-14 19:29:40 +00:00
emax
a29d4dd33a Fix typo
Submitted by:	Iain Hibbert < plunky at rya-online dot net >
MFC after:	3 days
2006-03-13 23:59:43 +00:00
markus
fe431c554b - 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
2006-02-23 23:19:12 +00:00
markus
9ddbaff9a6 Fix scancode translation table
Approved by:	emax
MFC after:	3 days
2006-02-20 10:07:40 +00:00
markus
a273d7838c - Grammar fixes
- Reword one sentence

Approved by:	brueffer
MFC after:	3 days
2006-02-11 15:36:37 +00:00
markus
0b9aa32c53 - Fix attribute id of HIDBatteryPower
- Fix two typos in comments

Approved by:	emax
2006-02-10 19:54:17 +00:00
emax
820329430a Fix typo in rfcomm_pppd(8) man page.
Noticed by:	Ronald Klop
MFC after:	1 day
2005-12-12 04:19:36 +00:00
emax
33f5a902c5 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
2005-12-06 17:56:36 +00:00
emax
7154605d69 Fix typo in usage.
Submitted by:	Jonatan B < onatan at gmail dot com >
MFC after:	3 days
2005-09-01 22:45:25 +00:00
keramida
ac7c9f771d 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.
2005-07-31 03:30:48 +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