summaryrefslogtreecommitdiff
path: root/tools/hcitool.c
Commit message (Collapse)AuthorAgeFilesLines
* tools/hcitool: Fix the descriptions of leal* commandsArchie Pusaka2021-10-211-4/+4
| | | | | The descriptions of leal* commands are copied from lewl* commands. However they should use "accept list" instead.
* tools: Deprecate some input parameters to align with inclusive languageArchie Pusaka2021-09-211-44/+54
| | | | | | | | | | | | Some input parameter names are not appropriate and needs to be updated. However, doing so might cause friction with the current workflow and documents. This patch deprecates the inappropriate names and replaces them with the more appropriate substitutes, while still keeping the old terms usable to not break the workflow of users. Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
* tools: Inclusive language changesArchie Pusaka2021-09-211-8/+8
| | | | | | | | | | BT core spec 5.3 promotes the usage of inclusive languages. This CL replaces some terms with the more appropriate counterparts, such as "central", "peripheral", "accept list", "reject list", and "temporary link key". Note that some suggestions come from https://specificationrefs.bluetooth.com/language-mapping/Appropriate_Language_Mapping_Table.pdf Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
* tools: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-291-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* build: Move declaration of _GNU_SOURCE back into individual source filesMarcel Holtmann2018-12-061-0/+1
|
* tools/hcitool: Change connection handle condition for lecupGrzegorz Kolodziejczyk2018-04-261-1/+1
| | | | | | According to BLUETOOTH SPECIFICATION Version 5.0 | Vol 2, Part E 7.8.18 LE Connection Update Command, connection handle range is 0x0000-0x0EFF.
* tools: Use local libbluetooth includesMarcel Holtmann2015-03-011-3/+3
|
* tools/hcitool: Simplify parsing in cmd_lecupSzymon Janc2015-01-141-11/+6
| | | | strtoul already detects 10 or 16 base if given base is 0.
* tools/hcitool: Fix support for simple lecup formatSzymon Janc2015-01-141-0/+13
| | | | | This allow to call lecup in simple form: "hcitool lecup <handle> <min> <max> <latency> <timeout>".
* tools/hcitool: Fix help message for lecupSzymon Janc2015-01-141-5/+5
| | | | | Command options don't support short options and long options require equal mark.
* tools: Handle the broken behavior of host features max page valueMarcel Holtmann2015-01-051-0/+3
|
* tools: Fix hcitool build on AndroidSzymon Janc2014-12-171-0/+4
| | | | | | | | | | | | target thumb C: hcitool <= external/bluetooth/bluez/tools/hcitool.c external/bluetooth/bluez/tools/hcitool.c: In function 'str2buf': external/bluetooth/bluez/tools/hcitool.c:83:2: warning: implicit declaration of function 'MIN' [-Wimplicit-function-declaration] target Executable: hcitool (out/target/product/mako/obj/EXECUTABLES/ hcitool_intermediates/LINKED/hcitool) external/bluetooth/bluez/tools/hcitool.c:83: error: undefined reference to 'MIN' collect2: error: ld returned 1 exit status
* tools: Add helper commands for LE resolving list to hcitoolMarcel Holtmann2014-12-171-1/+309
|
* tools: Add support for using static address for LE connectionsMarcel Holtmann2014-12-161-12/+23
|
* tools: Request LE remote version information as wellMarcel Holtmann2014-09-291-0/+14
|
* tools: Add comment for retrieving LE remote featuresMarcel Holtmann2014-09-291-0/+85
|
* tools: Increase timeout for sending LE scan commandMarcel Holtmann2014-09-291-3/+3
|
* tools: Fix wrong number for LE_LINK connection typeMarcel Holtmann2014-09-291-1/+1
|
* hcitool: Fix adding missing breakAndrei Emeltchenko2014-06-231-0/+1
|
* tools: Remove device name cache feature from hcitoolMarcel Holtmann2014-03-301-71/+11
|
* hcitool: Fix memory leak in cmd_infoAndre Guedes2014-02-171-0/+3
| | | | Free memory pointed by cr variable after it is used.
* tools: Use full include path for header filesMarcel Holtmann2014-01-251-2/+2
|
* tools: Fix strncat() usage in hciconfig/hcitoolAnderson Lizardo2014-01-061-8/+15
| | | | | | | | | | | | | | | | | | | According to strncat() manpage: "If src contains n or more characters, strncat() writes n+1 characters to dest (n from src plus the terminating null byte). Therefore, the size of dest must be at least strlen(dest)+n+1" While the current usage of strncat() cannot cause an overflow, if a bigger string is added to the switch()'s without increasing the static buffer, it would overflow by one byte due to the incorrect size calculation. Fixes clang errors like: tools/hciconfig.c:827:33: error: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Werror,-Wstrncat-size]
* tools: Use batocomp function instead of ouitocompMarcel Holtmann2012-12-091-6/+8
|
* Revert "Ensure config.h is included by using CPPFLAGS"Johan Hedberg2012-12-071-0/+4
| | | | | | | | | | | | | | This reverts commit 8a03376544b046a84301847d1594f6c3674983ff. The patch needs to be split up and the gdbus/ changes were bogus compared to the original commit message. Conflicts: Makefile.am Makefile.obexd profiles/cyclingspeed/cyclingspeed.c profiles/heartrate/heartrate.c src/error.c
* Ensure config.h is included by using CPPFLAGSLucas De Marchi2012-12-051-4/+0
| | | | | | | | | | Instead of trying to include config.h in each file over the tree and possibly forgetting to include it, give a "-include config.h" argument to the compiler so it's guaranteed that a) it will be included for all source files and b) it will be the first header included. gdbus/ directory is left out, since it would break other projects using it.
* hcitool: Retrieve names from cache directoryFrédéric Danis2012-10-311-5/+26
|
* hcitool: Add LE scan based on White ListClaudio Takahasi2012-09-061-1/+7
| | | | | | This patch extends the LE scanning command allowing the user to inform an option to enable LE scanning detecting advertises sent from devices in the White List Only. This option can be used combined with others.
* tools: Fix using old-style initializersVinicius Costa Gomes2012-02-141-1/+1
|
* hcitool: Fix errno handling conventionAnderson Lizardo2011-11-171-8/+8
| | | | | | Variables which are assigned to the errno variable (usually called "err") should be negative, and "-err" should be used where a positive value is needed.
* hcitool: Fix EIR parsingJohan Hedberg2011-10-141-19/+27
| | | | | | There were missing buffer size checks and wrong assumptions about the EIR data length (core spec 4.0 defines it to be max 31 bytes, so the name can be max 29 bytes).
* Add support for parsing the remote name during LE ScanVinicius Costa Gomes2011-10-141-1/+53
|
* Add support for cancelling a LE Scan with Control-CVinicius Costa Gomes2011-10-071-4/+21
|
* Filter duplicates by default with hcitool lescanJohan Hedberg2011-10-031-3/+9
|
* Fix unused variable warnings reported by GCC 4.6Johan Hedberg2011-05-151-2/+0
|
* Adjust LE command timeout and APIMarco Sinigaglia2011-03-101-3/+3
| | | | | | | The timeout value has been hardcoded on hci_send_req call and, instead, it should be passed from above (for ex from hci_le_set_scan_enable). This patch removes the hardcoded value from hci_send_req and it increases the timeout to 1000ms.
* hcitool: add "whitelist" option to create LE connectionsClaudio Takahasi2011-03-041-4/+11
| | | | | | If "whitelist" option is given, the peer address and type will be ignored and the white list will be used to determine which advertiser to connect to.
* hcitool: add random address type to LE Add to White ListClaudio Takahasi2011-03-041-2/+7
|
* hcitool: use defined constants for address typeClaudio Takahasi2011-03-041-2/+2
|
* hcitool: Add command to clear LE White ListArun Kumar Singh2011-03-011-0/+44
|
* hcitool: Add command to read size of LE White ListArun Kumar Singh2011-03-011-0/+47
|
* hcitool: Add command to remove a device from LE white listArun Kumar Singh2011-03-011-0/+47
|
* hcitool: Change commands struct formatingClaudio Takahasi2011-03-011-29/+29
|
* hcitool: Add command to add a device to LE White ListArun Kumar Singh2011-03-011-0/+47
|
* hcitool: fix interval and window parametersAndre Guedes2011-02-241-2/+7
| | | | | | | | | | | | | | | | | | Set interval and window parameters properly if --discovery option is present in lescan command. According to the Bluetooth spec, during a general or limited discovery procedure the scan interval and the scan window should be set to 11.25 ms. If --discovery option isn't present, both parameters are set to the default value (10 ms) defined in LE Set Scan Parameters Command. According to that command description, the interval and window parameters should be set as follows: Time = N * 0.625 msec So, in order to set the time values to 11.25 and 10 ms, the parameters should be equal to 18 (0x0012) and 16 (0x0010), respectively.
* hcitool: add discovery procedure to lescan commandAndre Guedes2011-02-241-5/+77
| | | | | | | This patch adds the option [--discovery=g|l] to lescan command. Use this option to enable the general or limited discovery procedure. If discovery option is not given scanning will display all results ignoring the AD flags.
* Add hcitool command to change the parameters of a given LE connectionClaudio Takahasi2011-02-231-0/+86
| | | | | | Allows the LE master to start the Connection Parameter Update Procedure. Parameters values consistency are not verified on purpose allowing invalid values to test fail scenarios.
* Remove unneeded comma in the hcitool commands declarationClaudio Takahasi2011-02-231-2/+2
|
* hcitool: Add bdaddr type option to leccAndrei Emeltchenko2011-02-111-2/+7
|
* Bluetooth: hcitool: add option for LE_Scan_Type parameterAndrei Emeltchenko2011-02-111-2/+8
| | | | The LE_Scan_Type parameter controls the type of scan to perform.