| 51a8bb20 |
android/tester: Add macro improving pdu send procedure
As of now when we want to send response from remote device, we compose
pdu from handle and value, which are then copied into fixed size pdu
with predefined header. With this macro we will be able to pass up to
3 iovectors which are then send without additional copying. It also
quite generic and can be used to any other kind of data processing nad
not only for sending pdus. |
Jakub Tyszkowski |
11 years ago |
2 files, +12, -3 |
| 20c6a6cd |
android/tester: Use uint16_t for handles
Handles are only 2 bytes in size. We should use uint16_t to be able to
safely cast iovec with such handle to uint16_t and vice versa. |
Jakub Tyszkowski |
11 years ago |
2 files, +22, -22 |
| 0037f014 |
android: Make shutdown timeout shorter
Android L is using 8 seconds for both enable and disable timeouts.
Set daemon shutdown timeout to 5 seconds to make sure we fit into
framework timeout in case things go wrong. |
Szymon Janc |
11 years ago |
1 file, +1, -1 |
| 24dee5c4 |
shared/gatt: Fix divide by zero error
When Read By Group Type Response or Read By Type Response is received,
verify the length field value before checking if the list size is
multiple of the length field. If the length field value is not checked
receiving Read By Group Type Response or Read By Type Response with
0 as length field value will cause bluetoothd to die with divide by
zero error. |
Jukka Taimisto |
11 years ago |
1 file, +4, -4 |
| 56647d1b |
core: Use static for local variables
This fixes warnings when compiling with cgcc/sparse. |
Luiz Augusto von Dentz |
11 years ago |
2 files, +3, -3 |
| 82d49f9d |
core/gatt: Fix data caching
When writing to the database the offset must be used properly. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +2, -2 |
| 59c07d9d |
core/gatt: Handle Service Changed
This patch adds handling for Service Changed events. All exported
objects that match attributes within the changed handle range are
unregistered and new ones get exported based on the newly discovered
services. |
Arman Uguray |
11 years ago |
2 files, +33, -6 |
| bf94ea8e |
core/gatt: Issue long write for reliable-write
If the characteristic has the "reliable-write" extended property,
GattCharacteristic1.WriteValue will now start a reliable long-write
procedure. |
Arman Uguray |
11 years ago |
1 file, +9, -0 |
| d3046c09 |
core/gatt: Reset value in db when caching
After an attribute value is read, changes in the attribute value length
may cause incorrect bytes to remain in the database if the value is not
properly truncated. This patch addresses this by resetting the attribute
value before storing an updated value. |
Arman Uguray |
11 years ago |
1 file, +6, -0 |
| 3b1eab0e |
shared/gatt-db: Add gatt_db_attribute_reset
This patch adds the gatt_db_attribute_reset function, which clears the
value of an attribute that is stored in the database. |
Arman Uguray |
11 years ago |
2 files, +17, -0 |
| 66a6db0c |
core/gatt: Cancel pending reads/writes
Exported characteristic and descriptor structures now keep track of
pending read/write procedure ids and cancel the operation when they are
free'd. |
Arman Uguray |
11 years ago |
1 file, +89, -68 |
| e4b56a38 |
shared/gatt-client: Make long-write cancelable
This patch extends the GATT request ids in bt_gatt_client to
bt_gatt_client_write_long_value. |
Arman Uguray |
11 years ago |
2 files, +104, -60 |
| b2792aee |
shared/gatt-client: Make read/write cancelable
The shared/gatt-client functions for initiating read/write procedures
currently have no way to cancel them. The functions simple return a
boolean result to indicate success/failure. This patch fixes this by
returning a request id from these methods and adds the bt_gatt_cancel_*
functions to cancel a request with one of these ids.
bt_gatt_client internally manages its own set of request ids and maps
them to the underlying ATT request id returned by bt_att_send to
correctly cancel GATT procedures that span across multiple ATT protocol
PDUs. |
Arman Uguray |
11 years ago |
2 files, +244, -68 |
| 85147642 |
core/gatt: Expose extended properties
This patch reads the extended properties for characteristics that have
the necessary descriptor. Updating the "Characteristics" property is
delayed for services until the extended properties have been read for
all of their characteristics that have them. |
Arman Uguray |
11 years ago |
1 file, +119, -36 |
| 25afc21c |
attrib: Fix not disconnecting
The default behavior of GAttrib is to disconnect on unref but patch
0ea75ab4bb3ff96a50785cf2b9860011c49fd7b7 had changed that in order to
fix a warning, this return the old behavior but leaves to bt_att to do
the actual closing. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +3, -1 |
| b9dbc376 |
monitor/packet: Fix possbile checkpatch errors |
Gowtham Anandha Babu |
11 years ago |
1 file, +8, -8 |
| 29338b70 |
parser/hci: Fix ERROR CODES as per core_v4.2
Modified the error codes as per core V4.2, Vol 2, Part D. |
Gowtham Anandha Babu |
11 years ago |
1 file, +3, -3 |
| 2bf782fa |
monitor/packet: Fix ERROR CODES as per core_v4.2
Modified the error codes as per core V4.2, Vol 2, Part D. |
Gowtham Anandha Babu |
11 years ago |
1 file, +4, -3 |
| c96bf1ba |
monitor: Add AVRCP SetBrowsedPlayer support
Support for decoding AVRCP SetBrowsedPlayer added in Bluetooth monitor.
Channel: 65 len 12 ctrl 0x0102 [PSM 27 mode 3] {chan 1}
I-frame: Unsegmented TxSeq 1 ReqSeq 1
AVCTP Browsing: Command: type 0x00 label 0 PID 0x110e
AVRCP: SetBrowsedPlayer: len 0x0002
PlayerID: 0x0001 (1) |
Vikrampal Yadav |
11 years ago |
1 file, +85, -1 |
| de132d1c |
monitor: Add support for parsing L2CAP control field
Support for parsing L2CAP control field added. |
Vikrampal Yadav |
11 years ago |
1 file, +38, -0 |
| 829edf01 |
monitor: Add support for parsing L2CAP extended control field
Support for parsing L2CAP extended control field added. |
Vikrampal Yadav |
11 years ago |
1 file, +111, -0 |
| 9bbe4188 |
monitor: Extract extended L2CAP extended control field
Support for extracting extended L2CAP extended control field. |
Vikrampal Yadav |
11 years ago |
1 file, +58, -2 |
| 19dada42 |
monitor: Add functionality to store extented control in DB
A function added to store extented control in DB. |
Vikrampal Yadav |
11 years ago |
1 file, +29, -1 |
| 8a433af6 |
monitor: Make the parameter name generic
Changed dcid to cid to make it sound generic as this function is called
with both dcid and scid. |
Vikrampal Yadav |
11 years ago |
1 file, +2, -2 |
| b0e25b55 |
shared/gap: Fix memory leak in gap
Allocated irk memory was never assigned. |
Andrei Emeltchenko |
11 years ago |
1 file, +5, -0 |
| 975df07a |
tools/gatt: Fix not checking malloc() failure
This follows standard practice elsewhere in this file. |
Andrei Emeltchenko |
11 years ago |
1 file, +4, -0 |
| 19e62887 |
shared/gatt: Fix NULL dereference
The which is executed after checking (!op) is dereferencing op in
function discovery_op_free(). |
Andrei Emeltchenko |
11 years ago |
1 file, +2, -1 |
| 688f28c2 |
tools/hid2hci: Use const uint_8* for pointer in control_message
change control_message signature
requires const void* usbfs_ctrltransfer for ioctl
use uint8 * in usb_switch_dell |
Gordon Kramer |
11 years ago |
1 file, +4, -4 |
| 121f8c59 |
tools/hid2hci: Add CSR 8510 A10 support
add a new method "csr2" to hid2hci that sends a control message
to the usb device which switches the Cambridge Silicon Radio 8510 A10
as used in Sitecom CNT-524
fixes: https://bugzilla.kernel.org/show_bug.cgi?id=69181 |
Gordon Kramer |
11 years ago |
2 files, +51, -2 |
| 4b0e980c |
tools/bccmd: Remove dead code
warning: Value stored to 'handle' is never read
handle = array[0] | (array[1] << 8);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Gowtham Anandha Babu |
11 years ago |
1 file, +0, -1 |
| d662218c |
tools/bluemoon: Remove dead code
return statement never get executed after goto. |
Syam Sidhardhan |
11 years ago |
1 file, +0, -1 |
| 015f2c98 |
shared/queue: Fix NULL data handling in queue_remove_all
queue_remove_if returns data so we must check entries count to detect
if entry was removed (with NULL data) or not found. |
Szymon Janc |
11 years ago |
1 file, +2, -1 |
| b68c03b9 |
unit/test-queue: Extend /queue/remove_all with NULL data checks
queue_remove_all should correctly handle NULL data. |
Szymon Janc |
11 years ago |
1 file, +13, -0 |
| 9d1efc47 |
shared/queue: Fix queue_remove_all entires count
queue_remove_if already updates entries count. This was resulting in
entires being decremented twice resulting in integer overlfow. |
Szymon Janc |
11 years ago |
1 file, +0, -2 |
| 047c1828 |
unit/test-queue: Add /queue/remove_all test
This test verify that queue_remove_all propertly sets entries count. |
Szymon Janc |
11 years ago |
1 file, +24, -0 |
| 1314a764 |
profiles/hog: Remove dead code
warning: Value stored to 'attrib' is never read
attrib = report->hogdev->attrib;
^ ~~~~~~~~~~~~~~~~~~~~~~ |
Gowtham Anandha Babu |
11 years ago |
1 file, +0, -1 |
| 33045da6 |
src/att: Fix usage of memory after it is freed.
warning: Use of memory after it is freed
respond_not_supported(att, opcode);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Gowtham Anandha Babu |
11 years ago |
1 file, +2, -2 |
| b97e3aed |
doc/test-coverage: Update mgmt-tester test count |
Johan Hedberg |
11 years ago |
1 file, +2, -2 |
| 08be39ba |
tools/mgmt-tester: Add SMP over BR/EDR acceptor test cases |
Johan Hedberg |
11 years ago |
1 file, +44, -0 |
| 4003a333 |
emulator/bthost: Add support for triggering SMP over BR/EDR |
Johan Hedberg |
11 years ago |
3 files, +52, -0 |
| f5653c83 |
emulator/bthost: Add support for requesting L2CAP fixed channels |
Johan Hedberg |
11 years ago |
1 file, +40, -0 |
| ec86428e |
shared/hfp: Remove dead code
Remove dead code since free_tmp initialized to false. |
Andrei Emeltchenko |
11 years ago |
1 file, +0, -4 |
| c5249c37 |
doc/test-coverage: Update mgmt-tester test count |
Johan Hedberg |
11 years ago |
1 file, +2, -2 |
| ac6676b6 |
tools/mgmt-tester: Add SMP over BR/EDR MITM test case |
Johan Hedberg |
11 years ago |
1 file, +23, -1 |
| bc30ab8b |
unit/gatt: Add /TP/GAR/SR/BI-02-C test
Verify that a Generic Attribute Profile server can detect and reject a
Read Characteristic Value Request with an unsupported Characteristic
Value handle and issue an Invalid Handle Response. |
Michael Janssen |
11 years ago |
1 file, +12, -0 |
| 733b5880 |
unit/gatt: Add /TP/GAR/SR/BV-01-C test
Verify that a Generic Attribute Profile server can support reading a
Characteristic Value selected by handle. |
Michael Janssen |
11 years ago |
1 file, +18, -0 |
| b28dfba7 |
unit/gatt: Add /TP/GAD/SR/BV-06-C test
Verify that a Generic Attribute Profile server can support a search for
all descriptors of a specified characteristic. |
Michael Janssen |
11 years ago |
1 file, +18, -0 |
| af3bcdba |
unit/gatt: Add /TP/GAD/SR/BV-04-C test
Verify that a Generic Attribute Profile server can support a search for
all characteristics of a specified Service, and report all of those
characteristics. |
Michael Janssen |
11 years ago |
1 file, +39, -0 |
| cc4d43ca |
unit/gatt: Add /TP/GAD/SR/BV-03-C test
Verify that a Generic Attribute Profile server can support a search for
all Included Services in a specified handle range. |
Michael Janssen |
11 years ago |
1 file, +22, -0 |
| 8ac948fa |
unit/gatt: Add /TP/GAD/SR/BV-02-C test
Verify that a Generic Attribute Profile server can support discovery of
all particular Primary Services selected by service UUID, using 16-bit
UUIDs, and using 128-bit UUIDs where supported.
128-bit tests will be added once the larger databases with 128-bit UUIDs
are added. |
Michael Janssen |
11 years ago |
1 file, +57, -0 |