summaryrefslogtreecommitdiff
path: root/tools/hciconfig.c
Commit message (Collapse)AuthorAgeFilesLines
* tools: Fix memory leak in hciconfigIldar Kamaletdinov2022-05-091-1/+5
| | | | | | | | printf() was using function that return dynamic allocated memory as a parameter. Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool.
* tools: Inclusive language changesArchie Pusaka2021-09-211-53/+95
| | | | | | | | | | 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
* tools: Remove legacy code for CSR controllersLuiz Augusto von Dentz2020-09-251-28/+0
| | | | | | This code has not been touched for ages and very unlikely that someone will be using this nowadays as most of these controller specific transports are handled by the kernel nowadays.
* build: Move declaration of _GNU_SOURCE back into individual source filesMarcel Holtmann2018-12-061-0/+1
|
* lib: Define HCI_PRIMARY and use it instead of HCI_BREDRMarcel Holtmann2016-07-041-3/+3
|
* tools/hciconfig: Fix hci_close_devKunio AKASHI2015-10-271-1/+1
| | | | | | It had been closed different file descriptor. When has two or more interfaces, hciconfig -a exit after cmd_class function.
* tools/hciconfig: Add missing hci_close_devLuiz Augusto von Dentz2015-08-131-0/+17
| | | | | | Add hci_close_dev for commands using hci_open_dev, this is mostly to be consistent with other commands that do cleanup but in practice makes no difference since hciconfig will exit anyway.
* tools/hciconfig:Fixed Memory LeakAnchit Narang2015-07-291-0/+3
| | | | Freed memory allocated to structure hci_dev_list_req to avoid memory leak
* tools: Use local libbluetooth includesMarcel Holtmann2015-03-011-3/+3
|
* tools: Handle the broken behavior of host features max page valueMarcel Holtmann2015-01-051-0/+3
|
* tools: Don't try to read BD_ADDR manually for raw devicesMarcel Holtmann2014-06-281-13/+0
|
* hciconfig: Fix adding missing breakAndrei Emeltchenko2014-06-231-0/+1
|
* Replace bt_get_le16() by get_le16()Claudio Takahasi2014-03-211-1/+2
|
* various header include fixes for building with musl libcNatanael Copa2014-03-051-0/+1
| | | | | | | | | | | | | | | | | we need: sys/stat.h for mode_t limits.h for PATH_MAX Fixes compile errors: In file included from tools/hciconfig.c:45:0: ./src/textfile.h:27:1: error: unknown type name 'mode_t' int create_file(const char *filename, const mode_t mode); ^ tools/csr_usb.c: In function 'read_value': tools/csr_usb.c:71:12: error: 'PATH_MAX' undeclared (first use in this function) char path[PATH_MAX]; ^
* tools: Use full include path for header filesMarcel Holtmann2014-01-251-2/+2
|
* tools: Fix strncat() usage in hciconfig/hcitoolAnderson Lizardo2014-01-061-7/+14
| | | | | | | | | | | | | | | | | | | 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: Print PAL version for AMP controllersMarcel Holtmann2013-10-071-3/+7
|
* tools: Fix hciconfig device information printout for AMP controllersMarcel Holtmann2013-10-071-9/+13
|
* tools: Limit controller type to two bits of device info typeMarcel Holtmann2013-09-281-2/+2
|
* 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
* hciconfig: Remove putkey commandFrédéric Danis2012-12-051-64/+0
| | | | | With new storage architecture legacy storage "linkkeys" file doesn't exist anymore.
* 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.
* hciconfig: Add an option to set which advertise type will be onJefferson Delfes2012-11-221-6/+70
| | | | | There are some advertise types that can be used, so we need a way to tell which one we want. The default one is ADV_IND.
* hciconfig: Clarify what oobdata command doSzymon Janc2012-09-281-1/+1
| | | | | oobdata command results in reading new local OOB data and invalidates previously read data. Current command description is misleading.
* hciconfig: Fix compiler warnings related to unaligned memory accessVinicius Costa Gomes2012-02-141-1/+1
|
* hciconfig: Fix using old-style initializersVinicius Costa Gomes2012-02-141-2/+2
|
* hciconfig: Print features for AMP devicesAndrei Emeltchenko2011-12-081-1/+1
| | | | | Check for HCI device type, the magic shift is due to dev type is packed to dev_info type.
* hciconfig: Fix errno handling conventionAnderson Lizardo2011-11-171-4/+4
| | | | | | 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.
* Use HCI_MAX_EIR_LENGTH instead of hard-coded valueBruna Moreira2011-04-271-5/+5
|
* Fix LMP version string in hciconfigJohan Hedberg2011-03-281-1/+1
| | | | | | Previously the HCI version was reported instead of the LMP one. Reported-by: Arno Willig <akw@thinkwiki.org>
* Adjust LE command timeout and APIMarco Sinigaglia2011-03-101-1/+1
| | | | | | | 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.
* Fix hciconfig leadv returned responseAndre Dieb Martins2011-02-011-3/+12
| | | | | Fixes hciconfig leadv returned response by treating both status of the command execution and HCI error code.
* Add option to set LE random address to hciconfigClaudio Takahasi2011-01-311-0/+44
|
* Add LE read supported states for hciconfigClaudio Takahasi2010-12-291-0/+89
| | | | | Displays the states and state combinations that the link layer supports. Usage: hciconfig hcix lestates
* Coding style fixes for lib and toolsMichal Labedzki2010-12-211-32/+57
|
* Fix tools UI to avoid program launch mistakes.Michal Labedzki2010-12-201-2/+8
| | | | | | | hciconfig: warrning user on unknown commands hcitool: return error on unknown command in hcitool fix length size in comparision to avoid ambiguity commands check if command number of arguments is correct
* hciconfig: add LE_SET_ADVERTISE_ENABLE cmdAnderson Briglia2010-09-061-0/+40
| | | | | | This patch implements two new hciconfig commands: leadv and noleadv. These new hciconfig flags are responsible to LE_SET_ADVERTISE_ENABLE command implementation.
* Add hciconfig support for blacklistingJohan Hedberg2010-05-171-0/+55
| | | | | This patch implements hciconfig support for the new HCIBLOCKADDR and HCIUNBLOCKADDR ioctls.
* Remove extra spaces from tools dirJose Antonio Santos Cadenas2010-05-071-3/+3
|
* Pretty print HCI revision and LMP subversionMarcel Holtmann2010-03-071-2/+2
|
* Show HCI and LMP versions on separate linesMarcel Holtmann2010-02-131-1/+2
|
* Show controller type and bus type for every deviceMarcel Holtmann2010-02-131-4/+6
|
* The TX power level is a signed int and not an unsigned intMarcel Holtmann2010-02-051-1/+1
|
* Print EIR attribute for Device IDMarcel Holtmann2010-02-051-0/+4
|
* Fix another fallout from Inquiry Response Transmit Power Level typoMarcel Holtmann2010-02-051-1/+1
|
* Update copyright informationMarcel Holtmann2010-01-011-1/+1
|
* Fix memory leaks in hciconfig and hcitoolGustavo F. Padovan2009-02-101-3/+12
| | | | | Some printfs were using functions that return dynamic allocated memory as parameters.
* Fix mostly every warning caused by -Wsign-compareMarcel Holtmann2009-01-291-3/+4
|
* Update copyright informationMarcel Holtmann2009-01-011-1/+1
|