Commit Graph

1891 Commits

Author SHA1 Message Date
Marcel Holtmann
5535c4e87d tools: Add support for Add Device and Remove Device mgmt commands 2014-06-29 15:28:31 +02:00
Marcel Holtmann
00fa756b5d tools: Don't try to read BD_ADDR manually for raw devices 2014-06-28 23:10:00 +02:00
Johan Hedberg
c863b07ea4 tools/btmgmt: Add basic support for Get Clock Info command 2014-06-28 17:51:47 +03:00
Andrei Emeltchenko
826f869b8b hciconfig: Fix adding missing break 2014-06-23 10:52:49 +03:00
Andrei Emeltchenko
70b44b1d8a hcitool: Fix adding missing break 2014-06-23 10:52:02 +03:00
Andrei Emeltchenko
7cd5494b69 tools/csr: Fix wrong error check 2014-06-23 10:44:14 +03:00
Andrei Emeltchenko
797b7fe0f7 tools/mpris-player: Fix overflow before type widening
Expression is evaluated using 32-bit arithmetic before conversion to
64-bit.
2014-06-23 10:43:45 +03:00
Johan Hedberg
d376c0913f tools/mgmt-tester: Add invalid IO capability tests 2014-06-17 15:12:28 +03:00
Lukasz Rymanowski
aa95d467b8 tools/l2test: Fix setopts and getopts functions
Level SOL_L2CAP with optname L2CAP_OPTIONS is supported only for BR/EDR
Since bdaddr_type is set to BDADDR_BREDR by default, there is no sense
to check also CID.

This fix le connect which now fails when trying to connect ATT CID on LE
transport.
2014-06-17 12:15:07 +03:00
Johan Hedberg
404c356846 tools/mgmt-tester: Add SSP just-works test case
This patch adds a test case to ensure that we do not get any user space
confirmation callbacks when we're supposed to be doing just-works
pairing.
2014-06-10 14:54:59 +03:00
Andrzej Kaczmarek
48519c78b6 tools/btmgmt: Trival whitespace fix 2014-06-03 13:40:22 +03:00
Andrzej Kaczmarek
4a56237aa8 tools/btmgmt: Fix io-cap usage message 2014-06-03 13:40:20 +03:00
Andrzej Kaczmarek
1285ac1816 tools/btmgmt: Rename set-io-cap to io-cap
Every other 'set-something' command is just called 'something', so
let's keep this consistent.
2014-06-03 13:40:18 +03:00
Andrzej Kaczmarek
d85a554377 tools/btmgmt: Add scan-params command 2014-06-03 13:40:16 +03:00
Johan Hedberg
0fcb1d9513 tools/btmgmt: Add support for passkey notification 2014-06-01 22:52:17 +03:00
Johan Hedberg
a27603068b tools/btmgmt: Add support for passkey requests 2014-06-01 22:52:10 +03:00
Johan Hedberg
f9df0da774 tools/smp-tester: Add client test case for MITM 2014-06-01 09:36:38 +03:00
Lukasz Rymanowski
d751cc823a tools/btmgmt: Add set-io-cap command
This is needed for testing e.g. PTS
2014-05-31 19:21:21 +03:00
Andrzej Kaczmarek
7c29b18cf2 tools/hcidump: Decode MPEG-1,2 Audio codec capabilities 2014-05-28 14:40:54 +03:00
Johan Hedberg
2790b3b250 tools/btmgmt: Fix address type in user confirm replies 2014-05-27 20:59:45 +03:00
Andrzej Kaczmarek
a78aec57a5 tools/avinfo: Decode aptX codec capabilities 2014-05-27 17:57:25 +03:00
Andrzej Kaczmarek
d7d11d074f tools/avinfo: Decode MPEG-2,4 AAC codec capabilities 2014-05-27 17:57:25 +03:00
Andrzej Kaczmarek
a238e3b108 tools/hcidump: Decode aptX codec capabilities 2014-05-27 17:57:25 +03:00
Andrzej Kaczmarek
fee302da25 tools/hcidump: Decode MPEG-2,4 AAC codec capabilities 2014-05-27 17:57:25 +03:00
Andrzej Kaczmarek
73f5534028 audio: Fix a2dp_vendor_codec_t declaration
As per A2DP spec, both Vendor ID (4.7.2.1) and Codec ID (4.7.2.2) are
defined as 32-bit and 16-bit values respectively rather that array of
bytes. Also changing to uint types will make using these values in code
much easier.
2014-05-27 17:56:36 +03:00
Andrzej Kaczmarek
fbf5f5819a tools/mgmt-tester: Add "Get Conn Info - Not Connected" 2014-05-20 21:55:15 +03:00
Andrzej Kaczmarek
a168191dce tools/mgmt-tester: Add "Get Conn Info - Success" 2014-05-20 21:55:15 +03:00
Johan Hedberg
d33546d729 smp-tester: Update invalid request test to use correct response
Recent kernels will return the correct Invalid Parameters (0x0a)
response instead of the Unspecified Reason (0x08) response.
2014-05-20 09:21:57 +03:00
Andrzej Kaczmarek
86a7a090e4 tools/mgmt-tester: Fix "Pair Device - SSP Confirm Reject 1"
With changes introduced in kernel by 6fd6b915 we no longer require MITM
when being pairing initiator (i.e. we indicate it to remote but do not
force it when remote does not require it) thus kernel will auto-accept
pairing when remote also does not require MITM. As a result it's not
possible for tester to reject user confirmation since there's no
request from kernel.

