| f43d74eb |
android: Fix sending uninitialised data
This fixes the following:
==25759== Syscall param socketcall.sendmsg(msg.msg_iov[i]) points to
uninitialised byte(s)
==25759== at 0x521C570: __sendmsg_nocancel (syscall-template.S:82)
==25759== by 0x41688F: ipc_send (ipc.c:366)
==25759== by 0x40ECF8: send_ssp_request (bluetooth.c:1028)
==25759== by 0x4110A6: user_confirm_request_callback
(bluetooth.c:1055)
==25759== by 0x4094FE: queue_foreach (queue.c:186)
==25759== by 0x409FCF: can_read_data (mgmt.c:287)
==25759== by 0x408E4C: read_callback (io-glib.c:168)
==25759== by 0x4E79D12: g_main_context_dispatch (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4)
==25759== by 0x4E7A05F: ??? (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4)
==25759== by 0x4E7A459: g_main_loop_run (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.4)
==25759== by 0x40454D: main (main.c:538)
==25759== Address 0x7ff00085d is on thread 1's stack
==25759== Uninitialised value was created by a stack allocation
==25759== at 0x40EC77: send_ssp_request (bluetooth.c:1018) |
Jakub Tyszkowski |
11 years ago |
1 file, +2, -0 |
| 8b2a8c92 |
android/gatt: Fix possible memory leak |
Jakub Tyszkowski |
11 years ago |
1 file, +1, -0 |
| 69883994 |
android/gatt: Add handling signed write from remote device |
Lukasz Rymanowski |
11 years ago |
1 file, +42, -0 |
| 537e5de5 |
android/gatt: Add support for signed write command |
Lukasz Rymanowski |
11 years ago |
1 file, +36, -0 |
| 3785fca5 |
android/gatt: Add crypto needed for sign write |
Lukasz Rymanowski |
11 years ago |
3 files, +12, -1 |
| 067c2558 |
android/bluetooth: Store sign counter needed for aes-cmac sign
If CSRK is valid between sessions we should remember sign counter.
Therefor store it. |
Lukasz Rymanowski |
11 years ago |
1 file, +39, -2 |
| 4c1d913d |
android/bluetooth: Read CSRK from the storage on startup |
Lukasz Rymanowski |
11 years ago |
1 file, +22, -0 |
| bfcc673c |
android/bluetooth: Store CSRK
CSRK is generated while paring and should be used for sign att packets
when LE devices uses write signed command. |
Lukasz Rymanowski |
11 years ago |
1 file, +44, -1 |
| f9765673 |
android/bluetooth: Add support to read CSRK from the kernel |
Lukasz Rymanowski |
11 years ago |
1 file, +40, -0 |
| 55fa5f1e |
android/bluetooth: Expose API to update sign counter
This is needed so GATT can notify GAP that write sign has been done and
sign counter shall be increased as per spec. |
Lukasz Rymanowski |
11 years ago |
2 files, +16, -0 |
| 2003db38 |
android/bluetooth: Expose API to get CSRK for device
GATT will take CSRK key and sign counter each time it needs it to sign
att package or to verify att package |
Lukasz Rymanowski |
11 years ago |
2 files, +39, -0 |
| 84bbaa39 |
attrib: Add wrapper to send signed write command |
Lukasz Rymanowski |
11 years ago |
2 files, +21, -0 |
| d4026bb3 |
attrib: Add helpers to enc and dec signed write command |
Lukasz Rymanowski |
11 years ago |
2 files, +66, -0 |
| 87f79a9c |
shared/crypto: Extend bt_crypto_sign_att with sign counter
Sign counter is use in two places during att signing:
1) Shall be concatenated with message to be sign as specified in BT spec
4.1, Vol[3], Part H, chapter 2.4.5
2) Shall be a part of signature send in the att packet as specified in
BT spec 4.1 Vol[3], Part C, chapter 10.4.1
With this patch, bt_crypto_sign_att returns signature as specified in 2)
This patch also updates unit tests so now it uses sign counter 0. Note
that test vectors no longer match that one from NIST Special
Publication 800-38B |
Lukasz Rymanowski |
11 years ago |
3 files, +25, -10 |
| 567d19e4 |
shared/uhid: Use uhid_copy.h instead of system header |
Szymon Janc |
11 years ago |
1 file, +2, -1 |
| af2a3770 |
input: Update uhid_copy.h to version from Linux 3.14 |
Szymon Janc |
11 years ago |
1 file, +4, -2 |
| 9e624240 |
doc: Update test numbers for mgmt-tester |
Marcel Holtmann |
11 years ago |
1 file, +2, -2 |
| 3103f22c |
build: Add test-uhid binary to .gitignore list |
Marcel Holtmann |
11 years ago |
1 file, +1, -0 |
| 8bfe0af3 |
doc: Add test-uhid test numbers to our coverage list |
Marcel Holtmann |
11 years ago |
1 file, +2, -1 |
| 0096a788 |
android/pts: Update GATT tests results |
Eva Kolanska |
11 years ago |
1 file, +98, -14 |
| e71b3028 |
android/gatt: Add debug logs useful for PTS testing |
Lukasz Rymanowski |
11 years ago |
1 file, +5, -0 |
| 330a3ab4 |
input/hog: Rework uHID code to use bt_uhid |
Luiz Augusto von Dentz |
11 years ago |
1 file, +90, -185 |
| 19252410 |
input/device: Fix warnings when disconnecting
Since the introdution of btd_profile there is a dedicated callback for
disconnecting profiles which should never be mixed with
device_add_disconnect_watch since they serve the same purpose. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +5, -25 |
| e93eeb6c |
input/device: Rework uHID code to use bt_uhid |
Luiz Augusto von Dentz |
11 years ago |
2 files, +73, -185 |
| 00d4b9d8 |
unit/test-uhid: Add /uhid/event/feature test |
Luiz Augusto von Dentz |
11 years ago |
1 file, +13, -0 |
| 8f18444f |
unit/test-uhid: Add /uhid/event/output test |
Luiz Augusto von Dentz |
11 years ago |
1 file, +24, -0 |
| 02bae107 |
shared/uhid: Add implemetation of bt_uhid_register/bt_uhid_unregister |
Luiz Augusto von Dentz |
11 years ago |
2 files, +76, -5 |
| 66353cb5 |
unit/test-uhid: Add /uhid/command/input test |
Luiz Augusto von Dentz |
11 years ago |
1 file, +8, -0 |
| 8dd80572 |
unit/test-uhid: Add /uhid/command/feature_answer test |
Luiz Augusto von Dentz |
11 years ago |
1 file, +10, -0 |
| 87779c55 |
unit/test-uhid: Add /uhid/command/destroy test |
Luiz Augusto von Dentz |
11 years ago |
1 file, +8, -0 |
| 6e241c87 |
unit/test-uhid: Add /uhid/command/create test |
Luiz Augusto von Dentz |
11 years ago |
1 file, +210, -0 |
| 632617bc |
shared/uhid: Add initial API |
Luiz Augusto von Dentz |
11 years ago |
4 files, +263, -0 |
| 05da3d5c |
shared/queue: Make queue_find default do direct match for NULL callback |
Luiz Augusto von Dentz |
11 years ago |
1 file, +8, -0 |
| 7cf7f976 |
shared/queue: Fix queue_foreach not detecting queue has changed
This fixes queue_foreach crashing if callback calls queue_remove_all. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +14, -0 |
| d03c4da2 |
unit/test-queue: Add /queue/foreach_remove_all test
This tests queue_remove_all from queue_foreach callback. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +21, -0 |
| e57233b4 |
shared/queue: Fix queue_foreach not detecting queue has been destroyed
This fixes queue_foreach crashing if it callback call queue_destroy. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +26, -3 |
| 661d845b |
unit/test-queue: Add /queue/foreach_destroy test
This tests queue_destroy from queue_foreach callback. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +21, -0 |
| ace7a094 |
doc: Update RSSI property description.
RSSI property applies to either inquiry or advertising packets and this
should be stated here especially that we plan to add connection RSSI
property. |
Lukasz Rymanowski |
11 years ago |
1 file, +1, -1 |
| 342269dd |
android/hal-audio: Decouple SBC codec from core HAL
Codec abstraction in hal-audio is now good enough to allow splitting
code into core and codec implementation easily so this patch moves
SBC codec code into separate file and provides interface required for
other codecs to be implemented. |
Andrzej Kaczmarek |
11 years ago |
5 files, +511, -463 |
| 6762d9a4 |
android/gatt: Send Exchange MTU request on connect
This adds sending exchange MTU request on connection.
This is needed to pass TC_GAC_CL_BV_01_C. |
Jakub Tyszkowski |
11 years ago |
1 file, +71, -0 |
| 81720ee5 |
android/gatt: Use pending request for write req and prep write
This patch add missing pending request for write operations.
Now Android server application can send response to remote device |
Lukasz Rymanowski |
11 years ago |
1 file, +27, -0 |
| 743f12cc |
android/gatt: Fix minor style code issue |
Lukasz Rymanowski |
11 years ago |
1 file, +0, -1 |
| fa1747ef |
android/gatt: Improve handling pending read/write requests
This patch adds state and error to pending request. It is not easy to
follow the code and we make sure that any error code provided by Android
server application will be send out to remote device. |
Lukasz Rymanowski |
11 years ago |
1 file, +51, -43 |
| fb6b1a85 |
android/gatt: Use common framework for processing read_by_group_type request
Use function process_dev_pending_request to read values of attributes. |
Marcin Kraglak |
11 years ago |
1 file, +2, -17 |
| 7dc00a0e |
android/gatt: Check for connection state on connection search
This search was used with the assumption that connection is in
"connected" state. This could result in attrib pointer being
dereferenced while it's still NULL (pending connection). |
Jakub Tyszkowski |
11 years ago |
1 file, +7, -1 |
| 898635a9 |
android/pts: Update GATT PTS TC_GAR_SR_BI_08_C test result |
Szymon Janc |
11 years ago |
1 file, +1, -1 |
| fc62b25e |
android/gatt: Don't process read_by_type request with invalied range
Return ATT_ECODE_INVALID_HANDLE if range is incorrect. It repairs
TC_GAR_SR_BI_08_C test case. |
Marcin Kraglak |
11 years ago |
1 file, +3, -0 |
| 962e1ac2 |
android/gatt: Fix not sending confirmation for INDICATION
Send confirmation for ATT_OP_HANDLE_IND (opcode 0x1D). It is needed
for flow control. |
Marcin Kraglak |
11 years ago |
1 file, +10, -16 |
| 387748cf |
android/gatt: Fix handling write request
This patch adds write request to Android framework and uses buffor on
the stack for the request event. |
Lukasz Rymanowski |
11 years ago |
1 file, +15, -11 |
| 85e82427 |
android/bluetooth: Add bonded information to found device callback
If device is bonded then discoverable flag is not set. This cause that
gatt application will not get scan callback with advertising bonded
device. |
Lukasz Rymanowski |
11 years ago |
3 files, +7, -5 |