| 7725579d |
mgmt-tester: Add test for Limited/Device Privacy
This adds a test for Limited/Device Privacy (0x02):
@ MGMT Command: Set Privacy (0x002f) plen 17
Privacy: Limited (0x02)
Key: 01020304050607080102030405060708
@ MGMT Event: Command Complete (0x0001) plen 7
Set Privacy (0x002f) plen 4
Status: Success (0x00)
Current settings: 0x00002080
BR/EDR
Privacy
@ MGMT Event: New Settings (0x0006) plen 4
Current settings: 0x00002080
BR/EDR
Privacy |
Luiz Augusto von Dentz |
4 years ago |
1 file, +25, -8 |
| 7234c739 |
main.conf: Fix Privacy modes
Device privacy 0x01 uses RPA regardless of the discoverable setting thus
it conforms to network mode not device mode.
Also this improves documentation to state what is the expectation of
each mode since it may not have been very clear by just using the terms
from the spec. |
Luiz Augusto von Dentz |
4 years ago |
2 files, +11, -3 |
| 28e85e54 |
tools/mgmt-tester: Add LL Privacy test cases
This patch adds LL Privacy related test cases.
Multi Ext Advertising - Success 3 (Add 2 Advs)
Multi Ext Advertising - Success 4 (Remove Adv)
Multi Ext Advertising - Success 5 (Remove all)
Multi Ext Advertising - Success 6 (Add w/o power on)
Multi Ext Advertising - Fail (Add MAX)
LL Privacy - Add Device 1 (Add to AL)
LL Privacy - Add Device 2 (Add to RL)
LL Privacy - Add Device 3 (Enable RL)
LL Privacy - Add Device 4 (2 Devices to AL)
LL Privacy - Add Device 5 (2 Devices to RL)
LL Privacy - Add Device 6 (RL is full)
LL Privacy - Add Device 7 (WL is full)
LL Privacy - Add Device 8 (Disable Adv)
LL Privacy - Add Device 9 (Multi Adv)
LL Privacy - Add Device 10 (Multi Dev and Multi Adv)
LL Privacy - Remove Device 1 (Remove from AL)
LL Privacy - Remove Device 2 (Remove from RL)
LL Privacy - Remove Device 3 (Disable RL)
LL Privacy - Remove Device 4 (Disable Adv)
LL Privacy - Remove Device 5 (Multi Adv)
LL Privacy - Start Discovery 1 (Disable RL)
LL Privacy - Start Discovery 2 (Disable RL)
LL Privacy - Advertising 1 (Scan Results)
LL Privacy - Acceptor 1
LL Privacy - Acceptor 2
LL Privacy - Pair 1
LL Privacy - Pair 2 (Add to AL)
LL Privacy - Unpair 1
LL Privacy - Unpair 2 (Remove from AL) |
Tedd Ho-Jeong An |
4 years ago |
1 file, +2139, -425 |
| 1d6766a0 |
tools/mgmt-tester: Update the expected manufacturer of emulator
This patch updates the expected manufacturer of the emulator for the
following test cases:
> Read Ext Controller Info 1 Failed
> Read Ext Controller Info 2 Failed
> Read Ext Controller Info 3 Failed
> Read Ext Controller Info 4 Failed
> Read Ext Controller Info 5 Failed |
Tedd Ho-Jeong An |
4 years ago |
1 file, +5, -5 |
| 6b59e816 |
device: Fix not clearing error on update_bredr_services
When trying to loads contents from file using g_key_file_load_from_file
it may cause an error which needs to be cleared since the gerr is
reused, also make sure the file is always created upfront to avoid
having such error when storage has not been initialized. |
Luiz Augusto von Dentz |
4 years ago |
1 file, +10, -6 |
| c3734190 |
obexd: Add missing phonebook backends
This adds missing phonebook backends to EXTRA_DIST so they can be build
from tarballs.
Fixes: https://github.com/bluez/bluez/issues/222 |
Luiz Augusto von Dentz |
4 years ago |
1 file, +2, -0 |
| 70807e8f |
Makefile: Fix code style
Fix lines going over 80 columns. |
Luiz Augusto von Dentz |
4 years ago |
3 files, +16, -10 |
| 25940703 |
gatt: added missing disconn_id's and removed extra check
Adds missing assignment to disconn_id for pending operations and removes
check that is already handled by checking if the owner_queue of the op
is gone at the start of write_reply_cb. |
Bernie Conrad |
4 years ago |
1 file, +3, -5 |
| 380f6ba6 |
tools/mgmt-tester: Add support for experimental feature in setup
This patch adds support for experimental feature in setup_settings
options. |
Tedd Ho-Jeong An |
4 years ago |
1 file, +18, -0 |
| 435a55db |
emulator: Add support to get the advertising address
This patch add supprt emulator to get the advertising address of the
central device. |
Tedd Ho-Jeong An |
4 years ago |
4 files, +41, -2 |
| 9dcd6ea1 |
emulator: bthost: Add support LE Ext Adv Report
This patch adds support LE_Extended_Advertising_Report Eevnt in bthost. |
Tedd Ho-Jeong An |
4 years ago |
2 files, +123, -0 |
| f669f9bd |
emulator: Add support to config the accept and resolve list
This patch adds interfaces to config the accept list and resolve list in
the btdev. |
Tedd Ho-Jeong An |
4 years ago |
4 files, +65, -8 |
| 0626b792 |
btdev: Fix using the callback return as command complete
Command callback can only be used when generating a command status as
command complete can carry more than just the status. |
Luiz Augusto von Dentz |
4 years ago |
1 file, +84, -36 |
| 8b6b9b77 |
adapter: Fix storing IRK causing invalid read
When storing an IRK the storage file may not have been created yet
since that uses the device address which is likely changed to the
identity address causing the following trace:
Invalid read of size 8
at 0x196452: store_irk.constprop.0 (adapter.c:8679)
by 0x198C92: new_irk_callback (adapter.c:8737)
by 0x1CF6DC: queue_foreach (queue.c:207)
by 0x1D1394: process_notify (mgmt.c:308)
by 0x1D1394: can_read_data (mgmt.c:374)
by 0x1E0634: watch_callback (io-glib.c:157)
by 0x4954A9E: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.6600.8)
by 0x49A6A97: ??? (in /usr/lib64/libglib-2.0.so.0.6600.8)
by 0x4954162: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.6600.8)
by 0x1E0CD4: mainloop_run (mainloop-glib.c:66)
by 0x1E10B1: mainloop_run_with_signal (mainloop-notify.c:188)
by 0x12E3FC: main (main.c:1210)
Address 0x6534418 is 8 bytes inside a block of size 16 free'd |
Luiz Augusto von Dentz |
4 years ago |
2 files, +9, -6 |
| 329b910b |
btdev: Set Local RPA when own_addr_type is 0x03
This enables the emulator to properly emulate the generation of a Local
RPA so it always set the random_addr when Create Connection sets 0x03 as
own_addr_type 0x03:
< HCI Command: LE Extended.. (0x08|0x0043) plen 26
Filter policy: Accept list is not used (0x00)
Own address type: Random (0x03)
Peer address type: Public (0x00)
Peer address: 00:AA:01:01:00:00 (Intel Corporation)
Initiating PHYs: 0x01
Entry 0: LE 1M
Scan interval: 60.000 msec (0x0060)
Scan window: 60.000 msec (0x0060)
Min connection interval: 30.00 msec (0x0018)
Max connection interval: 50.00 msec (0x0028)
Connection latency: 0 (0x0000)
Supervision timeout: 420 msec (0x002a)
Min connection length: 0.000 msec (0x0000)
Max connection length: 0.000 msec (0x0000)
> HCI Event: Command Status (0x0f) plen 4
LE Extended Create Connection (0x08|0x0043) ncmd 1
Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 31
LE Enhanced Connection Complete (0x0a)
Status: Success (0x00)
Handle: 42
Role: Central (0x00)
Peer address type: Public (0x00)
Peer address: 00:AA:01:01:00:00 (Intel Corporation)
Local resolvable private address: 60:0C:C5:B9:10:5D (Resolvable)
Peer resolvable private address: 00:00:00:00:00:00 (Non-Resolvable)
Connection interval: 50.00 msec (0x0028)
Connection latency: 0 (0x0000)
Supervision timeout: 420 msec (0x002a)
Central clock accuracy: 0x00 |
Luiz Augusto von Dentz |
4 years ago |
1 file, +15, -6 |
| 8ab3b9e3 |
mgmt-tester: Fix expected manufacturer
The emulator is now using Linux Foundation manufacturer ID. |
Luiz Augusto von Dentz |
4 years ago |
1 file, +1, -1 |
| 7cb83c3c |
tools/hcitool: Fix the descriptions of leal* commands
The descriptions of leal* commands are copied from lewl* commands.
However they should use "accept list" instead. |
Archie Pusaka |
4 years ago |
1 file, +4, -4 |
| c49cf698 |
emulator: Add initial support for MSFT vendor commands
This adds the initial support for MSFT vendor commands and enable them
when in btvirt:
< HCI Command: Microsoft Ex.. (0x3f|0x001e) plen 1
Read Supported Features (0x00)
> HCI Event: Command Complete (0x0e) plen 14
Microsoft Extension (0x3f|0x001e) ncmd 1
Read Supported Features (0x00)
Status: Success (0x00)
Features: 0x3f 0x00 0x00 0x00 0x00 0x00 0x00 0x00
RSSI Monitoring feature for BR/EDR
RSSI Monitoring feature for LE connections
RSSI Monitoring of LE advertisements
Advertising Monitoring of LE advertisements
Verifying the validity of P-192 and P-256 keys
Continuous Advertising Monitoring
Event prefix length: 0
Event prefix:
< HCI Command: Microsoft Ex.. (0x3f|0x001e) plen 2
LE Set Advertisement Filter Enable (0x05)
Enable: All filter conditions (0x01)
> HCI Event: Command Complete (0x0e) plen 5
Microsoft Extension (0x3f|0x001e) ncmd 1
LE Set Advertisement Filter Enable (0x05)
Status: Success (0x00) |
Luiz Augusto von Dentz |
4 years ago |
2 files, +223, -24 |
| 47be9d40 |
monitor: Enable decoding of MSFT extension with emulator
This enables decoding MSFT extension with emulator instances since it
shall be the only one using Linux Foundation as manufacturer. |
Luiz Augusto von Dentz |
4 years ago |
1 file, +9, -0 |
| 655078d1 |
btdev: Use Linux Foundation as manufacturer
This makes the emulator use Linux Foundation manufacturer id which
shall be simpler to distinguish emulator instances since it is unlikely
there will be other vendors using it. |
Luiz Augusto von Dentz |
4 years ago |
1 file, +1, -1 |
| a6b2fd7b |
emulator/vhci: Fix writing msft_opcode using binary format
debugfs expects values in string format not binary format. |
Luiz Augusto von Dentz |
4 years ago |
1 file, +10, -1 |
| 5226a2d3 |
monitor/msft: Add feature bits definition
This adds the feature bits definition used in
HCI_VS_MSFT_Read_Supported_Features. |
Luiz Augusto von Dentz |
4 years ago |
1 file, +7, -0 |
| 46ee5feb |
monitor/msft: Fix uuid.u128 format
128 bits are actually 16 octecs not 8. |
Luiz Augusto von Dentz |
4 years ago |
1 file, +1, -1 |
| 1b037415 |
peripheral: Fix unchecked return value
This patch fixes the unchecked return value(CWE-252) issues reported by
the Coverity. |
Tedd Ho-Jeong An |
4 years ago |
1 file, +2, -1 |
| 96ffb02e |
obexd: Fix unchecked return value
This patch fixes the unchecked return value(CWE-252) issues reported by
the Coverity. |
Tedd Ho-Jeong An |
4 years ago |
3 files, +15, -5 |
| 799f6ff7 |
mesh: Fix unchecked return value
This patch fixes the unchecked return value(CWE-252) issues reported by
the Coverity. |
Tedd Ho-Jeong An |
4 years ago |
4 files, +30, -15 |
| cd75918d |
profiles/input: Fix unchecked return value
This patch fixes the unchecked return value(CWE-252) issues reported by
the Coverity. |
Tedd Ho-Jeong An |
4 years ago |
1 file, +5, -1 |
| 4ad622d5 |
profiles/a2dp: Fix unchecked return value
This patch fixes the unchecked return value(CWE-252) issues reported by
the Coverity. |
Tedd Ho-Jeong An |
4 years ago |
1 file, +28, -5 |
| 0b23a290 |
plugins/admin: Fix unchecked return value
This patch fixes the unchecked return value(CWE-252) issues reported by
the Coverity. |
Tedd Ho-Jeong An |
4 years ago |
1 file, +13, -2 |
| 1dbc27ec |
attrib-server: Fix unchecked return value
This patch fixes the unchecked return value(CWE-252) issues reported by
the Coverity. |
Tedd Ho-Jeong An |
4 years ago |
1 file, +18, -3 |
| 2287c517 |
adapter: Fix unchecked return value
This patch fixes the unchecked return value(CWE-252) issues reported by
the Coverity. |
Tedd Ho-Jeong An |
4 years ago |
1 file, +211, -38 |
| 6a154cd0 |
device: Fix unchecked return value
This patch fixes the unchecked return value(CWE-252) issues reported by
the Coverity. |
Tedd Ho-Jeong An |
4 years ago |
1 file, +119, -22 |
| fb9f9db1 |
build: Fix build error with ell/cleanup.h
This patch fixes the build error due to missing ell/cleanup.h.
./ell/util.h:33:10: fatal error: ell/cleanup.h: No such file or directory
33 | #include <ell/cleanup.h>
| ^~~~~~~~~~~~~~~ |
Tedd Ho-Jeong An |
4 years ago |
1 file, +1, -0 |
| 3f03ea4a |
mgmt-tester: Make use of vhci_set_force_suspend/vhci_set_force_wakeup
This replaces the direct setting debugfs to use vhci instance which
properly stores the controller index so it can be used even if there
are real controllers in the system. |
Luiz Augusto von Dentz |
4 years ago |
3 files, +33, -81 |
| 01608425 |
vhci: Add functions to interface with debugfs
This adds functions that can be used to set debugfs options. |
Luiz Augusto von Dentz |
4 years ago |
4 files, +95, -2 |
| 135f5d82 |
hciemu: Use vhci_open to instanciate a vhci btdev
This makes use of vhci_open to isntanciate the vhci btdev since that
has proper support for reading the index assigned to it. |
Luiz Augusto von Dentz |
4 years ago |
4 files, +91, -54 |
| 66573e12 |
vhci: Use io.h instead of mainloop.h
The likes of mainloop_add_fd is not implemented in mainloop-glib.c while
io_set_read_handler so this makes it possible to use vhci instance with
both libshared-glib and libshared-mainloop. |
Luiz Augusto von Dentz |
4 years ago |
1 file, +31, -36 |
| 16f01989 |
vhci: Read the controller index
This makes vhci instance read its controller index assigned by the
kernel and also introduces vhci_get_btdev so it can be used by the
likes of hciemu. |
Luiz Augusto von Dentz |
4 years ago |
3 files, +54, -44 |
| beb5cc05 |
monitor: Make use of MSFT packet definitions
This make use of the packet definitions for MSFT extension. |
Luiz Augusto von Dentz |
4 years ago |
1 file, +118, -26 |
| 7d49b158 |
monitor: Add packet definitions for MSFT extension
This adds proper packet definitions for command and response of MSFT
extension. |
Luiz Augusto von Dentz |
4 years ago |
1 file, +151, -0 |
| 8ac79215 |
Release 5.62 |
Marcel Holtmann |
4 years ago |
2 files, +9, -1 |
| 01956e3f |
build: Update library version |
Marcel Holtmann |
4 years ago |
1 file, +1, -1 |
| 9cf8365b |
Use accurate icons for headphones and headsets
While these icon names are not part of the spec standard names [0] they
are in practice implemented by at least Adwaita, Gnome, Oxygen, Arc and Breeze
themes.
[0] https://specifications.freedesktop.org/icon-naming-spec/latest/ar01s04.html |
Thomas Weißschuh |
4 years ago |
1 file, +2, -2 |
| c815b6ba |
tools/mesh-cfg-client: Fix NULL pointer dereferencing
This patch fixes a number of potential NULL pointer dereferencing
cases. |
Inga Stotland |
4 years ago |
3 files, +8, -3 |
| 5879dbf6 |
tools/mgmt-tester: Add more suspend/resume test cases
This patch adds more suspend/resuem test cases like
- Discover -> Suspend
- Discover -> Suspend -> Resume
- Suspend -> Resume -> Suspend -> Resume |
Tedd Ho-Jeong An |
4 years ago |
1 file, +164, -7 |
| b4a9e654 |
tools/mgmt-tester: Updates Experimental Feature test cases
This patch updates/adds test cases for Read and Set Experimental Feature
commands. |
Tedd Ho-Jeong An |
4 years ago |
1 file, +89, -3 |
| 9bf38bc6 |
doc/tester-config: Enable Runtime Debugging Feature
This patch adds CONFIG_BT_FEATURE_DEBUG=y in tester config to enable the
runtime debug option. |
Tedd Ho-Jeong An |
4 years ago |
1 file, +1, -0 |
| 56c70d43 |
test-hog: Update pdu sequence
With recent changes to use bt_att_resend the procedures such as read
long will group the reads to the same handler before proceeding to the
next procedures. |
Luiz Augusto von Dentz |
4 years ago |
1 file, +7, -7 |
| ac2c2e10 |
attrib: Make use of bt_att_resend
If the id != 0 that means that a proceedure that needs multiple PDUs is
in progress so use bt_att_resend with its id that way the bt_att id and
gattrib shall always be the same. |
Luiz Augusto von Dentz |
4 years ago |
1 file, +22, -73 |
| ebc08d94 |
shared/gatt-client: Make use of bt_att_resend
This makes use of bt_att_resend when sending continuation of PDUs such
as BT_ATT_OP_READ_BLOB_REQ and BT_ATT_OP_PREP_WRITE_REQ to avoid having
it interleave with other procedures, which is both simpler for the
peripheral to handle as well as it should reduce the lifetime of the
objects used for tracking the state of these procedures. |
Luiz Augusto von Dentz |
4 years ago |
1 file, +19, -14 |