| 4b353ae9 |
client: Add bluetoothctl-transport.1 man page
This adds bluetoothctl-transport.rst which is then converted to
bluetoothctl-transport.1 using rst2man. |
Paul Otto |
2 years ago |
2 files, +84, -2 |
| c0678a4d |
client: Add bluetoothctl-scan.1 man page
This adds bluetoothctl-scan.rst which is then converted to
bluetoothctl-scan.1 using rst2man. |
Paul Otto |
2 years ago |
2 files, +145, -2 |
| 3797ceda |
client: Add bluetoothctl-player.1 man page
This adds bluetoothctl-player.rst which is then converted to
bluetoothctl-player.1 using rst2man. |
Paul Otto |
2 years ago |
2 files, +168, -2 |
| fa5fb919 |
client: Add bluetoothctl-gatt.1 man page
This adds bluetoothctl-gatt.rst which is then converted to
bluetoothctl-gatt.1 using rst2man. |
Paul Otto |
2 years ago |
2 files, +184, -2 |
| face899c |
client: Add bluetoothctl-endpoint.1 man page
This adds bluetoothctl-endpoint.rst which is then converted to
bluetoothctl-endpoint.1 using rst2man. |
Paul Otto |
2 years ago |
2 files, +77, -2 |
| 6c446bdd |
client: Add bluetoothctl-advertise.1 man page
This adds bluetoothctl-advertise.rst which is then converted to
bluetoothctl-advertise.1 using rst2man. |
Paul Otto |
2 years ago |
2 files, +243, -2 |
| 0d65d686 |
client: Add bluetoothctl-admin.1 man page
This adds bluetoothctl-admin.rst which is then converted to
bluetoothctl-admin.1 using rst2man. |
Paul Otto |
2 years ago |
2 files, +44, -2 |
| 7ef40617 |
client: Invalidate scan filter on "scan" command
The "scan bredr" and "scan le" commands are broken right now because the
transport filter gets set, but not actually invalidated.
Invalidate the filter with `filter.set = false` so that it actually gets
updated when set_discovery_filter() is called afterwards. |
Jonas Dreßler |
2 years ago |
1 file, +6, -1 |
| b978f979 |
lib/sdp: Pass size_t to sdp_get_string_attr()
We're currently type-casting the output of strlen(sdpdata->val.str) into
an int, which is somewhat problematic given that strlen() can return
values larger than sizeof(int).
We can do better here and use size_t instead, so let's do that.
While at it, also add a comment explaining why the check here is "smaller
than" instead of "smaller than or equal".
Co-developed-by: Zander Brown <zbrown@gnome.org> |
Jonas Dreßler |
2 years ago |
2 files, +27, -15 |
| 5afa25c9 |
lib/sdp: Use correct string length in sdp_copy_seq()
sdp_data_t->unitSize for strings in the SDP record is
`sizeof(uint8_t) + strlen(str)`.
The "length" argument of sdp_data_alloc_with_length() is expected to be
only the length of the string (so `sdp_data_t->unitSize - sizeof(uint8_t)`).
Since the last commit, in sdp_copy_seq() we're allocating one byte too much
for strings now, because the `sizeof(uint8_t)` is not subtracted from unitSize
there.
Fix this by making use of the length returned by sdp_data_value() and pass
that on to sdp_data_alloc_with_length().
Co-developed-by: Zander Brown <zbrown@gnome.org> |
Jonas Dreßler |
2 years ago |
1 file, +3, -3 |
| cfcc6346 |
lib/sdp: Don't assume uint8_t has size 1
Assuming the size of of uint8_t is bad practice, we use
sizeof(uint8_t) everywhere else and the use of sizeof makes it clear
we're accounting for the descriptor here rather than just randomly
subtracting 1, so change that.
Co-developed-by: Zander Brown <zbrown@gnome.org> |
Jonas Dreßler |
2 years ago |
1 file, +1, -1 |
| fdb5ba2c |
lib/sdp: Allocate strings in sdp_data_t with NULL termination
In extract_str() we create sdp_data_t with strings and allocate
sdp_data_t->val.str an extra 0-byte as NULL termination. In
sdp_data_alloc_with_length() we're missing this, and strlen() in
sdp_get_string_attr() ends up overrunning the sdpdata->val.str buffer
looking for the NULL termination.
Allocate the extra 0-byte for sdp_data_t->val.str to ensure this
overrun can't happen.
Co-developed-by: Zander Brown <zbrown@gnome.org> |
Jonas Dreßler |
2 years ago |
1 file, +1, -1 |
| 303925b2 |
shared/shell: Fix --init-script commandline option
The newly added option -i/--init-script introduced a short option
namespace collision with btmgmt's --index, both of which use '-i'.
As a result, a provided --index is treated as a file name:
$ sudo btmgmt --index 0 info
Unable to open 0: No such file or directory (2)
Fix this by using '-s' for --init-script.
Fixes: https://github.com/bluez/bluez/issues/639 |
Juerg Haefliger |
2 years ago |
1 file, +4, -4 |
| 00fdb61d |
btio: Allow binding a bcast listener before accept
This adds btio support for binding a PA sync io to a number of BISes,
before proceeding with BIG Create Sync. |
Iulia Tanasescu |
2 years ago |
4 files, +61, -7 |
| a17455cd |
iso-tester: Add test for bcast receiver PA bind
This adds a test for binding a Broadcast Receiver to a number of
BISes after PA sync has been established. |
Iulia Tanasescu |
2 years ago |
1 file, +51, -19 |
| e126cf20 |
client: Add support for setting Locations, SupportedContext and Context
This adds proper defaults for Locations, SupportedContext and Context
properties since bluetoothd no longer automatically set proper
defaults. |
Luiz Augusto von Dentz |
2 years ago |
1 file, +178, -14 |
| 5fd6d8cf |
shared/bap: Remove Locations, Support Context and Context defines
These values shall come from the upper stack. |
Luiz Augusto von Dentz |
2 years ago |
1 file, +0, -15 |
| f02e0c86 |
media: Parse Context and SupportedContext
Allow clients to register available Context and SupportedContext for
BAP endpoints. |
Kiran K |
2 years ago |
1 file, +23, -0 |
| a564d6a0 |
bap: Fix reading source codec capabilities
Sink ASE capabilities were read instead of source. |
Kiran K |
2 years ago |
1 file, +1, -1 |
| 932e6420 |
bap: Do not set default location for sink and source
let the clients register the required location for source
and sink endpoints. |
Kiran K |
2 years ago |
1 file, +2, -3 |
| 5f8323f2 |
bap: Fix update of sink location value
pac->sink_loc needs to be updated only if there is a change. |
Kiran K |
2 years ago |
1 file, +1, -3 |
| a1fb50fd |
media: Populate location to qos structure
Allow clients to register Location for endpoint. |
Kiran K |
2 years ago |
1 file, +11, -0 |
| 8a335099 |
client: Make use of bap-debug functions
This make use of bap-debug functions to decode Capabilities,
Configuration and Metadata. |
Luiz Augusto von Dentz |
2 years ago |
1 file, +116, -8 |
| 6d449164 |
shared/bap: Add debug helpers
This adds bap-debug.{c.h} that implements function helpers that can be
used to print BAP/ASCS/PACS TLV entries. |
Luiz Augusto von Dentz |
2 years ago |
6 files, +564, -60 |
| e1ec0866 |
monitor: Make use of util_debug_tlv to decode TLV entries
This uses util_debug_tlv to decode TLV entries. |
Luiz Augusto von Dentz |
2 years ago |
3 files, +75, -121 |
| ffc5819c |
shared/util: Add util_debug_{tlv, bit} helpers
This adds util_debug_tlv and util_debug_bit which can help to print
debug information in their respective formats. |
Luiz Augusto von Dentz |
2 years ago |
2 files, +118, -0 |
| 0c757e8e |
mesh: Fix check for active scan when using generic IO
This modifies the check for an active scan in generic IO:
the bug has been introduced during earlier code refactoring.
Fixes: https://github.com/bluez/bluez/issues/625 |
Inga Stotland |
2 years ago |
1 file, +1, -1 |
| 66c41d78 |
build: Fix manpage location for obex.Agent*(5)
This fixes the location of obex.Agent*(5) manpages. |
Luiz Augusto von Dentz |
2 years ago |
1 file, +3, -3 |
| e347792f |
bap: Update transport acquire/release flow for bcast src
Update transport acquire/release flow for BAP bcast source |
Silviu Florian Barbulescu |
2 years ago |
1 file, +44, -7 |
| 052534ae |
transport: Update transport release flow for bcast src
Update transport release flow for broadcast source |
Silviu Florian Barbulescu |
2 years ago |
1 file, +38, -27 |
| 345ad5e3 |
doc/obex-*-api: Rename to org.bluez.obex.*.rst
This renames obex-*-api.txt to org.bluez.obex.*.rst and generate
manpages org.bluez.obex.*.5. |
Luiz Augusto von Dentz |
2 years ago |
14 files, +1426, -957 |
| afb47b13 |
input: Fix smatch warning
This fixes the following warning:
profiles/input/device.c:165:26: warning: Variable length array is used. |
Luiz Augusto von Dentz |
2 years ago |
1 file, +10, -8 |
| 25a471a8 |
input.conf: Change default of ClassicBondedOnly
This changes the default of ClassicBondedOnly since defaulting to false
is not inline with HID specification which mandates the of Security Mode
4:
BLUETOOTH SPECIFICATION Page 84 of 123
Human Interface Device (HID) Profile:
5.4.3.4.2 Security Modes
Bluetooth HID Hosts shall use Security Mode 4 when interoperating with
Bluetooth HID devices that are compliant to the Bluetooth Core
Specification v2.1+EDR[6]. |
Luiz Augusto von Dentz |
2 years ago |
2 files, +2, -2 |
| 3a9c6370 |
input: Fix .device_probe failing if SDP record is not found
Due to changes introduced by 67a26abe53bf
("profile: Add probe_on_discover flag") profiles may get probed when
their profile UUID are discovered, rather than resolved, which means
the SDP record may not be available.
Fixes: https://github.com/bluez/bluez/issues/614 |
Luiz Augusto von Dentz |
2 years ago |
1 file, +84, -98 |
| 04f40b74 |
unit/test-vcp: VOCS unit test case implementation
This implements all(10) mandatory VOCS testcases as unit tests. |
Mahesh Talewad |
2 years ago |
2 files, +1365, -0 |
| 4ea09cf6 |
test-bass: Add unit tests for the SPE suite
This adds BASS unit tests for the Service Procedures Error
Handling suite. |
Iulia Tanasescu |
2 years ago |
1 file, +428, -2 |
| ee27626c |
doc/admin-policy-api: Rename to org.bluez.AdminPolicy*.rst
This renames admin-policy-api.txt to org.bluez.AdminPolicy*.rst and
generate manpages org.bluez.AdminPolicy*.5. |
Luiz Augusto von Dentz |
2 years ago |
4 files, +110, -68 |
| 87151d19 |
doc/advertisement-monitor-api: Rename to org.bluez.AdvertisementMonitor*.rst
This renames advertisement-monitor-api.txt to
org.bluez.AdvertisementMonitor*.rst and generate manpages
org.bluez.AdvertisementMonitor*.5. |
Luiz Augusto von Dentz |
2 years ago |
4 files, +252, -190 |
| cba68bab |
doc/battery-api: Rename to org.bluez.Battery*.rst
This renames battery-api.txt to org.bluez.Battery*.rst and generate
manpages org.bluez.Battery*.5. |
Luiz Augusto von Dentz |
2 years ago |
5 files, +133, -75 |
| c6c412d6 |
doc/gatt-api: Rename to org.bluez.Gatt*.rst
This renames gatt-api.txt to org.bluez.Gatt*.rst and generate manpages
org.bluez.Gatt*.5. |
Luiz Augusto von Dentz |
2 years ago |
7 files, +796, -515 |
| dec59a07 |
doc/advertising-api: Rename to org.bluez.LEAdvertis*.rst
This renames advertising-api.txt to org.bluez.LEAdvertis*.rst and
generate manpages org.bluez.LEAdvertis*.5. |
Luiz Augusto von Dentz |
2 years ago |
4 files, +345, -279 |
| cfc76016 |
doc/input-api: Rename to org.bluez.Input.rst
This renames input-api.txt to org.bluez.Input.rst and generate manpages
org.bluez.Input.5. |
Luiz Augusto von Dentz |
2 years ago |
3 files, +55, -36 |
| 6481b909 |
doc/network-api: Rename to org.bluez.Network{Server}.rst
This renames network-api.txt to org.bluez.Network{Server}.rst and
generate manpages org.bluez.Network{Server}.5. |
Luiz Augusto von Dentz |
2 years ago |
4 files, +158, -80 |
| c5729e61 |
doc/profile-api: Rename to org.bluez.Profile{Manager}.rst
This renames profile-api.txt to org.bluez.Profile{Manager}.rst and
generate manpages org.bluez.Profile{Manager}.5. |
Luiz Augusto von Dentz |
2 years ago |
4 files, +198, -174 |
| 42e2934c |
doc/agent-api: Rename to org.bluez.Agent{Manager}.rst
This renames agent-api.txt to org.bluez.Agent{Manager}.rst and generate
manpages org.bluez.Agent{Manager}.5. |
Luiz Augusto von Dentz |
2 years ago |
4 files, +239, -189 |
| 359132ba |
doc/device-api: Rename to org.bluez.Device.rst
This renames device-api.txt to org.bluez.Device.rst and generate a
manpage org.bluez.Device.5. |
Luiz Augusto von Dentz |
2 years ago |
3 files, +335, -297 |
| 6f7effa4 |
doc/adapter-api: Rename to org.bluez.Adapter.rst
This renames adapter-api.txt to org.bluez.Adapter.rst and generate a
manpage org.bluez.Adapter.5. |
Luiz Augusto von Dentz |
2 years ago |
3 files, +416, -377 |
| d4a0d223 |
build: Fix missing file unit/test-micp.c
This fixes the following build error:
make[1]: *** No rule to make target 'unit/test-micp.c', needed
by 'unit/test-micp.o'. |
Luiz Augusto von Dentz |
2 years ago |
1 file, +838, -0 |
| 0a749634 |
shared/micp: Fix memory leaks |
Mahesh Talewad |
2 years ago |
1 file, +3, -0 |
| b88e6602 |
unit/test-micp.c: MICP-MICS unit test case implementation
-Added MICS and MICP Unit test cases in a single file[test-micp.c].
-Fixed the issue that occurred while running all the
Unit test cases at a time.
-Tested all Unit test cases and working fine. |
maheshtalewad |
2 years ago |
1 file, +6, -0 |