This patch sets acceptor authentication requirements to include MITM
so we'll have user confirmation request and tester can reject it.
2014-05-19 14:14:21 +03:00
Lukasz Rymanowski
3afaef7655 tools: Add conn-info to btmgmt 2014-05-19 08:21:35 +03:00
Szymon Janc
5c0c4d1aeb tools: Fix hex2hcd compilation error
Fix following with GCC version 4.8.2 (Debian 4.8.2-21):

tools/hex2hcd.c: In function ‘main’:
tools/hex2hcd.c:118:19: error: comparison between signed and
  unsigned integer expressions [-Werror=sign-compare]
     for (i = 0; i < hex_to_int(rbuf + 1); i++) {
                   ^
cc1: all warnings being treated as errors
2014-05-14 23:14:42 +03:00
Marcel Holtmann
53a4f2a82a tools: Print codec name for MPEG24 capability type 2014-05-13 22:08:29 -07:00
Marcel Holtmann
61e3c8814a tools: Fix compiler warning from hex2hcd source code 2014-05-10 18:56:59 -07:00
Marcel Holtmann
62ff55aa61 tools: Use standard license header for hex2hcd source code 2014-05-10 18:53:49 -07:00
Wen-chien Jesse Sung
6462646985 tools: Add hex2hcd utility source code 2014-05-10 18:52:43 -07:00
Marcel Holtmann
0da8d99975 tools: Remove permission check from hcidump utility 2014-04-16 19:48:29 -07:00
Szymon Janc
6ad13748da tools/hciattach: Fix missing includes
According to writev manual one should include <sys/uio.h> to use it.

This fix following warnings with bionic:
external/bluetooth/bluez/tools/hciattach_tialt.c: In function
    'texas_load_firmware':
external/bluetooth/bluez/tools/hciattach_tialt.c:142:4: warning:
    implicit declaration of function 'writev'
    [-Wimplicit-function-declaration]
target thumb C: hciattach <= external/bluetooth/bluez/tools/
    hciattach_ath3k.c
target thumb C: hciattach <= external/bluetooth/bluez/tools/
    hciattach_qualcomm.c
external/bluetooth/bluez/tools/hciattach_qualcomm.c: In function
    'qualcomm_load_firmware':
external/bluetooth/bluez/tools/hciattach_qualcomm.c:147:4: warning:
    implicit declaration of function 'writev'
    [-Wimplicit-function-declaration]
2014-04-15 13:12:04 -07:00
Luiz Augusto von Dentz
4899119cb2 tools/obexctl: Add support for listing phonebook size
This adds option -l which in case of PBAP will use GetSize before listing
the contacts of the current folder.
2014-04-09 13:59:29 +03:00
Loic Poulain
8366eae6d7 tools: add bcm43xx specific init in hciattach
Add a bcm43xx specific init sequence in hciattach
in order to initialize bcm43xx controllers.
2014-04-04 20:10:08 +03:00
Szymon Janc
58c09774c8 tools: Fix bccmd build with GCC 4.9
Make sure accessing array[63 * 2 + 4] is legal.

tools/bccmd.c: In function ‘cmd_buildname’:
tools/bccmd.c:406:18: error: iteration 63u invokes undefined behavior
     [-Werror=aggressive-loop-optimizations]
   name[i] = array[(i * 2) + 4];
2014-04-03 10:19:21 +03:00
Szymon Janc
989ff1d03d tools/btmgmt: Fix bogus comment in eir_get_flags function
This was due to copy-and-paste.
2014-04-02 13:43:00 +03:00
Szymon Janc
aca6d609da tools/btmgmt: Add option to pass adress type to disconnect command
This is needed to disconnect LE devices.
2014-04-02 13:42:09 +03:00
Szymon Janc
4b294a9486 tools/btmgmt: Print AD flags for LE devices
This is usefull for GAP qualification tests.
2014-04-01 17:09:41 +03:00
Claudio Takahasi
a8c00286f8 tools: Add emitting descriptor PropertiesChanged
This patch forces emitting PropertiesChanged signal when the descriptor
Value changes. Internally, BlueZ tracks the signal emitted to update
the GDBusProxy properties.
2014-03-31 16:14:16 +03:00
Claudio Takahasi
379a8c7651 tools: Add Get/Set descriptor
This patch adds get and set callbacks to allow managing "Value" property
of the user defined descriptor related to IAS Alert Level.
2014-03-31 16:14:16 +03:00
Claudio Takahasi
062d5fc4c1 tools: Add testing descriptor for IAS Alert Level
This patch adds a testing purpose only characteristic descriptor to
allow reading and writing descriptor's "Value" property.
2014-03-31 16:14:16 +03:00
Marcel Holtmann
1e19efd1b9 tools: Remove device name cache feature from hcitool 2014-03-30 16:29:27 -07:00
Alvaro Silva
12947cc943 test: Add permissions for Alert Level of gatt-service
This patch adds properties to Alert Level characteristic of the
Immediate Alert Service. IAS specification defines Write Without
Response as mandatory.
2014-03-28 14:22:00 +02:00
Claudio Takahasi
ee51e8a5a5 tools: Use unaligned access macros from util.h 2014-03-25 13:47:19 +02:00
Claudio Takahasi
958f256524 tools: Fix coding style checking boolean
This patch fixes tools/gatt-service.c coding style, using !foo instead
of foo == FALSE.
2014-03-24 16:28:42 +02:00