| e91b7b57 |
monitor: Add helper function for advertising event type |
Marcel Holtmann |
11 years ago |
1 file, +29, -23 |
| 804d1455 |
monitor/rfcomm: Fix byte ordering issue
The correct byte order for RFCOMM protocol is
little endian. |
Gowtham Anandha Babu |
11 years ago |
1 file, +2, -2 |
| ca63449a |
emulator: Add supported commands for Bluetooth 4.2 |
Marcel Holtmann |
11 years ago |
1 file, +14, -0 |
| 0fc54b81 |
shared/gatt-db: Fix invalid read
notify_list has to be reset to NULL otherwise gatt_db_service_destroy may
still attempt to access it:
Invalid read of size 4
at 0x4166E5: queue_isempty (queue.c:398)
by 0x41489B: gatt_db_service_destroy (gatt-db.c:235)
by 0x416650: queue_remove_all (queue.c:375)
by 0x4166A4: queue_destroy (queue.c:81)
by 0x414817: gatt_db_unref (gatt-db.c:273)
by 0x40B5F3: destroy_context (test-gatt.c:587)
by 0x40C132: test_server (test-gatt.c:602)
by 0x4E9E5E0: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9EB1A: g_test_run_suite (in /usr/lib64/libglib-2.0.so.0.3800.2)
Address 0x577bfa8 is 24 bytes inside a block of size 32 free'd
at 0x4C28577: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x414807: gatt_db_unref (gatt-db.c:272)
by 0x40B5F3: destroy_context (test-gatt.c:587)
by 0x40C132: test_server (test-gatt.c:602)
by 0x4E9E5E0: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4E9EB1A: g_test_run_suite (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x40A9D7: main (test-gatt.c:1216) |
Luiz Augusto von Dentz |
11 years ago |
1 file, +2, -0 |
| af7a5757 |
monitor: Fix RFCOMM parity type mask
Fix RFCOMM RPN parity type bit according to Spec. GSM 07.10 version
6.3.0. (PT1 - PT2 indicates the parity type). |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -1 |
| eed45ab6 |
Remove unused old test db structures |
Michael Janssen |
11 years ago |
1 file, +0, -83 |
| 45f87706 |
unit/gatt: Use gatt_db for test data
using gatt_db for test data makes tests clearer and
is a step towards adding server tests from the spec by
that must be run against multiple databases easily. |
Michael Janssen |
11 years ago |
1 file, +220, -116 |
| 920b1bb8 |
emulator: Enable LE Extended Scanner Filter Policies feature |
Marcel Holtmann |
11 years ago |
1 file, +8, -0 |
| f5ff8c49 |
monitor: Fix bit numbers for LE event mask |
Marcel Holtmann |
11 years ago |
1 file, +3, -3 |
| 95fa5b26 |
lib: Add string for Start Service Discovery command |
Marcel Holtmann |
11 years ago |
1 file, +1, -0 |
| 1da49e8d |
doc: Mention that Start Service Discovery command for version 1.8 |
Marcel Holtmann |
11 years ago |
1 file, +2, -2 |
| 735553e8 |
doc: Clarify the value 127 for RSSI means unavailable |
Marcel Holtmann |
11 years ago |
1 file, +5, -1 |
| ee9fcb6c |
tools/mgmt-tester: Fix casting warnings on 64-bit systems |
Johan Hedberg |
11 years ago |
1 file, +2, -2 |
| 40555e85 |
tools/mgmt-tester: Fix Stop Discovery setup phase completion
When we request discovery to be started we should wait both for the mgmt
command completion as well as the discovering event. Otherwise the
discovering event may leak to the actual test phase and cause the test
to fail because of an unexpected event. |
Johan Hedberg |
11 years ago |
1 file, +28, -1 |
| 52fbae0d |
android/pts: Tests results for RFCOMM for Android 5.0 |
Sebastian Chlad |
11 years ago |
1 file, +2, -2 |
| 73dd40cd |
tools/btmgmt: Add support for multiple find-service UUIDs |
Johan Hedberg |
11 years ago |
1 file, +9, -3 |
| 8de38983 |
tools/btmgmt: Fix byte order of count parameter |
Johan Hedberg |
11 years ago |
1 file, +1, -1 |
| 57e57e6a |
tools: Fix find service management command handling |
Marcel Holtmann |
11 years ago |
1 file, +16, -9 |
| fb11597e |
emulator: Use Bluetooth 4.2 version for LE only simulation |
Marcel Holtmann |
11 years ago |
1 file, +2, -2 |
| bd4e57bc |
lib: Update company identifiers |
Marcel Holtmann |
11 years ago |
1 file, +22, -0 |
| cc7d4882 |
monitor: Add commands, events and features from Bluetooth 4.2 |
Marcel Holtmann |
11 years ago |
1 file, +30, -0 |
| 30e3ce21 |
lib: Add version information for Bluetooth 4.2 |
Marcel Holtmann |
11 years ago |
1 file, +1, -0 |
| 680dadbc |
monitor/rfcomm: Fix incorrect byte swapping
Those were already converted to host order with l2cap_frame_get_be16. |
Szymon Janc |
11 years ago |
1 file, +3, -3 |
| 49001614 |
obexd: Fix comparing array to NULL
An array can never be NULL. |
Andrei Emeltchenko |
11 years ago |
1 file, +0, -9 |
| 33c2e6b8 |
obexd: Fix memory leak not freeing desc
descs->data might be NULL while is descs not. Follow scheme in
src/profile.c (in get_profile_version() function). |
Andrei Emeltchenko |
11 years ago |
1 file, +5, -6 |
| 34c3a51a |
unit/test-gatt: Fix possible crash
If write fails len would be negative and should not be passed to
util_hexdump otherwise it might attempt to access invalid memory. |
Andrei Emeltchenko |
11 years ago |
1 file, +2, -2 |
| 99a715be |
mgmt-tester: Add service discovery test cases |
Jakub Pawlowski |
11 years ago |
1 file, +93, -0 |
| 1d04ca7e |
tools/btmgmt: Add find-service command
Add command for using MGMT_OP_START_SERVICE_DISCOVERY.
Example usage:
Find all low energy devices advertising service with UUID 'abcd'
that have rssi higher than -60 dB
btmgmt find-service -u abcd -r -60 -l |
Jakub Pawlowski |
11 years ago |
1 file, +120, -10 |
| ca67344f |
lib: Add start service discovery
This patch adds start service discovery definition for new kernel
method. |
Jakub Pawlowski |
11 years ago |
1 file, +9, -0 |
| 912a7a53 |
monitor/rfcomm: Add support for NSC frame decoding
Changes made to decode NSC frame in RFCOMM for btmon.
Not able capture the output. |
Gowtham Anandha Babu |
11 years ago |
1 file, +20, -0 |
| 90b017f2 |
monitor/rfcomm: Add support for PN frame decoding
Changes made to decode PN frame in RFCOMM for btmon.
RFCOMM: Unnumbered Info with Header Check (UIH)(0xef)
Address: 0x01 cr 0 dlci 0x00
Control: 0xef poll/final 0
Length: 10
FCS: 0xaa
MCC Message type: DLC Parameter Negotiation RSP(0x20)
Length: 8
dlci 32 frame_type 0 credit_flow 14 pri 39
ack_timer 0 frame_size 666 max_retrans 0 credits 7 |
Gowtham Anandha Babu |
11 years ago |
1 file, +47, -0 |
| f6d8fbe9 |
monitor/rfcomm: Add support for RLS frame decoding
Changes made to decode RLS frame in RFCOMM for btmon.
RFCOMM: Unnumbered Info with Header Check (UIH)(0xef)
Address: 0x03 cr 1 dlci 0x00
Control: 0xef poll/final 0
Length: 4
FCS: 0x70
MCC Message type: Remote Line Status CMD(0x14)
Length: 2
dlci 32 error: 5 |
Gowtham Anandha Babu |
11 years ago |
1 file, +27, -0 |
| 75c1eab0 |
monitor/rfcomm: Add support for RPN frame decoding
Changes made to decode RPN frame in RFCOMM for btmon.
RFCOMM: Unnumbered Info with Header Check (UIH)(0xef)
Address: 0x03 cr 1 dlci 0x00
Control: 0xef poll/final 0
Length: 10
FCS: 0x70
MCC Message type: Remote Port Negotiation Command CMD(0x24)
Length: 8
dlci 32
br 3 db 2 sb 0 p 0 pt 0 xi 0 xo 0
rtri 0 rtro 0 rtci 0 rtco 0 xon 17 xoff 19
pm 0x3f7f |
Gowtham Anandha Babu |
11 years ago |
1 file, +73, -0 |
| 1765fdda |
monitor/rfcomm.c: Add support for MSC frame decoding
Changes made to decode MSC frame in RFCOMM for btmon.
RFCOMM: Unnumbered Info with Header Check (UIH)(0xef)
Address: 0x01 cr 0 dlci 0x00
Control: 0xef poll/final 0
Length: 4
FCS: 0xaa
MCC Message type: Modem Status Command CMD(0x38)
Length: 2
dlci 32
fc 0 rtc 1 rtr 1 ic 0 dv 1 |
Gowtham Anandha Babu |
11 years ago |
1 file, +59, -7 |
| 7c6a6e73 |
shared/crypto: Fix resource leak
Fix leaking fd on exit |
Andrei Emeltchenko |
11 years ago |
1 file, +2, -0 |
| d19ff9cc |
android/build: Convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH
LOCAL_MODULE_PATH needs to be replaced for multiarch builds like for
example for Nexus 9 (volantis) target. |
Andrei Emeltchenko |
11 years ago |
1 file, +2, -2 |
| 6124d7be |
doc: Mention version 1.8 of the management interface |
Marcel Holtmann |
11 years ago |
1 file, +4, -0 |
| d52c868a |
TODO: Remove gatt-db service events task |
Arman Uguray |
11 years ago |
1 file, +0, -7 |
| 9513f74c |
tools/btgatt-client: Observe service events
tools/btgatt-client now registers service added/removed callbacks in
which it logs a message about the affected service. |
Arman Uguray |
11 years ago |
1 file, +28, -0 |
| 80cf4af7 |
shared/gatt-db: Add service added/removed events
This patch adds support to gatt-db for sending events when services are
added to and removed from the database:
1. Added the gatt_db_register function which can be used to register
service_added and service_removed callbacks.
2. Added the gatt_db_unregister function which can be used to
unregister previously added callbacks. This function can be safely
called from within a service added/removed callback.
3. The service added/removed callbacks are tied to
gatt_db_service_set_active. The added callback is called when a
service gets marked as active and vice versa.
4. The service_removed callback will get called if a service is
removed from the database. |
Arman Uguray |
11 years ago |
2 files, +176, -31 |
| 042cbc7c |
shared/gatt-server: Hold a reference to gatt-db
Now that gatt-db is reference counted, gatt-server should hold a
reference to it. |
Arman Uguray |
11 years ago |
1 file, +3, -2 |
| 7f576698 |
unit/test-queue: Fix memory leak |
Luiz Augusto von Dentz |
11 years ago |
1 file, +2, -0 |
| b0f40aff |
TODO: Add item for gatt-db service callbacks
Added TODO items for adding gatt-db service added/removed callbacks. |
Arman Uguray |
11 years ago |
1 file, +7, -0 |
| 57f3e6f6 |
shared/gatt-client: Remove GATT structs and iterators
This patch removes the high-level structs and iterators used by
shared/gatt-client in favor of gatt-db. |
Arman Uguray |
11 years ago |
2 files, +3, -159 |
| 37a39606 |
unit/test-gatt: Use gatt-db for CLIENT tests
This patch rewrites parts of unit/test-gatt that verify the contents
of a shared/gatt-client to use the client's gatt-db instead of the
service iterators. |
Arman Uguray |
11 years ago |
1 file, +160, -79 |
| 5128551c |
tools/btgatt-client: Use gatt-db instead of iterators
btgatt-client now iterates services, characteristics, and descriptors
of the shared/gatt-client using gatt-db instead of the iterators. |
Arman Uguray |
11 years ago |
1 file, +71, -98 |
| da502684 |
tools/btgatt-server: Add the "services" command
This patch adds the "services" command which displayes the currently
stored services in the server database. |
Arman Uguray |
11 years ago |
1 file, +90, -0 |
| 9367e656 |
shared/gatt-client: Use gatt_db in bt_gatt_register_notify
This patch rewrites the notification/indication logic in gatt-client to
use the internal gatt-db. |
Arman Uguray |
11 years ago |
1 file, +147, -56 |
| c5368776 |
shared/gatt-client: Store services in gatt_db
This patch rewrites the service discovery logic inside
shared/gatt-client. The internal service_list structure has been
entirely removed and services are stored in a gatt_db instance.
Initially, gatt-client creates and owns the life-time of the gatt_db. |
Arman Uguray |
11 years ago |
4 files, +457, -526 |
| 488a8981 |
shared/gatt-db: Add gatt_db_isempty
Added the gatt_db_isempty function which returns true if the database
is not populated with any services. |
Arman Uguray |
11 years ago |
2 files, +10, -0 |