| e5af5138 |
lib/uuid: Simplify BT base UUIDs when possible
When converting a UUID from string to bt_uuid_t, prefer using
the 16-bit version when possible, which should generate shorter
sequences by increasing the number of 16-bit types. |
Michael Janssen |
11 years ago |
2 files, +66, -6 |
| 20dd67fd |
shared/gatt-db: Add UUID arg to foreach_service
This patch adds the "uuid" argument to gatt_db_foreach_service, which
invokes the callback for a service only if "uuid" is NULL or if it
matches the GATT service UUID. |
Arman Uguray |
11 years ago |
5 files, +27, -13 |
| 454650bd |
shared/gatt-db: Make accessors work on const ptr
Made gatt_db_attribute accessor functions accept a const pointer. |
Arman Uguray |
11 years ago |
2 files, +24, -20 |
| ef2cc5e8 |
shared/att: cancel_all before calling disconnect cb
Moved the call to bt_att_cancel_all to before the call to the registered
disconnect callbacks in bt_att's internal disconnect handler to make
sure that all affected user_data is destroyed. This is to prevent cases
of invalid access, where a user_data destroy function refers to data
that the upper layer might free in the disconnect callback. |
Arman Uguray |
11 years ago |
1 file, +2, -2 |
| 111186b3 |
attrib: Check if attrib is NULL in functions
This patch adds an early return to attrib/gattrib functions if the
attrib argument is NULL. |
Arman Uguray |
11 years ago |
1 file, +22, -1 |
| 0f3796bc |
android/build: Enable multilib build for bluetooth.default |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -1 |
| 1655df15 |
android/gatt: Remove invalid cases from att_handler
For these att opcodes callback will never be called as its registered
for requests and commands. |
Jakub Tyszkowski |
11 years ago |
1 file, +0, -4 |
| 607a2719 |
android/gatt: Handle indications in a separate function
Indications needs their own handler as they do not fall under the
ALL_REQUESTS op type. |
Jakub Tyszkowski |
11 years ago |
1 file, +30, -10 |
| 22152c82 |
android/gatt: Fix not confirming write commands in database
App will never confirm write command as commands dont need one but we
still need to confirm in databasse. We confirm immediately. |
Jakub Tyszkowski |
11 years ago |
1 file, +2, -0 |
| 079956a7 |
android/gatt: Fix write confirm callback being not set
Currently this callback is required or previously registered write
callback function wont be called. |
Jakub Tyszkowski |
11 years ago |
1 file, +11, -11 |
| 2f560e42 |
shared/att: Handle commands under BT_ATT_ALL_REQUESTS
This is needed for backward compatibility with gattrib. |
Jakub Tyszkowski |
11 years ago |
1 file, +4, -2 |
| f5239467 |
mgmt-tester: Update expected HCI version to match emulator |
Johan Hedberg |
11 years ago |
1 file, +2, -2 |
| 2c472473 |
emulator: Fix encryption mode for BR/EDR SC |
Johan Hedberg |
11 years ago |
1 file, +12, -4 |
| bc34ec0e |
emulator: Fix link key type selection for BR/EDR SC |
Johan Hedberg |
11 years ago |
1 file, +3, -3 |
| 42ea4f82 |
emulator: Set default version to 4.2 (0x08) |
Johan Hedberg |
11 years ago |
1 file, +1, -1 |
| 1ec50ced |
core: Enable SC after LE & BR/EDR enabling/disabling
Enabling of SC needs to happen after LE & BR/EDR changes are complete.
E.g. on 4.0 controllers we must first enable LE before being able to
enable SC. |
Johan Hedberg |
11 years ago |
1 file, +3, -3 |
| 09e5d324 |
shared/mgmt: Remove unneeded sync_write API |
Johan Hedberg |
11 years ago |
2 files, +0, -16 |
| e04feacf |
mgmt-tester: Prefer mgmt_send_nowait over sync_write |
Johan Hedberg |
11 years ago |
1 file, +6, -10 |
| 7c55c440 |
shared/mgmt: Add mgmt_send_nowait() API |
Johan Hedberg |
11 years ago |
2 files, +61, -22 |
| 5dd7f0f5 |
core: Always enable SC when available |
Johan Hedberg |
11 years ago |
1 file, +3, -0 |
| e84a0fff |
android/handsfree-client: Trivial fix typo |
Lukasz Rymanowski |
11 years ago |
2 files, +2, -2 |
| 2236a398 |
android/pts: GATT PTS test results for Android 5.0 |
Mariusz Skamra |
11 years ago |
1 file, +33, -33 |
| c3273e94 |
android/pts: GAP PTS test results for Android 5.0 |
Sebastian Chlad |
11 years ago |
1 file, +9, -6 |
| e2f4e299 |
build: Enable -Wswitch-enum in maintainer mode
This makes GCC verify if all enum values are listed in switch. |
Szymon Janc |
11 years ago |
1 file, +1, -0 |
| 368701ed |
tools: List all enum values in switch
As described in coding style M10. |
Szymon Janc |
11 years ago |
2 files, +16, -0 |
| 7757bc6c |
unit: List all enum values in switch
As described in coding style M10. |
Szymon Janc |
11 years ago |
1 file, +1, -0 |
| 42f16f8d |
android: List all enum values in switch
As described in coding style M10. |
Szymon Janc |
11 years ago |
8 files, +103, -0 |
| 995692c7 |
shared: List all enum values in switch
As described in coding style M10. |
Szymon Janc |
11 years ago |
5 files, +29, -0 |
| a41df648 |
obexd: List all enum values in switch
As described in coding style M10. |
Szymon Janc |
11 years ago |
2 files, +4, -0 |
| 29bdc7df |
gobex: List all enum values in switch
As described in coding style M10. |
Szymon Janc |
11 years ago |
1 file, +1, -0 |
| f3176852 |
core: List all enum values in switch
As described in coding style M10 |
Szymon Janc |
11 years ago |
1 file, +4, -0 |
| 372af430 |
attrib: List all enum values in switch
As described in coding style M10 |
Szymon Janc |
11 years ago |
1 file, +4, -0 |
| 552d63be |
btio: List all enum values in switch
As described in coding style M10. |
Szymon Janc |
11 years ago |
1 file, +46, -0 |
| 13e78723 |
lib: List all enum values in switch
As described in coding style M10. |
Szymon Janc |
11 years ago |
1 file, +2, -0 |
| f1d0c834 |
profiles: List all enum values in switch
As described in coding style M10. |
Szymon Janc |
11 years ago |
5 files, +17, -0 |
| 3777f363 |
doc/coding-style: Update 'enum as switch variable' section
Since GCC has option (-Wswitch-enum) that ensure all enum values are
handled inside switch it is no longer necessary to forbit default in
such case. |
Szymon Janc |
11 years ago |
1 file, +18, -6 |
| de1cad2a |
doc: Update mgmt-tester test coverage |
Johan Hedberg |
11 years ago |
1 file, +2, -2 |
| 7ed38be7 |
mgmt-tester: Add forced power off test for Pair Device
The expected status is a bit intuitively DISCONNECTED instead of
NOT_POWERED since the kernels disconn_cfm callback kicks in before power
off notification. |
Johan Hedberg |
11 years ago |
1 file, +12, -0 |
| 9231746c |
mgmt-tester: Add initial forced power off tests |
Johan Hedberg |
11 years ago |
1 file, +90, -4 |
| 41240a36 |
shared/mgmt: Add synchronous write support |
Johan Hedberg |
11 years ago |
2 files, +16, -0 |
| 164d6bf3 |
shared: Allow mgmt_reply to run multiple commands |
Marcel Holtmann |
11 years ago |
1 file, +9, -1 |
| e7013198 |
emulator: Enable LE Ping feature for LE only controller |
Marcel Holtmann |
11 years ago |
1 file, +1, -1 |
| be18ab77 |
emulator: Add support for event mask page 2 for LE only controller |
Marcel Holtmann |
11 years ago |
1 file, +22, -7 |
| 5a9bc67f |
emulator: Use the LE event mask for LE related events |
Marcel Holtmann |
11 years ago |
1 file, +8, -2 |
| 015aee41 |
lib: Use first HCI_UP adapter if non of them have a valid address |
Marcel Holtmann |
11 years ago |
1 file, +8, -1 |
| 899b0631 |
lib: Add check for valid device id to hci_open_dev |
Marcel Holtmann |
11 years ago |
1 file, +6, -0 |
| 15c631c7 |
emulator: Add support for LE local public key and DHKey commands |
Marcel Holtmann |
11 years ago |
1 file, +56, -0 |
| 4479b414 |
monitor: Add support for local public key and DHKey commands and events |
Marcel Holtmann |
11 years ago |
2 files, +60, -4 |
| b7fcac76 |
monitor: Add support for LE data length extension commands and event |
Marcel Holtmann |
11 years ago |
2 files, +112, -5 |
| 60ae3108 |
monitor: Add support for decoding LE Direct Advertising Report event |
Marcel Holtmann |
11 years ago |
2 files, +30, -1 |