Commit Graph

38 Commits

Author SHA1 Message Date
andvar 1cb7819f04 fix various typos in comments. 2021-12-12 22:20:52 +00:00
thorpej bcd1eb151d Update for proplib(3) API changes. 2020-06-07 00:12:00 +00:00
mrg fbffadb9f8 - add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
  this case, and thus can't be marked __dead easily
2019-02-03 03:19:25 +00:00
bouyer 878cb1cfc5 Fix fallout from hid factorisation:
- need to install sys/dev/hid/hid.h for userland
- include it where needed - most of the time in place if usb/usbhid.h
2017-12-10 20:38:13 +00:00
plunky 68a3deedd1 the Bluetooth rc.d setup was simplified some time ago, so
'btdevctl' variable is no longer used. change wording to
reflect this
2015-06-12 09:43:05 +00:00
riastradh 6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
wiz a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
plunky c5b7b2f38c whitespace ' ' -> ' ' 2012-12-26 17:57:49 +00:00
plunky b504b003b7 add a comment pointing out that the link-mode may need to be
changed manually, for devices which cannot authenticate

for PR/47286
2012-12-26 17:33:09 +00:00
joerg 8756b97804 static + __dead 2011-08-27 22:22:01 +00:00
plunky 0e26bab8bd provide more informative error messages 2011-03-20 19:46:13 +00:00
wiz 8a0067feb7 Sort sections, use serial comma. 2010-10-12 21:49:08 +00:00
plunky 2cf0f09d1d add a reference in the SEE ALSO section to "The NetBSD Guide" for
detailed examples of device configuration
2010-10-11 15:30:57 +00:00
plunky 366a13e705 additionally query the "PnP Information" service record to discover
any USB Forum vendor-id and product-id values and store them in the
property list if found.
2010-04-28 06:18:07 +00:00
plunky 170631f4a8 update to use new sdp(3) and sdp_data(3) APIs 2009-05-12 18:39:20 +00:00
plunky c9c58ee818 does not need libsdp any longer 2009-05-12 13:09:43 +00:00
plunky 539b5ab318 Ensure that these programs continue to build while I am in the
process of updating the Service Discovery Protocol API.
2009-05-07 18:08:55 +00:00
lukem 020f7791cb Fix -Wsign-compare issues 2009-04-15 00:35:04 +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 9abc85a7e2 use __arraycount macro instead of rolling our own 2008-04-20 19:34:23 +00:00
wiz 4721bd8970 Drop trailing whitespace, remove superfluous Pp. 2007-12-02 20:59:29 +00:00
plunky b0d7f48f6f use optarg instead of mode when reporting failure - mode is uninitialised 2007-11-19 19:49:58 +00:00
pavel 5e809e89c6 Attempt at fixing build failures after proplib was converted to bool:
FALSE -> false, TRUE -> true, boolean_t -> bool, int -> bool when
appropriate, include stdbool.h . proplib.h no longer provides boolean_t,
so it is necessary to change to bool.

From Tom Spindler (dogcow@).
2007-08-17 17:59:15 +00:00
plunky f5db72e7b7 Add 'service level' security for L2CAP and RFCOMM connections, following
the Linux (BlueZ) API.

    - L2CAP or RFCOMM connections can require the baseband radio link
    mode be any of:
	authenticated (devices are paired)
	encrypted (implies authentication)
	secured (encryption, plus generate new link key)

    - for sockets, the mode is set using setsockopt(2) and the socket
    connection will be aborted if the mode change fails.

    - mode settings will be applied during connection establishment, and
    for safety, we enter a wait state and will only proceed when the mode
    settings are successfuly set.

    - It is possible to change the mode on already open connections, but
    not possible to guarantee that data already queued (from either end)
    will not be delivered. (this is a feature, not a bug)

    - bthidev(4) and rfcomm_sppd(1) support "auth", "encrypt" and
    "secure" options

    - btdevctl(8) by default enables "auth" for HIDs, and "encrypt" for
    keyboards (which are required to support it)
2007-04-21 06:15:22 +00:00
plunky 6b1f9646c6 release prop objects after they have been retained by dictionary 2007-04-11 20:01:01 +00:00
plunky 51bb5141d1 constify char *service 2007-04-11 19:59:02 +00:00
plunky ebb327f7cd back off previous changes since the 'memory leak' fix - we dont need any of
that, just use the _nocopy version of the function.
2006-09-29 18:48:17 +00:00
he 06658349aa Back out previous, <stdlib.h> was the right include. 2006-09-28 09:13:56 +00:00
he e189b3cc42 Now that we use free(), we also need <malloc.h>. 2006-09-28 09:11:04 +00:00
dbj 6e35df57f8 include stdlib.h for free()
i've also cleared the -kk flag and reset it to -kkv
2006-09-28 07:44:24 +00:00
christos 39feec939d Coverity CID 4177: fix memory leak. 2006-09-27 22:07:20 +00:00
plunky ed4d8d47a0 also include service name in dictionary being sent to kernel.
(this is not used just yet, but it might be in the future and it will
be easier if we dont have to provide code to handle its absence)
2006-09-11 18:30:27 +00:00
he d4831ce469 Print explicit 64-bit types using the format macros from int_fmtio.h.
Unbreaks the build for our LP64 ports, where "long long" typically is
not 64 bits.
2006-09-10 19:13:54 +00:00
plunky 4f1cbddc12 update to bluetooth device attachment:
remove pseudo-device btdev(4) and inherent limitations

add bthub(4) which autoconfigures at bluetooth controllers as they
are enabled. bluetooth devices now attach here.

btdevctl(8) and its cache is updated to handle new semantics

etc/rc.d/btdevctl is updated to configure devices from a list
in /etc/bluetooth/btdevctl.conf
2006-09-10 15:45:55 +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
plunky 3445aa6e08 Print the error string on failure 2006-08-17 20:18:23 +00:00
plunky 3762d2c843 always create dictionary entry for local-bdaddr as it is wanted by btdev(4) 2006-08-17 20:16:54 +00:00
plunky 885b13c515 rename btcontrol(8) as btdevctl(8) to make it fit with the NetBSD naming
scheme for control programs. This fixes pr 34051.
2006-08-13 09:03:21 +00:00