| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
According to man buffer allocated by getline() should be freed by
the user program even if getline() failed.
Found by Linux Verification Center (linuxtesting.org) with the SVACE
static analysis tool.
|
|
|
|
|
|
| |
This creates different levels of debugging which can be passed to
bt_att_set_debug as depending on the application it may not need to
print everything which can pollute the logs quite a bit.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds SPDX License Identifier and removes the license text.
-------------------------------------
License COUNT
-------------------------------------
GPL-2.0-or-later : 97
LGPL-2.1-or-later : 38
GPL-2.0-only : 2
License: GPL-2.0-or-later
tools/l2cap-tester.c
tools/hcisecfilter.c
tools/ciptool.c
tools/btsnoop.c
tools/check-selftest.c
tools/btpclientctl.c
tools/hci-tester.c
tools/hcitool.c
tools/btiotest.c
tools/oobtest.c
tools/btinfo.c
tools/hwdb.c
tools/hciattach_bcm43xx.c
tools/mgmt-tester.c
tools/hex2hcd.c
tools/hciattach_st.c
tools/smp-tester.c
tools/bluetooth-player.c
tools/hciattach_tialt.c
tools/gap-tester.c
tools/bluemoon.c
tools/bneptest.c
tools/gatt-service.c
tools/rctest.c
tools/rfcomm-tester.c
tools/hcieventmask.c
tools/hciattach_ti.c
tools/seq2bseq.c
tools/scotest.c
tools/bcmfw.c
tools/hciconfig.c
tools/btattach.c
tools/l2ping.c
tools/obexctl.c
tools/l2test.c
tools/hciattach_intel.c
tools/hciattach.h
tools/create-image.c
tools/bnep-tester.c
tools/userchan-tester.c
tools/rfcomm.c
tools/btmon-logger.c
tools/hcidump.c
tools/rtlfw.c
tools/hciattach_qualcomm.c
tools/btproxy.c
tools/nokfw.c
tools/hciattach_ath3k.c
tools/3dsp.c
tools/bdaddr.c
tools/sco-tester.c
tools/hciattach.c
tools/amptest.c
tools/btgatt-server.c
tools/btgatt-client.c
tools/cltest.c
tools/ibeacon.c
tools/mcaptest.c
tools/hid2hci.c
tools/btmgmt.c
tools/advtest.c
tools/eddystone.c
tools/avtest.c
tools/mpris-proxy.c
tools/avinfo.c
tools/sdptool.c
tools/btconfig.c
tools/update_compids.sh
tools/parser/parser.h
tools/parser/obex.c
tools/parser/amp.c
tools/parser/sdp.c
tools/parser/tcpip.c
tools/parser/sap.c
tools/parser/cmtp.c
tools/parser/avctp.c
tools/parser/lmp.c
tools/parser/ppp.c
tools/parser/rfcomm.h
tools/parser/hci.c
tools/parser/sdp.h
tools/parser/parser.c
tools/parser/rfcomm.c
tools/parser/avdtp.c
tools/parser/avrcp.c
tools/parser/ericsson.c
tools/parser/hcrp.c
tools/parser/bpa.c
tools/parser/hidp.c
tools/parser/bnep.c
tools/parser/capi.c
tools/parser/att.c
tools/parser/l2cap.c
tools/parser/smp.c
tools/parser/csr.c
tools/parser/l2cap.h
tools/parse_companies.pl
License: LGPL-2.1-or-later
tools/test-runner.c
tools/btpclient.c
tools/meshctl.c
tools/mesh-cfgclient.c
tools/mesh/model.h
tools/mesh/util.h
tools/mesh/config-model.h
tools/mesh/cfgcli.h
tools/mesh/mesh-db.c
tools/mesh/mesh-db.h
tools/mesh/keys.c
tools/mesh/util.c
tools/mesh/agent.h
tools/mesh/remote.c
tools/mesh/keys.h
tools/mesh/agent.c
tools/mesh/cfgcli.c
tools/mesh/remote.h
tools/mesh-gatt/prov.c
tools/mesh-gatt/util.h
tools/mesh-gatt/prov.h
tools/mesh-gatt/net.c
tools/mesh-gatt/util.c
tools/mesh-gatt/prov-db.h
tools/mesh-gatt/crypto.c
tools/mesh-gatt/crypto.h
tools/mesh-gatt/gatt.c
tools/mesh-gatt/config-server.c
tools/mesh-gatt/keys.h
tools/mesh-gatt/onoff-model.c
tools/mesh-gatt/net.h
tools/mesh-gatt/gatt.h
tools/mesh-gatt/node.c
tools/mesh-gatt/config-client.c
tools/mesh-gatt/mesh-net.h
tools/mesh-gatt/node.h
tools/mesh-gatt/onoff-model.h
tools/mesh-gatt/prov-db.c
License: GPL-2.0-only
tools/obex-server-tool.c
tools/obex-client-tool.c
|
|
|
|
| |
Needed for GAP/SEC/SEM/BI-10-C.
|
|
|
|
|
| |
This enables EATT in the Client Features if the EATT characteristic is
present in the database.
|
| |
|
|
|
|
|
| |
This removes mainloop_set_signal and replaces it usage with
mainloop_run_with_signal.
|
|
|
|
|
|
| |
This makes the ready callbacks much more convenient to track when the
client is ready since its is now possible to notify more than on client
at the same time.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Fix the interactive "set-security" command in btgatt-client, that would
always fail due to bad initialization of argv buffer :
[GATT client]# set-security 2
Usage: set_security <level>
level: 1-3
e.g.:
set-sec-level 2
|
|
|
|
|
|
| |
Added missing carriage return in register_notify_cb.
Changed a call to PRLOG to a simple printf to avoid
getting a extra prompt in cmd_register_notify.
|
|
|
|
|
| |
This patch adds way to get extended properties from characteristic
extended property descriptor
|
|
|
|
|
|
|
|
| |
write-value, write-long-value and write-prepare were parsing
bytes using strtol with base '0' and restraining wtring size to
be exactly 2, forbidding to write values over 99. The string length
is no more checked, we instead check that the parsed value is in the
correct range.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Due to the issues with CSRK tests ext_signed flag has been added to
allow android/gatt handle signed write operations.
This patch fixes following tests:
GAP__TC_SEC_CSIGN_BV_02_C
GAP__TC_SEC_CSIGN_BI_01_C
GAP__TC_SEC_CSIGN_BI_02_C
GAP__TC_SEC_CSIGN_BI_03_C
GAP__TC_SEC_CSIGN_BI_04_C
SM__TC_SIGN_BV_03_C
|
|
|
|
|
| |
Handles the common profile and service error codes sent over the
Attribute Protocol in btgatt-client and monitor.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This adds support for signed write which can be used after setting the
signing key using set-sign-key.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Convert att error codes to error messages for gatt read/write
responses.
e.g.
[GATT client]# read-value 0x00D9
[GATT client]#
Read request failed: Authorization Required (0x08)
[GATT client]# read-value 0x01E2
[GATT client]#
Read request failed: Invalid Handle (0x01)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch makes CCC writes via bt_gatt_client_register_notify
cancellable. The following changes have been introduced:
1. bt_gatt_client_register_notify now returns the id immediately
instead of returning it in a callback. The callback is still
used to communicate ATT protocol errors.
2. A notify callback is immediately registered, so that if the
remote end sends any ATT notifications/indications, the caller
will start receiving them right away.
|
|
|
|
| |
This follows standard practice elsewhere in this file.
|
|
|
|
|
|
| |
This patch adds an "int err" argument to the disconnect callback.
shared/att obtains the value of SO_ERROR option for the underlying
fd and passes it to the callbacks.
|
|
|
|
|
|
| |
This patch adds the "uuid" argument to gatt_db_foreach_service, which
invokes the callback for a service only if "uuid" is NULL or if it
matches the GATT service UUID.
|
|
|
|
|
| |
tools/btgatt-client now registers service added/removed callbacks in
which it logs a message about the affected service.
|
|
|
|
|
| |
btgatt-client now iterates services, characteristics, and descriptors
of the shared/gatt-client using gatt-db instead of the iterators.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
Fixes following clang warning:
...
tools/btgatt-client.c:451:4: warning: Potential leak of memory pointed
to by 'value'
printf("Invalid value byte: %s\n", argv[i]);
^~~~~~
...
|
| |
|
|
|
|
|
|
|
|
|
| |
strtol can detect what base the value is:
'If base is zero or 16, the string may then include a "0x" prefix,
and the number will be read in base 16; otherwise, a zero base is
taken as 10 (decimal) unless the next character is '0', in which
case it is taken as 8 (octal).'
|
|
|
|
|
| |
The service changed handler now prints the command line prompt if the
changed service list empty.
|
|
|
|
|
| |
This patch fixes an error in write-long-value command that caused an
extra invalid byte to get sent at the end of the long write value.
|
|
|
|
|
|
| |
This patch fixes the way read-long-value command parses the "offset"
argument by interpreting it as base 10 instead of 16, which is more
intuitive.
|
| |
|
| |
|
|
|
|
|
| |
btgatt-client now sets a service changed handler by calling
bt_gatt_client_set_service_changed.
|
|
|
|
| |
Simplify code and fix memory leaks
|
|
|
|
|
| |
This patch adds the "unregister-notify" command which can be used to test the
bt_gatt_client_unregister_notify function.
|
|
|
|
|
| |
This patch adds the "register-notify" command, which registers a
notification/indication handler for a given characteristic value handle.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
shared/gatt-client currently defines a service iterator which returns service
data in a copy. The user then accesses the service's characteristics by manually
going through an array of bt_gatt_characteristic_t.
This patch changes this by restricting access to individual characteristic
entries via a new characteristic iterator. This is done so that gatt-client code
can internally store private data on each characteristic (e.g. reference count
for notification sessions) which shouldn't be exposed to external code.
The code also changes the service iterator functions to return a pointer to an
internally stored bt_gatt_service_t structure rather than returning its contents
in a copy.
|
| |
|
|
|
|
|
| |
Added the "write-long-value" command which can be used to perform the "long
write" procedure.
|
|
|
|
|
| |
Added the "write-value" command which can be used to perform "write" and "write
without response" procedures.
|
|
|
|
|
| |
Added the "read-long-value" command which can be used to read long
characteristic and descriptor values.
|
|
|
|
|
| |
Added the "read-value" command which sends a simple read request to the
specified handle.
|