| b1004a59 |
monitor: Use the correct LE Secure Connections fields for OOB |
Marcel Holtmann |
11 years ago |
1 file, +5, -4 |
| 5337106f |
doc: Add new command for reading local OOB extended data information |
Marcel Holtmann |
11 years ago |
1 file, +90, -2 |
| caaf52e6 |
monitor: Fix printing power level when no type is specified |
Marcel Holtmann |
11 years ago |
1 file, +1, -1 |
| b8a6a0e8 |
android/gatt: Remove not needed initialization
dev is never used before being assigned from find_device_by_addr. |
Szymon Janc |
11 years ago |
1 file, +1, -1 |
| 07b33109 |
android/gatt: Use switch instead of if-else for enum
It is more commomn to use switch instead of if-else when handling
enums. |
Szymon Janc |
11 years ago |
1 file, +9, -3 |
| 21b3f2df |
android/gatt: Some random cleanup and style fixes |
Szymon Janc |
11 years ago |
1 file, +50, -47 |
| 698742c9 |
emulator: Fix L2CAP & RFCOMM state changes
We should only move to do RFCOMM operations once we exist the CONFIG
state. This means not doing anything if we get a "pending" response and
moving to RFCOMM only once the config req/rsp messages are exchanged.
This patch still isn't a "complete" fix in that it only waits for a
response to our config request, but it's good enough for now and makes
the RFCOMM server tests in rfcomm-tester pass again. |
Johan Hedberg |
11 years ago |
1 file, +14, -9 |
| e9c1c41a |
core/device: Fix crash on remove
This fixes the following backtrace which was reproduced by removing
a device while being connected:
Invalid write of size 4
at 0x49AF74: attio_cleanup (device.c:517)
by 0x49CB65: att_disconnected_cb (device.c:3811)
by 0x4C7485: disconn_handler (att.c:511)
by 0x4C415F: queue_foreach (queue.c:251)
by 0x4C9379: disconnect_cb (att.c:540)
by 0x4D090A: watch_callback (io-glib.c:170)
by 0x4E7A2A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E7A627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E7AA39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x40BC10: main (main.c:631)
Address 0x70db6e8 is 472 bytes inside a block of size 592 free'd
at 0x4C28577: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x4E7FF7E: g_free (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x49C8FF: device_free (device.c:620)
by 0x4BE059: remove_interface (object.c:658)
by 0x4BEC21: g_dbus_unregister_interface (object.c:1382)
by 0x4A4EFC: btd_device_unref (device.c:5185)
by 0x474B18: channel_free (attrib-server.c:125)
by 0x474BA4: channel_remove (attrib-server.c:986)
by 0x47605F: attrib_channel_detach (attrib-server.c:1265)
by 0x49AF73: attio_cleanup (device.c:516)
by 0x49CB65: att_disconnected_cb (device.c:3811)
by 0x4C7485: disconn_handler (att.c:511) |
Luiz Augusto von Dentz |
11 years ago |
2 files, +26, -33 |
| 36e39839 |
shared/gatt-server: Fix compilation on 32 bits
The portable way to print size_t is using %zu not %lu. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +2, -2 |
| 49df912b |
doc: Add extra notes for local and remote OOB commands |
Marcel Holtmann |
11 years ago |
1 file, +7, -0 |
| 84227916 |
android/pts: Fix PTS version in GAP tests results
This was tested against PTS 6.0. |
Szymon Janc |
11 years ago |
1 file, +1, -1 |
| af8eddb1 |
unit/test-gatt: Fix warnings
This fixes the following warning when compiling with cgcc:
unit/test-gatt.c:631:15: warning: symbol 'read_data_1' was not declared. Should it be static?
unit/test-gatt.c:633:24: warning: symbol 'test_read_1' was not declared. Should it be static?
unit/test-gatt.c:641:24: warning: symbol 'test_read_2' was not declared. Should it be static?
unit/test-gatt.c:647:24: warning: symbol 'test_read_3' was not declared. Should it be static?
unit/test-gatt.c:653:24: warning: symbol 'test_read_4' was not declared. Should it be static?
unit/test-gatt.c:1284:24: warning: symbol 'test_read_by_type_1' was not declared. Should it be static?
unit/test-gatt.c:1292:24: warning: symbol 'test_read_by_type_2' was not declared. Should it be static?
unit/test-gatt.c:1298:24: warning: symbol 'test_read_by_type_3' was not declared. Should it be static?
unit/test-gatt.c:1304:24: warning: symbol 'test_read_by_type_4' was not declared. Should it be static?
unit/test-gatt.c:1310:24: warning: symbol 'test_read_by_type_5' was not declared. Should it be static?
unit/test-gatt.c:1316:24: warning: symbol 'test_read_by_type_6' was not declared. Should it be static?
unit/test-gatt.c:1352:24: warning: symbol 'test_multiple_read_1' was not declared. Should it be static?
unit/test-gatt.c:1360:24: warning: symbol 'test_multiple_read_2' was not declared. Should it be static?
unit/test-gatt.c:1367:24: warning: symbol 'test_multiple_read_3' was not declared. Should it be static?
unit/test-gatt.c:1374:24: warning: symbol 'test_multiple_read_4' was not declared. Should it be static?
unit/test-gatt.c:1381:24: warning: symbol 'test_multiple_read_5' was not declared. Should it be static?
unit/test-gatt.c:1388:24: warning: symbol 'test_multiple_read_6' was not declared. Should it be static? |
Luiz Augusto von Dentz |
11 years ago |
1 file, +17, -17 |
| ed6ebbb0 |
unit/gatt: Add /TP/GAR/SR/BI-30-C test
Verify that a Generic Attribute Profile server can detect and reject a
Read Long Characteristic Descriptor Request to an invalid handle and
issue an Invalid Handle Response. |
Michael Janssen |
11 years ago |
1 file, +12, -0 |
| d0d88773 |
unit/gatt: Add /TP/GAR/SR/BI-29-C test
Verify that a Generic Attribute Profile server can detect and reject a
Read Long Characteristic Descriptor Request with an invalid offset and
issue an Invalid Offset Response. |
Michael Janssen |
11 years ago |
1 file, +12, -0 |
| 6d487981 |
unit/gatt: Add /TP/GAR/SR/BI-28-C test
Verify that a Generic Attribute Profile server can detect and reject a
Read Long Characteristic Descriptor Request to a non-readable
characteristic descriptor and issue a Read Not Permitted Response. |
Michael Janssen |
11 years ago |
1 file, +6, -0 |
| 027c951a |
unit/gatt: Add /TP/GAR/SR/BV-08-C test
Verify that a Generic Attribute Profile server returns a 0-length part
value when reading a Long Characteristic Descriptor selected by handle
with an offset equal to the length of the Long Characteristic Value. |
Michael Janssen |
11 years ago |
1 file, +14, -0 |
| 29ec1280 |
unit/gatt: Add /TP/GAR/SR/BV-07-C test
Verify that a Generic Attribute Profile server can support reading a
Long Characteristic Descriptor selected by handle. |
Michael Janssen |
11 years ago |
1 file, +14, -0 |
| 2f12537a |
unit/gatt: Add /TP/GAR/SR/BI-24-C test
Verify that a Generic Attribute Profile server can detect and reject a
Read Characteristic Descriptor Request with an unsupported
characteristic descriptor handle and issue an Invalid Handle Response. |
Michael Janssen |
11 years ago |
1 file, +12, -0 |
| 526e29b0 |
unit/gatt: Add /TP/GAR/SR/BI-23-C test
Verify that a Generic Attribute Profile server can detect and reject a
Read Characteristic Descriptor Request to a non-readable characteristic
descriptor and issue a Read Not Permitted Response. |
Michael Janssen |
11 years ago |
1 file, +6, -0 |
| 31ea4a96 |
unit/gatt: Add /TP/GAR/SR/BV-06-C test
Verify that a Generic Attribute Profile server can support reading a
characteristic descriptor selected by handle. |
Michael Janssen |
11 years ago |
1 file, +15, -0 |
| c0b253a2 |
unit/gatt: Add /TP/GAR/SR/BI-19-C test
Verify that a Generic Attribute Profile server can detect and reject a
Read Multiple Characteristic Value Request including an unsupported
Characteristic Value handle and issue an Invalid Handle Response. |
Michael Janssen |
11 years ago |
1 file, +12, -0 |
| c33e6347 |
unit/gatt: Add /TP/GAR/SR/BI-18-C test
Verify that a Generic Attribute Profile server can detect and reject a
Read Multiple Characteristic Values Request including any non-readable
Characteristic Value and issue a Read Not Permitted Response. |
Michael Janssen |
11 years ago |
1 file, +6, -0 |
| 6c945603 |
unit/gatt: Add /TP/GAR/SR/BV-05-C test
Verify that a Generic Attribute Profile server can support reading
multiple Characteristic Values selected by a set of handles. |
Michael Janssen |
11 years ago |
1 file, +14, -0 |
| bcac209a |
shared/gatt-server: Add read multiple support.
Add server handling for BT_ATT_OP_READ_MULT_REQ. |
Michael Janssen |
11 years ago |
1 file, +154, -0 |
| bac8aff6 |
unit/gatt: Add /TP/GAR/SR/BI-14-C test
Verify that a Generic Attribute Profile server can detect and reject a
Read Long Characteristic Value Request to an invalid handle and issue an
Invalid Handle Response. |
Michael Janssen |
11 years ago |
1 file, +12, -0 |
| 759ed124 |
unit/gatt: Add /TP/GAR/SR/BI-13-C test
Verify that a Generic Attribute Profile server can detect and reject a
Read Long Characteristic Value Request with an invalid offset and issue
an Invalid Offset Response. |
Michael Janssen |
11 years ago |
1 file, +12, -0 |
| fa17cf9b |
shared/gatt-db: fix error read from invalid offset
Read from an invalid offset should return BT_ATT_ERROR_INVALID_OFFSET
instead of BT_ATT_ERROR_UNLIKELY. |
Michael Janssen |
11 years ago |
1 file, +5, -2 |
| 338f51e5 |
unit/gatt: Add /TP/GAR/SR/BI-12-C test
Verify that a Generic Attribute Profile server can detect and reject a
Read Long Characteristic Value Request to a non-readable Characteristic
Value and issue a Read Not Permitted Response. |
Michael Janssen |
11 years ago |
1 file, +6, -0 |
| 5e87aaf5 |
unit/gatt: Add /TP/GAR/SR/BV-04-C test
Verify that a Generic Attribute Profile server can support reading a
long Characteristic Value selected by handle. |
Michael Janssen |
11 years ago |
1 file, +16, -0 |
| cd0a46b4 |
unit/gatt: Add /TP/GAR/SR/BI-08-C test
Verify that a Generic Attribute Profile server can detect and reject a
Read Characteristic by UUID Request with an invalid handle range and
issue an Invalid Handle Response. |
Michael Janssen |
11 years ago |
1 file, +12, -0 |
| 23a22567 |
unit/gatt: Add /TP/GAR/SR/BI-07-C test
Verify that a Generic Attribute Profile server can detect and reject a
Read Characteristic by UUID Request to an unsupported characteristic and
issue an Attribute Not Found Response. |
Michael Janssen |
11 years ago |
1 file, +12, -0 |
| 99cdaab6 |
unit/gatt: Add /TP/GAR/SR/BI-06-C test
Verify that a Generic Attribute Profile server can detect and reject a
Read Characteristic by UUID Request to a non-readable Characteristic
Value and issue a Read Not Permitted Response. |
Michael Janssen |
11 years ago |
1 file, +6, -0 |
| 9fe130fd |
unit/gatt: Add /TP/GAR/SR/BV-03-C test
Verify that a Generic Attribute Profile server can support the Read
using Characteristic UUID procedure, using a 16-bit UUID and using a
128-bit UUID if supported. |
Michael Janssen |
11 years ago |
1 file, +24, -0 |
| 545eb94c |
unit/gatt: Add /TP/GAD/SR/BV-05-C test
Verify that a Generic Attribute Profile server can discover service
Characteristics of a specified UUID, using 16-bit UUIDs, and using
128-bit UUIDs. |
Michael Janssen |
11 years ago |
1 file, +39, -0 |
| 3f541fab |
unit/gatt: Add /TP/GAD/CL/BV-05-C test
Verify that a Generic Attribute Profile client can discover
characteristics of a specified service, using 16-bit and 128-bit
characteristic UUIDs. |
Michael Janssen |
11 years ago |
1 file, +14, -0 |
| b715211a |
android/pan: Change PAN record and name it as NAP record
Current sdp record which is registering is NAP record it should be named
correctly. |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +12, -12 |
| e20b5149 |
android/pan: Make NAP variables struc dev_struct independent
There is no need to keep NAP sdp id, io, mode in structure. Remove nap
structure and take variables out. |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +16, -23 |
| d831d4ff |
android/pan: Minor style fix
Empty line added between function definitions. Tab indention added.
Statics definitions should be placed after structures. |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +7, -6 |
| a007bfa0 |
android/pts: Update DID PTS 6.0 pixits, pics, results for android 5.0
This patch updates test pixits, pics and case list and results for
DID profile against android 5.0. |
Grzegorz Kolodziejczyk |
11 years ago |
3 files, +4, -4 |
| 42108f83 |
android/pts: Update AVRCP PTS 6.0 results for android 5.0
This patch updates test case list and results for AVRCP profile against
android 5.0. |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +10, -7 |
| df9e26e5 |
android/pts: Update AVRCP pics, pixits for PTS 6.0
This patch updates pics and pixits for PTS 6.0 |
Grzegorz Kolodziejczyk |
11 years ago |
2 files, +165, -156 |
| 28cc8a5a |
tools/btsnoop: Fix opcode for SCO TX packet |
Jukka Kinnunen |
11 years ago |
1 file, +1, -1 |
| 088f7077 |
tools/mgmt-tester: Fix removing discovering event callback |
Johan Hedberg |
11 years ago |
1 file, +5, -4 |
| dadec19e |
audio/avctp: Don't repeat key presses
The kernel will take care of repeat event until the key is released so
it is not necessary to generate a new press event. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +8, -4 |
| f97cc75e |
audio/avctp: Fix press and hold logic
Currently code would always release any key pressed upon any event
which breaks press and hold, this fix it by only releasing once a
different key is pressed. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +31, -16 |
| 4a7514cf |
audio/avctp: Fix key auto release logic
uinput key codes are 16 bits long not 8 bits, this may cause an overflow
if the key code is above 0xff breaking the auto release logic. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +1, -1 |
| 968ef868 |
core/device: Cleanup device_svc_resolved code
This split device_svc_resolved into 2 parts with the later
browse_request_complete actually calling browse_request_free. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +126, -143 |
| 4eb7bea7 |
emulator/smp: Fix identity info PDU sending order |
Johan Hedberg |
11 years ago |
1 file, +4, -3 |
| 2cf39bd1 |
shared/gatt-db: Refactor gatt_db_attribute_get_permissions
Refactoring makes code cleaner and consistent with other code like
function gatt_db_attribute_get_handle(), etc. Also removes compile
warnings related to unneeded checks like check for !permissions and
warnings related to dead check for construction below:
(!gatt_db_attribute_get_permissions(attr, &perm)
those checks are useless since attr is always checked before and check
for &perm is really stupid. |
Andrei Emeltchenko |
11 years ago |
4 files, +16, -30 |
| 099fced6 |
android/gatt: Fix dead code warnings
gatt_db_attribute_get_permissions() used everywhere without check since
those conditions are checked already. |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -2 |