summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release 5.585.58Marcel Holtmann2021-04-032-1/+4
|
* doc/mgmt-api - Return connection direction in Device Connected EventYu Liu2021-04-021-0/+2
| | | | | | | | | | When an MGMT_EV_DEVICE_CONNECTED event is reported back to the user space we will set the flags to tell if the established connection is outbound or not. This is useful for the user space to log better metrics and error messages. Reviewed-by: Miao-chen Chou <mcchou@chromium.org> Reviewed-by: Alain Michaud <alainm@chromium.org>
* obex: Fix warnings cause by using of deprecated APIsLuiz Augusto von Dentz2021-04-022-6/+0
| | | | | | | | | | | | | | | | obexd/src/main.c: In function 'main': obexd/src/main.c:237:13: warning: Deprecated pre-processor symbol 237 | if (g_thread_supported() == FALSE) | ^~~~~~~~~~~~~~~~~~~~~~~ obexd/src/main.c:238:3: warning: 'g_thread_init' is deprecated [-Wdeprecated-declarations] 238 | g_thread_init(NULL); | ^~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib.h:111, from obexd/src/main.c:31: /usr/include/glib-2.0/glib/deprecated/gthread.h:261:10: note: declared here 261 | void g_thread_init (gpointer vtable); | ^~~~~~~~~~~~~
* Release 5.575.57Marcel Holtmann2021-04-022-1/+6
|
* build: Update library versionMarcel Holtmann2021-04-021-1/+1
|
* monitor: Update RSSI printing functionMarcel Holtmann2021-04-023-8/+9
|
* build: Require at least version 0.39 when building with external ELLMarcel Holtmann2021-04-021-2/+2
|
* build: Always link in the ell/useful.h header fileMarcel Holtmann2021-04-021-4/+12
|
* hog-lib: Fix crash when receiving UHID_GET_REPORTLuiz Augusto von Dentz2021-03-311-19/+30
| | | | | | | | If UHID_GET_REPORT is received but a report cannot be found, etc, the would pass bt_hog as user_data instead of report to get_report_cb leading to a crash. Fixes https://github.com/bluez/bluez/issues/112
* profiles/battery: Reset battery value cache on disconnectSonny Sasaka2021-03-301-0/+1
| | | | | | | | | Due to cache in batt object, bluetoothd fails to update publish the battery value after reconnection when the battery value does not change compared to before reconnection. We should reset the battery percentage cache on disconnect. Reviewed-by: Alain Michaud <alainm@chromium.org>
* test: Fix AdvMonitor RSSI filter propertiesManish Mandlik2021-03-301-7/+8
| | | | | | | | | | | Update the creation of Advertisement Monitor object as per the decoupled RSSIThresholdsAndTimers strucure. More info: doc/advertisement-monitor-api.txt Reviewed-by: apusaka@chromium.org Reviewed-by: howardchung@chromium.org Reviewed-by: mcchou@chromium.org Signed-off-by: Manish Mandlik <mmandlik@google.com>
* adv_monitor: merge monitors with the same patternArchie Pusaka2021-03-301-127/+529
| | | | | | | | | | | | | | | Some bluetooth chipset (e.g. Intel) doesn't support MSFT extension monitors with the same pattern. In order to make them work, and also to generally make their task easier, we merge monitors with the same pattern in the userspace. Therefore, each monitor sent to the kernel will all have different patterns. If the merged monitor have different RSSI parameter, we would choose the most lenient parameter of the two, since we can still do additional filtering in the userspace. This way, we wouldn't miss any information and can still get the benefit of offloading the filtering. Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
* adv_monitor: split rssi_parameters into its own structArchie Pusaka2021-03-301-45/+54
| | | | | | This is an intermediary step for the following merge pattern patch. Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
* btdev: Set CIG ID and CIS ID when generating CIS requestedLuiz Augusto von Dentz2021-03-261-2/+2
| | | | | This is required in order for the host to properly accept/reject the connection.
* btdev: Always set connection handle on CIS establishedLuiz Augusto von Dentz2021-03-261-1/+1
| | | | | This is required in order for the host to be able to distinguished errors if there are multiple CIS connections outstanding.
* mesh: Fix segmented msg RX with friendshipBrian Gix2021-03-251-0/+1
| | | | | | This fixes an uninitialized memory issue where a message received for a local node is silently discarded if an uninitialized boolean is mistakenly set to TRUE, when friendships exist.
* doc/mgmt-api: Update documentation for scan_rsp param flagDaniel Winkler2021-03-221-0/+5
| | | | | | | | This patch adds the new scannable flag to the Add Extended Advertising Parameters MGMT API documentation. Reviewed-by: Alain Michaud <alainm@chromium.org> Reviewed-by: Sonny Sasaka <sonnysasaka@chromium.org>
* advertising: Create and use scannable adv param flagDaniel Winkler2021-03-224-1/+43
| | | | | | | | | | | | | | | In order for the advertising parameters hci request to indicate that an advertising set uses a scannable PDU, we pass a scannable flag along with the initial parameters MGMT request. This flag is populated based on the existence of any scan response data requested by the client. Without this patch, a broadcast advertisement with a scan response will either be rejected by the controller, or will ignore the requested scan response. The patch is tested by performing the above and confirming that the scan response is retrievable from a peer as expected. Reviewed-by: Sonny Sasaka <sonnysasaka@chromium.org> Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
* monitor: Add basic decoding for MSFT extensionMarcel Holtmann2021-03-193-3/+150
|
* monitor: Add skeleton for Microsoft HCI extensionMarcel Holtmann2021-03-194-11/+144
|
* tools: Add command for enabling/disabling LL privacy featureMarcel Holtmann2021-03-191-0/+38
|
* tools/mgmt-tester: Fix for scan response in read adv feature commandTedd Ho-Jeong An2021-03-181-3/+3
| | | | | | | | | This patch fixes the test failure with the read advertising feature API which is changed to include the scan response flag. Read Advertising Features - Success 1 (No instance) Failed Read Advertising Features - Success 2 (One instance) Failed Read Ext Advertising Features - Success 3 (PHY flags) Failed
* monitor: Add option to force output colorSonny Sasaka2021-03-183-2/+30
| | | | | | | | | | | Sometimes we want to force output color even when stdout is not a terminal, for example when piping the output to a filter script and then piping it further to a pager which can display colors. This patch provides a general option to force whether color is on or off (always and never), or leave btmon to decide (auto). Reviewed-by: Daniel Winkler <danielwinkler@google.com>
* doc/advertising-api: Add adv SupportedFeatures to docDaniel Winkler2021-03-171-0/+18
| | | | | | Add supported features to advertising dbus api. Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
* client: Add adv SupportedFeatures to bluetoothctlDaniel Winkler2021-03-171-0/+1
| | | | | | | | | | | This change adds SupportedFeatures to be shown in "show" option of bluetoothctl. It was tested with and without kernel support for features to verify that they are shown or not shown correctly. Change was tested by verifying SupportedFeatures were populated correctly in bluetoothctl on hatch and kukui chromebooks Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
* advertising: Add SupportedFeatures to LEAdvertisingManager1Daniel Winkler2021-03-172-2/+44
| | | | | | | | | | | | | | The new SupportedFeatures member tells advertising clients whether the platform has hardware support for advertising or capability to set tx power of advertisements. Additionally, fix small typo in "secondary_exists" function name. Change is tested on hatch and kukui chromebooks by using dbus-send to verify that SupportedFeatures always exists, and is only populated when extended advertising is available. Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
* build: Fix build with latest ELL treeLuiz Augusto von Dentz2021-03-161-1/+3
| | | | | | | | | | | Latest ELL tree has introduced useful.h and main-private.h which are required to build: ell/cert-crypto.c:35:10: fatal error: useful.h: No such file or directory 35 | #include "useful.h" | ^~~~~~~~~~ ...
* btmgmt: Fix printing Set PHY Configuration command errorAyush Garg2021-03-161-1/+1
| | | | | Error was printed as MGMT_OP_GET_PHY_CONFIGURATION instead of MGMT_OP_SET_PHY_CONFIGURATION.
* shared/gatt-client: fix BT_ATT_OP_HANDLE_NFY_MULT parsingArchie Pusaka2021-03-161-0/+1
| | | | | | | We need to advance the pdu pointer after parsing each block of notification data. Reviewed-by: Sonny Sasaka <sonnysasaka@chromium.org>
* profiles: Use timeout_add_secondsFrédéric Danis2021-03-169-110/+120
| | | | | Replace calls to g_timeout_add_seconds() by the timeout_add_seconds() wrapper which takes care of 0 delay.
* plugins: Use timeout_add_secondsFrédéric Danis2021-03-161-45/+46
| | | | | Replace calls to g_timeout_add_seconds() by the timeout_add_seconds() wrapper which takes care of 0 delay.
* core: Use timeout_add_secondsFrédéric Danis2021-03-166-97/+115
| | | | | Replace calls to g_timeout_add_seconds() by the timeout_add_seconds() wrapper which takes care of 0 delay.
* shared/timeout: Add timeout_add_seconds abstractionFrédéric Danis2021-03-165-7/+51
| | | | | | g_timeout_add_seconds() call doesn't ensure the time for the first call of the timer if the delay is less or equal to 1 second. In case of a 0 delay call g_idle_add() instead of g_timeout_add_seconds().
* emulator: Periodic Advertising CommandKeyur Parekh2021-03-151-6/+44
| | | | | | | This adds support for Periodic Advertising HCI command in the emulator. These changes are the first step in making the emulator useful for testing the LE Audio Broadcast feature
* monitor: Fix decoding Read Local Supported Codec CapabilitiesKiran K2021-03-151-6/+6
| | | | | | | | | | | | | | | | | | | | Codec capabilities wern't properly decoded due to wrong offset < HCI Command: Read Local Supported Codec Capabilities (0x04|0x000e) plen 7 Codec: A-law log (0x01) Logical Transport Type: 0x01 Codec supported over BR/EDR ACL Direction: Input (Host to Controller) (0x00) > HCI Event: Command Complete (0x0e) plen 18 Read Local Supported Codec Capabilities (0x04|0x000e) ncmd 1 Status: Success (0x00) Number of codec capabilities: 3 Capabilities #0: aa bb cc dd .... Capabilities #1: 11 22 33 44 55 ."3DU Capabilities #2: ff .
* avdtp: Fix removing all remote SEPs when loading from cacheLuiz Augusto von Dentz2021-03-111-4/+12
| | | | | | | If avdtp_discover is called after cache has been loaded it end up removing all remote SEPs as they have not been discovered yet. Fixes: https://github.com/bluez/bluez/issues/102
* mesh: Validate OTA provision security materialBrian Gix2021-03-092-0/+21
| | | | | When validating incoming security material, ensure that the data is unique to the provisioning session.
* monitor: Fix invalid accessLuiz Augusto von Dentz2021-03-081-1/+1
| | | | | | | ident can be NULL when printing user logs which may lead ot invalid access. Fixes: https://github.com/bluez/bluez/issues/92
* monitor: Decode Broadcom LM Diag vendor eventsMarcel Holtmann2021-03-071-0/+6
|
* monitor: Fix random address decoding for extending advertisingMarcel Holtmann2021-03-071-1/+1
|
* monitor: Add missing strings for management command codesMarcel Holtmann2021-03-071-5/+12
|
* gatt: Fix registering DIS without a valid sourceLuiz Augusto von Dentz2021-03-051-11/+8
| | | | | | If source has not been set don't register DIS as it would not contain any useful information and by doing this it actually allows systems to register their own DIS instance.
* main.conf: Enable passing false to DeviceIDLuiz Augusto von Dentz2021-03-052-2/+8
| | | | | | | This adds support for setting DeviceID to false so plaforms can disable DeviceID. Fixes: https://github.com/bluez/bluez/issues/101
* adapter: Return Busy error when setting is pendingLuiz Augusto von Dentz2021-03-041-1/+7
| | | | | | | This returns an error if application attempts to change a property that is pending. Fixes: https://github.com/bluez/bluez/issues/99
* adapter: Fix not using the correct settingLuiz Augusto von Dentz2021-03-041-1/+1
| | | | | set_mode shall use opcode to identify what setting are being changed rather then the mode.
* core: fix a typo in dev_connectHoward Chung2021-03-041-1/+1
| | | | | | Based on the context, it should be 'at least' instead of 'at list'. Reviewed-by: Alain Michaud <alainm@chromium.org>
* shared/gatt-server: Fix not properly checking for secure flagsLuiz Augusto von Dentz2021-03-042-18/+15
| | | | | When passing the mask to check_permissions all valid permissions for the operation must be set including BT_ATT_PERM_SECURE flags.
* monitor: Add option to set fallback widthSonny Sasaka2021-03-033-2/+15
| | | | | | | | | Sometimes we want to be able to pipe the output of btmon to a non-terminal device. The current fallback width is usually not long enough so this patch adds an option to specify the column width. This is especially needed for text logs from bluetoothd. Reviewed-by: Daniel Winkler <danielwinkler@google.com>
* btdev: Add support for Configure Data PathLuiz Augusto von Dentz2021-03-021-1/+18
| | | | | | | | | > HCI Event: Command Complete (0x0e) plen 68 Read Local Supported Commands (0x04|0x0002) ncmd 1 Status: Success (0x00) Commands: 169 entries ... Configure Data Path (Octet 45 - Bit 5)
* monitor: Add support for decoding Configure Data PathLuiz Augusto von Dentz2021-03-022-0/+26
| | | | | | | | | | | < HCI Command: Configure Data Path (0x03|0x0083) plen 3 Direction: Input (Host to Controller) (0x00) ID: 0 Vendor Specific Config Length: 0 Vendor Specific Config: > HCI Event: Command Complete (0x0e) plen 4 Configure Data Path (0x03|0x0083) ncmd 1 Status: Success (0x00)