| 7c9d2371 |
android/gatt: Remove unnecessary const to non-const casts |
Andrzej Kaczmarek |
11 years ago |
1 file, +2, -2 |
| fd00c597 |
shared: Fix queue_find to accept const ptr as match data
This patch fixes queue_find definition to have const pointer as data to
be matched against. Match function already does have const pointers as
arguments. Also parameter name is updated to be 'match_data' since this
actually is not user_data, just data to be matched against. |
Andrzej Kaczmarek |
11 years ago |
2 files, +3, -3 |
| 9a9f6acc |
android/gatt: Fix handling write cmd
We should not response on write cmd. This patch fixed that. |
Lukasz Rymanowski |
11 years ago |
1 file, +6, -11 |
| fcb22276 |
android/gatt: Fix possible invalid read
Fix dereferencing attrib before checking if not null. |
Jakub Tyszkowski |
11 years ago |
1 file, +4, -3 |
| 9fbe1bc0 |
android/pts: Re-run all GATT PTS tests |
Sebastian Chlad |
11 years ago |
1 file, +229, -65 |
| 2b9aa9fd |
android/pts: Adjust PICS for GATT
As we do not support SDP record for GATT we shall disable
respective PICS (6/3). Moreover patch disables support for
Attribute Protocol over BR/EDR. |
Sebastian Chlad |
11 years ago |
1 file, +2, -2 |
| fbf5f581 |
tools/mgmt-tester: Add "Get Conn Info - Not Connected" |
Andrzej Kaczmarek |
11 years ago |
1 file, +28, -0 |
| a168191d |
tools/mgmt-tester: Add "Get Conn Info - Success" |
Andrzej Kaczmarek |
11 years ago |
1 file, +91, -0 |
| f5b1a728 |
emulator/btdev: Add support for Read TX Power command |
Andrzej Kaczmarek |
11 years ago |
1 file, +26, -0 |
| 5d1d3dc1 |
emulator/btdev: Add support for Read RSSI command |
Andrzej Kaczmarek |
11 years ago |
1 file, +11, -0 |
| 9948b560 |
android/pts: Run MPS PTS tests |
Sebastian Chlad |
11 years ago |
2 files, +21, -21 |
| 8a2166b1 |
android/gatt: Use connect_confirm on incoming connection
This is in order to reuse connect_cb for incoming and outgoing
connections. Also it makes code cleaner. |
Lukasz Rymanowski |
11 years ago |
1 file, +17, -30 |
| 06351304 |
android/gatt: Don't response with error for NOTIFICATION and INDICATION
We shouldn't response for these commands, as they will be serviced
in client implementation. |
Marcin Kraglak |
11 years ago |
1 file, +4, -2 |
| 261b1f65 |
doc: Add crypto unit tests to test coverage details |
Marcel Holtmann |
11 years ago |
1 file, +2, -1 |
| a2578108 |
unit: Add test case for AES-CMAC-128
Test vectors taken from the NIST Special Publication 800-38B
(http://csrc.nist.gov/publications/PubsSPs.html) |
Lukasz Rymanowski |
11 years ago |
3 files, +179, -1 |
| 50830f47 |
shared/crypto: Add support to sign data with AES-CMAC
This patch adds support to generate hash using AES-CMAC algorithm |
Lukasz Rymanowski |
11 years ago |
2 files, +39, -0 |
| 810eba69 |
shared/crypto: Add support for AES-CMAC-128
This patch extends bt_crypto with AF_ALG socket for cmac(aes) hash.
Socket is created on bt_crybto initialization. |
Lukasz Rymanowski |
11 years ago |
1 file, +32, -0 |
| d33546d7 |
smp-tester: Update invalid request test to use correct response
Recent kernels will return the correct Invalid Parameters (0x0a)
response instead of the Unspecified Reason (0x08) response. |
Johan Hedberg |
11 years ago |
1 file, +1, -1 |
| 95f338a7 |
Release 5.19 |
Marcel Holtmann |
11 years ago |
2 files, +13, -1 |
| 4f9577e6 |
core: Improve handling of unpaired event
Unpaired event is per bearer and and bluetoothd should unpair device
only on that bearer. |
Szymon Janc |
11 years ago |
3 files, +71, -6 |
| 547ddef3 |
build: Update library version |
Marcel Holtmann |
11 years ago |
1 file, +1, -1 |
| 8cf946ad |
doc: Update test coverage numbers |
Luiz Augusto von Dentz |
11 years ago |
1 file, +2, -2 |
| d5a24705 |
unit/test-avrcp: Add /TP/VLH/BI-02-C test
To verify the behavior of the TG receiving a SetAbsoluteVolume command
with the top level bit set. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +9, -0 |
| d4a31199 |
unit/test-avrcp: Add /TP/VLH/BI-01-C test
To verify the behavior of the TG receiving an invalid SetAbsoluteVolume
command. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +9, -0 |
| cf527415 |
unit/test-avrcp: Add /TP/VLH/BV-02-C test
To verify the behavior of the TG receiving a valid SetAbsoluteVolume
command. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +20, -0 |
| b6bc216f |
unit/test-avrcp: Add /TP/VLH/BV-01-C test
To verify the SetAbsoluteVolume command issued by the CT. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +11, -0 |
| 49e49b00 |
android/avrcp-lib: Add support for SetAbsoluteVolume PDU |
Luiz Augusto von Dentz |
11 years ago |
2 files, +44, -0 |
| 86a7a090 |
tools/mgmt-tester: Fix "Pair Device - SSP Confirm Reject 1"
With changes introduced in kernel by 6fd6b915 we no longer require MITM
when being pairing initiator (i.e. we indicate it to remote but do not
force it when remote does not require it) thus kernel will auto-accept
pairing when remote also does not require MITM. As a result it's not
possible for tester to reject user confirmation since there's no
request from kernel.
This patch sets acceptor authentication requirements to include MITM
so we'll have user confirmation request and tester can reject it. |
Andrzej Kaczmarek |
11 years ago |
1 file, +5, -0 |
| 1a4cb1a2 |
emulator/bthost: Add support to set auth_req for bthost
This patch makes possible to set Authentication_Requirements to be used
in io_capa_request_reply when replying for io_capa_request_evt. |
Andrzej Kaczmarek |
11 years ago |
2 files, +8, -1 |
| 889c3c03 |
android/bluetooth: Simplify check if device type changed
This makes code easier to follow. Also LE address type is not lost
if dual mode device connected over BR/EDR. |
Szymon Janc |
11 years ago |
1 file, +13, -17 |
| 00d76910 |
android/bluetooth: Track if paired device is bonded
This is a preparation for correctly handling no bond pairing.
Currently paired but not bonded devices are left on list of bonded
devices in Framework until BT is restarted on device. This is due to
Android Framework is not allowing stack to unpair device by its own
(setting bond state bonded->no_bond is ignored). |
Szymon Janc |
11 years ago |
1 file, +36, -19 |
| b9d6d37f |
android/bluetooth: Fix unpairing dual mode device
If device is paired on LE and BR/EDR it should be unpaired on both
bearers. |
Szymon Janc |
11 years ago |
1 file, +19, -6 |
| 03302482 |
android/bluetooth: Fix pairing of dual mode devices
It is possible that dual mode device is paired both for LE and BR/EDR
link. This patch add tracking of this.
Due to HAL API contraints second pairing will result in following bond
state changed events:
bonded -> bonding (success) -> bonded (success/failed) |
Szymon Janc |
11 years ago |
1 file, +124, -48 |
| 8911e43c |
android/bluetooth: Track device last connected bearer
This allows to correctly choose address type when pairing dual mode
devices. |
Szymon Janc |
11 years ago |
1 file, +62, -13 |
| 2c2262cf |
android/gatt: Add proper read_remote_rssi implementation |
Andrzej Kaczmarek |
11 years ago |
1 file, +36, -9 |
| c3364dee |
android/bluetooth: Add support to read connection RSSI |
Andrzej Kaczmarek |
11 years ago |
2 files, +61, -0 |
| 3afaef76 |
tools: Add conn-info to btmgmt |
Lukasz Rymanowski |
11 years ago |
1 file, +89, -0 |
| 62e9043c |
lib: Add definitions for Get Connection Information command |
Andrzej Kaczmarek |
11 years ago |
1 file, +12, -0 |
| 0ae116b1 |
android/pts: Keep PTS GAP results style consistent
If test is not pass due to missing feature mark it as INC and use
appropriate comment. |
Szymon Janc |
11 years ago |
1 file, +21, -22 |
| 34b11293 |
android/pts: Re-run PTS GAP tests |
Sebastian Chlad |
11 years ago |
1 file, +55, -41 |
| dfb5e49e |
android/gatt: Add stub for setting advertising data
Currently kernel is lacking support for fine grained configuration of
advertising data but this is ignored for now.
Vendor data is not supported and if it is to be set command will fail.
This should be implemented when kernel support is added. |
Szymon Janc |
11 years ago |
1 file, +30, -2 |
| c75e5374 |
android/hal: Fix not seting mode in health hal
This fixes the following issue:
==8505== Syscall param socketcall.sendmsg(msg.msg_iov[i]) points to
uninitialised byte(s)
==8505== at 0x534133D: ??? (syscall-template.S:82)
==8505== by 0x7756346: hal_ipc_cmd (hal-ipc.c:359)
==8505== by 0x7750EB2: init (hal-health.c:206)
==8505== by 0x40DF7F: init_p (if-hl.c:86)
==8505== by 0x401961: main (haltest.c:417)
==8505== Address 0x7fefffb81 is on thread 1's stack |
Jakub Tyszkowski |
11 years ago |
1 file, +1, -0 |
| 3519d60f |
android/client: Support sending GATT Server responses
We prepare response by filling btgatt_response_t union's first member
only. The same thing is done by JNI in Android, which ignores second
member. There is also no parameter to tell which union member is set.
More to this, second union member seams to be redundant duplicate of
first member's inner member (broken API?). JNI method is always called
with auth_req set to 0 thus this parameter is omitted in haltest. |
Jakub Tyszkowski |
11 years ago |
1 file, +37, -2 |
| c89bc105 |
android/hal: Fix sending not initialised data
As we always send whole gatt_response_t struct through IPC,
but copy only cmd->len bytes, the rest should be initilised to 0.
This fixes the following issue:
==30585== Syscall param socketcall.sendmsg(msg.msg_iov[i]) points
to uninitialised byte(s)
==30585== at 0x534133D: ??? (syscall-template.S:82)
==30585== by 0x7756336: hal_ipc_cmd (hal-ipc.c:359)
==30585== by 0x77546DF: send_response.part.0 (hal-gatt.c:1247)
==30585== by 0x408119: gatts_send_response_p (if-gatt.c:1777)
==30585== by 0x40219F: process_line (haltest.c:293)
==30585== by 0x402552: terminal_action_enter (terminal.c:666)
==30585== by 0x403184: terminal_process_char (terminal.c:781)
==30585== by 0x401B90: stdin_handler (haltest.c:308)
==30585== by 0x402261: poll_dispatch_loop (pollhandler.c:60)
==30585== by 0x401870: main (haltest.c:441)
==30585== Address 0x7fefff2a3 is on thread 1's stack |
Jakub Tyszkowski |
11 years ago |
1 file, +2, -0 |
| e770585f |
android/gatt: Handle Androids read/write responses in response queue
This is needed for reads like "read by type" to support Android
responses, callback reads and direct db reads in a single request. |
Jakub Tyszkowski |
11 years ago |
1 file, +58, -30 |
| b4755d7f |
lib: Update company identifiers |
Marcel Holtmann |
11 years ago |
1 file, +35, -1 |
| 1783548c |
plugins/sixaxis: Factor out a calc_leds_bitmap() function
This is also in preparation of set_leds_sysfs(). |
Antonio Ospite |
11 years ago |
1 file, +25, -12 |
| f6e6850c |
plugins/sixaxis: Factor out a set_leds_hidraw() function
This is in preparation for a set_leds_sysfs() function.
Make set_leds_hidraw() return void, as its return value is never used
by the caller: the setup_leds() callback has to always return FALSE. |
Antonio Ospite |
11 years ago |
1 file, +18, -13 |
| a148b6bb |
shared/gatt: Fix freeing uninitialized attributes
Don't free uninitialized attributes. It could cause NULL pointer
dereference. |
Marcin Kraglak |
11 years ago |
1 file, +4, -0 |
| 40798ee2 |
android/gatt: Fix for read request
If there is no attribute in database we should return immediately. |
Lukasz Rymanowski |
11 years ago |
1 file, +3, -1 |