Commit Graph

1094 Commits

Author SHA1 Message Date
Marcel Holtmann
98a6bf243c hcidump: Add initial version of the LMP parser 2012-12-17 23:52:48 +01:00
Marcel Holtmann
c4f2c9a08e hcidump: Fix error message decoding and add IAC support 2012-12-17 23:52:48 +01:00
Marcel Holtmann
319d783a13 hcidump: More verbose decoding for the HCI parser 2012-12-17 23:52:48 +01:00
Marcel Holtmann
4069c01fe2 hcidump: Fix the declaration of the internal data structures 2012-12-17 23:52:48 +01:00
Marcel Holtmann
9bbd98cc07 hcidump: Add verbose L2CAP decoding 2012-12-17 23:52:48 +01:00
Marcel Holtmann
fc4f58042e hcidump: Update the copyright year 2012-12-17 23:52:48 +01:00
Marcel Holtmann
1ff5cd9426 hcidump: Initial part of the verbose HCI decoding 2012-12-17 23:52:48 +01:00
Marcel Holtmann
593df68b37 hcidump: Fix endian conversion 2012-12-17 23:52:48 +01:00
Marcel Holtmann
d550f4727c hcidump: Add option for verbose decoding 2012-12-17 23:52:48 +01:00
Marcel Holtmann
2a37ff7237 hcidump: Use L2CAP_CONF_RFC instead of L2CAP_CONF_RFC_MODE 2012-12-17 23:52:48 +01:00
Marcel Holtmann
1894978e81 hcidump: Include header file netinet/in.h 2012-12-17 23:52:48 +01:00
Marcel Holtmann
0be9e9d051 hcidump: Update copyright year and package title 2012-12-17 23:52:48 +01:00
Marcel Holtmann
c4ed61b5b1 hcidump: Allow vendor events in BPA mode 2012-12-17 23:52:48 +01:00
Marcel Holtmann
c354bcee92 hcidump: Fix parsing of continuation state 2012-12-17 23:52:48 +01:00
Marcel Holtmann
1f75e9085e hcidump: Fix display of config hint bit and QoS option 2012-12-17 23:52:48 +01:00
Marcel Holtmann
734cde560f hcidump: Fix display of UUID 128 2012-12-17 23:52:47 +01:00
Marcel Holtmann
fd650c5d24 hcidump: Add UUID translation for WAP 2012-12-17 23:52:47 +01:00
Marcel Holtmann
e6dec81d9e hcidump: Fix SBC codec specific again 2012-12-17 23:52:47 +01:00
Marcel Holtmann
669b75fc6e hcidump: Use better way of counting the number of L2CAP channels per PSM 2012-12-17 23:52:47 +01:00
Marcel Holtmann
dd106b1734 hcidump: Add decoding for the media channel header 2012-12-17 23:52:47 +01:00
Marcel Holtmann
cf948b7f01 hcidump: Fix AVDTP header decoding 2012-12-17 23:52:47 +01:00
Marcel Holtmann
b5eb231888 hcidump: Fix decoding of SBC specific information elements 2012-12-17 23:52:47 +01:00
Marcel Holtmann
9bf93421b3 hcidump: Better use of the L2CAP channel counting number 2012-12-17 23:52:47 +01:00
Marcel Holtmann
829899addb hcidump: Fix the per PSM channel counting 2012-12-17 23:52:47 +01:00
Marcel Holtmann
9908e377f0 hcidump: Add decoding of the signal channel information 2012-12-17 23:52:47 +01:00
Marcel Holtmann
21f08a508a hcidump: Use L2CAP count number to differ between signal and media channel 2012-12-17 23:52:47 +01:00
Marcel Holtmann
99ffc57b9d hcidump: Count the number of L2CAP channels per PSM 2012-12-17 23:52:47 +01:00
Marcel Holtmann
548e84232b hcidump: Fix display of transaction number 2012-12-17 23:52:47 +01:00
Marcel Holtmann
793b8d45c2 hcidump: Add BPA parser support 2012-12-17 23:52:47 +01:00
Marcel Holtmann
d123d973d1 hcidump: Fix message type to string function 2012-12-17 23:52:47 +01:00
Marcel Holtmann
28ab86027d hcidump: Set the manufacturer to Digianswer in BPA mode 2012-12-17 23:52:47 +01:00
Marcel Holtmann
2b777b21fc hcidump: Add the initial part for vendor packets of a BPA 2012-12-17 23:52:46 +01:00
Marcel Holtmann
c66b60617a hcidump: Support for sending and receiving dumps over TCP 2012-12-17 23:52:46 +01:00
Marcel Holtmann
ff724d872e hcidump: Update Headset, Handsfree and SIM Access UUID to text translation 2012-12-17 23:52:46 +01:00
Marcel Holtmann
05d94b4018 hcidump: Use strcasecmp for selecting the filters 2012-12-17 23:52:46 +01:00
Marcel Holtmann
3b912fd1b1 hcidump: Better handling for dynamic channels 2012-12-17 23:52:46 +01:00
Marcel Holtmann
f7f2120f0d hcidump: Allow --obex and -O options 2012-12-17 23:52:46 +01:00
Marcel Holtmann
bd08d16608 hcidump: Update OBEX parser 2012-12-17 23:52:46 +01:00
Marcel Holtmann
2d7a7404a4 hcidump: Fix whitespace stuff for extended dump 2012-12-17 23:52:46 +01:00
Marcel Holtmann
6dab2b3f06 hcidump: Don't dump credit only UIH frames 2012-12-17 23:52:46 +01:00
Marcel Holtmann
40d6be7e9a hcidump: Add initial OBEX parser support 2012-12-17 23:52:46 +01:00
Marcel Holtmann
08399254f9 hcidump: Add support for dynamic RFCOMM channels 2012-12-17 23:52:46 +01:00
Marcel Holtmann
8f7a3917a2 hcidump: Fix spaces for extended dump 2012-12-17 23:52:46 +01:00
Marcel Holtmann
3ff0c36a8a hcidump: Update man page with --manufacturer and --ext options 2012-12-17 23:52:46 +01:00
Marcel Holtmann
2d8aa0dd00 hcidump: Add CSR parser 2012-12-17 23:52:46 +01:00
Marcel Holtmann
eae7ac2625 hcidump: Add extended dump functionality 2012-12-17 23:52:46 +01:00
Marcel Holtmann
239941a891 hcidump: Don't use asm/* includes 2012-12-17 23:52:46 +01:00
Marcel Holtmann
0d6c3bd4b0 hcidump: Use bt_get_unaligned() from bluetooth.h for unaligned access 2012-12-17 23:52:45 +01:00
Marcel Holtmann
6cc8f30edc hcidump: Use the L2CAP_CONF_RFC_MODE value 2012-12-17 23:52:45 +01:00
Marcel Holtmann
dc0cf9850d hcidump: Fix typo 2012-12-17 23:52:45 +01:00
Marcel Holtmann
1ce29e4092 hcidump: Show config values only when they are present 2012-12-17 23:52:45 +01:00
Marcel Holtmann
2c9d753964 hcidump: Beautify output 2012-12-17 23:52:45 +01:00
Marcel Holtmann
29efa2d0c1 hcidump: Fix typo 2012-12-17 23:52:45 +01:00
Marcel Holtmann
f7a30bacbe hcidump: Decode information request and response 2012-12-17 23:52:45 +01:00
Marcel Holtmann
88ae5e679e hcidump: Fix display of CID 2012-12-17 23:52:45 +01:00
Marcel Holtmann
073282583f hcidump: Whitespace cleanups 2012-12-17 23:52:45 +01:00
Marcel Holtmann
13cb686514 hcidump: Fix protocol bits 2012-12-17 23:52:45 +01:00
Marcel Holtmann
65826f2b68 hcidump: Show L2CAP mode config option 2012-12-17 23:52:45 +01:00
Marcel Holtmann
45affc5e59 hcidump: Update autoconf/automake stuff 2012-12-17 23:52:45 +01:00
Marcel Holtmann
55ab178e08 hcidump: Add initial AVDTP parser support 2012-12-17 23:52:45 +01:00
Marcel Holtmann
78d594e2f3 hcidump: Add more UUID's for the HCRP 2012-12-17 23:52:45 +01:00
Marcel Holtmann
16e1f559c8 hcidump: Add UUID's for the audio/video profiles 2012-12-17 23:52:45 +01:00
Marcel Holtmann
68534aadb0 hcidump: Better endian handling 2012-12-17 23:52:45 +01:00
Marcel Holtmann
7aca4f9600 hcidump: Decode credit based flow control information 2012-12-17 23:52:44 +01:00
Marcel Holtmann
cf724dc131 hcidump: Add support for the HCI commands and events of Bluetooth 1.2 2012-12-17 23:52:44 +01:00
Marcel Holtmann
8f5b980343 hcidump: Add initial HCRP parser support 2012-12-17 23:52:44 +01:00
Marcel Holtmann
323b4c2a9f hcidump: Update copyright information 2012-12-17 23:52:44 +01:00
Marcel Holtmann
780e7afb96 hcidump: Update copyright information 2012-12-17 23:52:44 +01:00
Marcel Holtmann
b803cf4a17 hcidump: Extend CAPI parser support 2012-12-17 23:52:44 +01:00
Marcel Holtmann
c33ae9ef73 hcidump: Add initial CAPI parser support 2012-12-17 23:52:44 +01:00
Marcel Holtmann
81e575a543 hcidump: Add initial CAPI parser support 2012-12-17 23:52:44 +01:00
Marcel Holtmann
ac381ea1a4 hcidump: Fix compiler warning 2012-12-17 23:52:44 +01:00
Marcel Holtmann
36927f39b5 hcidump: Add support for dynamic PSM's 2012-12-17 23:52:44 +01:00
Marcel Holtmann
7163013a59 hcidump: Add support for dynamic PSM's 2012-12-17 23:52:44 +01:00
Marcel Holtmann
58ebe5391a hcidump: Extract L2CAP PSM from protocol descriptor list 2012-12-17 23:52:44 +01:00
Marcel Holtmann
0d1e855893 hcidump: Add CMTP reassembly support 2012-12-17 23:52:44 +01:00
Marcel Holtmann
3ec1b88e29 hcidump: Notice HIDP support in the man page 2012-12-17 23:52:44 +01:00
Marcel Holtmann
98088099dd hcidump: Fix handling of frame length 2012-12-17 23:52:44 +01:00
Marcel Holtmann
3c66938df7 hcidump: Add include for network order conversion functions 2012-12-17 23:52:44 +01:00
Marcel Holtmann
f5335f5513 hcidump: Bugfix 2012-12-17 23:52:43 +01:00
Marcel Holtmann
21e951b6b1 hcidump: HIDP support 2012-12-17 23:52:43 +01:00
Stephen Crane
96ca9677c1 hcidump: print tot and cur correctly (per Cetecom test) 2012-12-17 23:52:43 +01:00
Marcel Holtmann
96797ca399 hcidump: Use correct file permissions 2012-12-17 23:52:43 +01:00
Stephen Crane
347888633d hcidump: bugfix 2012-12-17 23:52:43 +01:00
Marcel Holtmann
deb94e9fd5 hcidump: Display imaging services 2012-12-17 23:52:43 +01:00
Stephen Crane
c796cf4f5a hcidump: better visualisation of ALTs and SEQs 2012-12-17 23:52:43 +01:00
Stephen Crane
17e81aac5f hcidump: fix unaligned access; spelling 2012-12-17 23:52:43 +01:00
Stephen Crane
d30c196c3b hcidump: add OBEX attribute names 2012-12-17 23:52:43 +01:00
Stephen Crane
fb9585cf57 hcidump: print "unknown" for unrecognised attrId 2012-12-17 23:52:43 +01:00
Marcel Holtmann
b07652a5d0 hcidump: Let the SDP parser also recognize HID 2012-12-17 23:52:43 +01:00
Marcel Holtmann
d1cb120fce hcidump: Display strings for vendor and testing commands and events 2012-12-17 23:52:43 +01:00
Marcel Holtmann
d5daa90a21 hcidump: Replace __uXXX with uXXX_t and fix get_unaligned stuff 2012-12-17 23:52:43 +01:00
Max Krasnyansky
b9fad8cebe hcidump: Initialize struct msghdr properly. 2012-12-17 23:52:43 +01:00
Marcel Holtmann
0bb83c757c hcidump: Add the manpage for hcidump 2012-12-17 23:52:43 +01:00
Marcel Holtmann
fa62619fb8 hcidump: Cleanup 2012-12-17 23:52:43 +01:00
Marcel Holtmann
5aed35307e hcidump: Let the SDP parser also recognize the CMTP 2012-12-17 23:52:43 +01:00
Marcel Holtmann
f3fe037e1c hcidump: Add a forgotten "\n" in RPN 2012-12-17 23:52:42 +01:00
Stephen Crane
0d4e435a95 hcidump: format 128-bit INTs 2012-12-17 23:52:42 +01:00
Stephen Crane
fd373b3c30 hcidump: minor fixes 2012-12-17 23:52:42 +01:00
Stephen Crane
0e15714faa hcidump: support attrs url, 64-, 128-bit ints 2012-12-17 23:52:42 +01:00
Marcel Holtmann
e75f95499d hcidump: CMTP support 2012-12-17 23:52:42 +01:00
Takashi Sasai
dfc1290622 hcidump: Cleanup dump messages. 2012-12-17 23:52:42 +01:00
Takashi Sasai
fc7f4b195d hcidump: Add more info for print_attr_lists and cleanup. 2012-12-17 23:52:42 +01:00
Takashi Sasai
5945891347 hcidump: Add raw_ndump and cleanup. 2012-12-17 23:52:42 +01:00
Max Krasnyansky
9fce62a8ef hcidump: Don't forget -R option 2012-12-17 23:52:42 +01:00
Max Krasnyansky
cd1db4e661 hcidump: fix unaligned refference. 2012-12-17 23:52:42 +01:00
Max Krasnyansky
3d8cc2ed04 hcidump: cleanup 2012-12-17 23:52:42 +01:00
Johannes Loebbert
a453f147da hcidump: Fixed handling for control packets in extension 2012-12-17 23:52:42 +01:00
Max Krasnyansky
2d7b98c9e3 hcidump: Timestamp is unsigned 2012-12-17 23:52:42 +01:00
Max Krasnyansky
e60c28507d hcidump: Get rid of argp and use getopt_long instead. 2012-12-17 23:52:42 +01:00
Max Krasnyansky
28856018a5 hcidump: Separate protocol desc list by uuids. 2012-12-17 23:52:42 +01:00
Max Krasnyansky
12a396c94f hcidump: Support for default PSM. 2012-12-17 23:52:42 +01:00
Max Krasnyansky
c6f8ad38cd hcidump: Support for default PSM. Cleanup. 2012-12-17 23:52:41 +01:00
Max Krasnyansky
e4d94344b4 hcidump: Parser fixes. Header update. 2012-12-17 23:52:41 +01:00
Max Krasnyansky
c733363679 hcidump: Fixed filter initialization. 2012-12-17 23:52:41 +01:00
Max Krasnyansky
cfab91f33f hcidump: CID handling fixes. 2012-12-17 23:52:41 +01:00
Max Krasnyansky
3f6f6d8293 hcidump: Add PAN support. 2012-12-17 23:52:41 +01:00
Max Krasnyansky
23a53d483f hcidump: Use btoh[sl] and htob[sl] instead of cpu_to_xx and xx_to_cpu. PAN support. 2012-12-17 23:52:41 +01:00
Max Krasnyansky
d72d95262b hcidump: Typo fix. 2012-12-17 23:52:41 +01:00
Max Krasnyansky
481cd0ba67 hcidump: RAW mode fixes. Indentation fixes. Cleanup. 2012-12-17 23:52:41 +01:00
Max Krasnyansky
2a233e5e26 hcidump: Time stamp support 2012-12-17 23:52:41 +01:00
Max Krasnyansky
a8fced66be hcidump: SCO support. Minor fixes. 2012-12-17 23:52:41 +01:00
Max Krasnyansky
f4655cc389 hcidump: SDP fixes. 2012-12-17 23:52:41 +01:00
Max Krasnyansky
d3b7b50e65 hcidump: Working filter implementation. 2012-12-17 23:52:41 +01:00
Max Krasnyansky
57724fbcd3 hcidump: SDP parser by Ricky Yuen. 2012-12-17 23:52:41 +01:00
Max Krasnyansky
50df085bb6 hcidump: Support for filters in command line. 2012-12-17 23:52:41 +01:00
Max Krasnyansky
d9548f909b hcidump: RFCOMM parser 2012-12-17 23:52:41 +01:00
Max Krasnyansky
1b718f2838 hcidump: Fragment reassemble. 2012-12-17 23:52:41 +01:00
Max Krasnyansky
3d628ac3ac hcidump: PSM tracking fix. 2012-12-17 23:52:41 +01:00
Max Krasnyansky
b793fc1fed hcidump: Add supprot for RAW(unparsed) mode. 2012-12-17 23:52:40 +01:00
Max Krasnyansky
21e0f9e507 hcidump: ascii_dump typo fix. 2012-12-17 23:52:40 +01:00
Max Krasnyansky
08d3546855 hcidump: PSM tracking (cid to psm mapping). 2012-12-17 23:52:40 +01:00
Max Krasnyansky
a6996ea00b hcidump: Initial implementation of CID to PSM mapping. 2012-12-17 23:52:40 +01:00
Max Krasnyansky
c6988203e8 hcidump: Improved option parsing. 2012-12-17 23:52:40 +01:00
Max Krasnyansky
de4d686b6b hcidump: Support for multiple signalling messages in on packet. 2012-12-17 23:52:40 +01:00
Max Krasnyansky
0dd70248af hcidump: Cleanup 2012-12-17 23:52:40 +01:00
Max Krasnyansky
be62a42504 hcidump: Use unified structure to pass frame info to all layers. 2012-12-17 23:52:40 +01:00
Max Krasnyansky
eef0b3cea5 hcidump: Write/read dumps 2012-12-17 23:52:40 +01:00
Max Krasnyansky
806c263bc3 hcidump: Initial support for read/writing dump files. 2012-12-17 23:52:40 +01:00
Max Krasnyansky
4f7fc59cfc hcidump: Cleanup 2012-12-17 23:52:40 +01:00
Max Krasnyansky
cdfd31fe98 hcidump: Fixed HCI command mapping tables. ocf's are not sequential. 2012-12-17 23:52:40 +01:00
Max Krasnyansky
e317caffda hcidump: Correct map for link ctl commands. 2012-12-17 23:52:40 +01:00
Max Krasnyansky
362ff59872 hcidump: Display commands and events in human readable format :) 2012-12-17 23:52:40 +01:00
Max Krasnyansky
f8a7b582a3 hcidump: Improved event printing. 2012-12-17 23:52:40 +01:00
Max Krasnyansky
4cfc753e30 hcidump: Added info req/rsp 2012-12-17 23:52:40 +01:00
Max Krasnyansky
46f37642bf hcidump: L2CAP parsing. 2012-12-17 23:52:40 +01:00
Max Krasnyansky
a4ce812250 hcidump: Generic parser library. 2012-12-17 23:52:39 +01:00
Max Krasnyansky
cde05014b3 hcidump: Improved packet parser and output format. 2012-12-17 23:52:39 +01:00
Max Krasnyansky
b689aca5d8 hcidump: Support for socket filter. Nicer output. 2012-12-17 23:52:39 +01:00
Max Krasnyansky
cc27cdb4e7 hcidump: Minor fixes. 2012-12-17 23:52:39 +01:00
Max Krasnyansky
ac0f444de3 hcidump: Added hci command, acl data, event and l2cap parsing. 2012-12-17 23:52:39 +01:00
Max Krasnyansky
7a12d391ef hcidump: Initial revision 2012-12-17 23:52:31 +01:00
Marcel Holtmann
c682e426ae tools: Add missing newlines to management utility 2012-12-14 16:42:27 +01:00
Marcel Holtmann
7ca701a612 build: Put hid2hci udev rules next to the source code 2012-12-10 22:56:05 +01:00
Marcel Holtmann
ffb795a2e7 test: Move mpris-player utility into tools directory 2012-12-09 20:58:24 +01:00
Marcel Holtmann
9f16982880 test: Move btiotest utility into tools directory 2012-12-09 20:54:33 +01:00
Marcel Holtmann
a18bd79ae1 test: Move bdaddr utility into tools directory 2012-12-09 20:47:10 +01:00
Marcel Holtmann
ab5bedd35e test: Move scotest utility into tools directory 2012-12-09 14:47:43 +01:00
Marcel Holtmann
52e63f4013 test: Move rctest utility into tools directory 2012-12-09 14:44:19 +01:00
Marcel Holtmann
dff1ad9822 test: Move l2test utility into tools directory 2012-12-09 14:37:30 +01:00
Marcel Holtmann
bac2e7e1de test: Move avtest utility into tools directory 2012-12-09 14:30:33 +01:00
Marcel Holtmann
27c68b2d98 build: Move all programs to be installed into bin directory 2012-12-09 11:03:46 +01:00
Marcel Holtmann
e946d6a374 tools: Remove reference to old SDP daemon 2012-12-09 11:03:11 +01:00
Marcel Holtmann
0613f64410 tools: Remove dfutool utility
This tool got replaced with dfu-util from http://dfu-util.gnumonks.org/
2012-12-09 00:50:54 +01:00
Marcel Holtmann
bffd612cad tools: Remove include of compat ppoll header 2012-12-09 00:42:07 +01:00
Marcel Holtmann
4ba84c72f1 tools: Use batocomp function instead of ouitocomp 2012-12-09 00:02:22 +01:00
Johan Hedberg
b8779d2202 Revert "Ensure config.h is included by using CPPFLAGS"
This reverts commit 8a03376544.

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
2012-12-07 12:46:04 +02:00
Frédéric Danis
703dd8b404 hciconfig: Remove putkey command
With new storage architecture legacy storage "linkkeys"
file doesn't exist anymore.
2012-12-05 17:24:38 +02:00
Lucas De Marchi
8a03376544 Ensure config.h is included by using CPPFLAGS
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.
2012-12-05 17:18:07 +02:00
Lucas De Marchi
b84f6f794b build-sys: Define _GNU_SOURCE in config.h
Instead of defining _GNU_SOURCE in each source file (and potentially
forgetting in some), tell the build system we use extensions and let it
define _GNU_SOURCE in config.h.
2012-12-05 17:17:36 +02:00
Luiz Augusto von Dentz
36803c249d gobex: tools: Fix using BT_IO_TYPE in test-client and test-server 2012-12-04 22:22:07 +01:00
Michał Poczwardowski
77a7ad6ae1 gobex: tools: Fix test-client error message put/get typo 2012-12-04 22:22:06 +01:00
Marcel Holtmann
cd8a24b9fa gobex: build: Remove glib-helper.h support 2012-12-04 22:22:06 +01:00
Luiz Augusto von Dentz
9e1e47425e gobex: tools: Fix test-server to use ERTM while on packet mode
OBEX should only be used with ERTM over L2CAP and set MTU properly
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
26ce1d484f gobex: tools: Fix test-client to use ERTM while on packet mode
OBEX should only be used with ERTM over L2CAP and set MTU properly
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
ae33bcb8a4 gobex: tools: Make test-server to use ERTM
If port is bigger than 31 and stream mode is selected then use ERTM
2012-12-04 22:22:05 +01:00
Luiz Augusto von Dentz
2a94607646 gobex: tools: Make test-client use ERTM
If port is bigger than 31 and stream mode is selected then use ERTM
2012-12-04 22:22:05 +01:00
Johan Hedberg
1c2da64348 gobex: Remove g_obex_packet_find_header
This was exactly the same as g_obex_packet_get_header.
2012-12-04 22:22:03 +01:00
Luiz Augusto von Dentz
68bd9dd92b gobex: add option to set input/output MTU to test-server 2012-12-04 22:22:02 +01:00
Luiz Augusto von Dentz
701f8845b5 gobex: add option to set input/output MTU to test-client 2012-12-04 22:22:02 +01:00
Luiz Augusto von Dentz
971be76c62 gobex: add root support to test-server 2012-12-04 22:22:02 +01:00
Luiz Augusto von Dentz
2c5bb3ec41 gobex: Add Bluetooth support for test-server 2012-12-04 22:22:02 +01:00
Luiz Augusto von Dentz
7e7a99b039 gobex: Add Bluetooth support for test-client 2012-12-04 22:22:02 +01:00
Syam Sidhardhan
cb6fe44ba1 gobex: Remove bogus extra semicolons 2012-12-04 22:22:02 +01:00
Daniele Forsi
f64fe4f401 gobex: Fix compilation when NEED_G_SLIST_FREE_FULL is defined
To use the replacement for g_slist_free_full() both compat.h and
glib-helper.h need to be included.

Fixes:
gobex/gobex.c:911: error: implicit declaration of function 'g_slist_free_full'
tools/obex-server-tool.c:344: error: implicit declaration of function ‘g_slist_free_full’
2012-12-04 22:22:02 +01:00
Luiz Augusto von Dentz
c1b8f95c2a gobex: Make use of g_slist_free_full when elements are dynamically-allocated
This avoid having to iterate twice in the list to free its elements.
2012-12-04 22:22:02 +01:00
Johan Hedberg
3352a36c11 gobex: Allow g_obex_send_rsp to take custom headers 2012-12-04 22:22:01 +01:00
Johan Hedberg
ddb69649e8 gobex: Merge gobex-transfer.h into gobex.h 2012-12-04 22:22:01 +01:00
Johan Hedberg
562f84396b gobex: Fix missing newline in test-server error log 2012-12-04 22:22:01 +01:00
Johan Hedberg
d713e186e5 gobex: Add g_obex_send_rsp convenience function 2012-12-04 22:22:01 +01:00
Johan Hedberg
0e2afe102e gobex: Fix test-server/client file creation mode 2012-12-04 22:22:01 +01:00
Johan Hedberg
14d2bde30d gobex: Add Get support to test-client and test-server 2012-12-04 22:22:01 +01:00
Johan Hedberg
c869ca28b8 gobex: Make use of va-args headers in higher level functions 2012-12-04 22:22:01 +01:00
Johan Hedberg
815218c7ef gobex: Make transfer functions take va-args header lists 2012-12-04 22:22:01 +01:00
Johan Hedberg
58cd14d209 gobex: Remove _ID_ from header type definitions 2012-12-04 22:22:01 +01:00
Johan Hedberg
cdcde59687 gobex: Add va-args based packet creation support 2012-12-04 22:22:01 +01:00
Johan Hedberg
bfb84a44a7 gobex: Add put streaming support to test-server 2012-12-04 22:21:59 +01:00
Johan Hedberg
f25c695d22 gobex: Print more informative disconnect message in test-client 2012-12-04 22:21:59 +01:00
Johan Hedberg
10dfec83a1 gobex: Rename g_obex_put to g_obex_put_req 2012-12-04 22:21:59 +01:00
Johan Hedberg
d2c30f5c78 gobex: Update test-server to use per-opcode request handlers 2012-12-04 22:21:59 +01:00
Johan Hedberg
6cfe881554 gobex: Add basic put request parsing to test-server 2012-12-04 22:21:59 +01:00
Johan Hedberg
49514b2cc4 gobex: Track last received request internally and remove g_obex_response 2012-12-04 22:21:59 +01:00
Johan Hedberg
b1cc9a1269 gobex: Add support for put transfer in test-client 2012-12-04 22:21:59 +01:00
Johan Hedberg
bc076f8437 gobex: Add proper responses to all requests in test-server 2012-12-04 22:21:59 +01:00
Johan Hedberg
2e49852cce gobex: Use opcode instead of entire req in g_obex_response 2012-12-04 22:21:59 +01:00
Johan Hedberg
26f20b39af gobex: Use g_obex_respose in test-server 2012-12-04 22:21:58 +01:00
Johan Hedberg
9714844c66 gobex: Add request callback to test-server 2012-12-04 22:21:58 +01:00
Johan Hedberg
6bca789ddd gobex: Add connect command to test-client 2012-12-04 22:21:58 +01:00
Johan Hedberg
abbfdb3aa2 gobex: Add readline support to test-client 2012-12-04 22:21:58 +01:00
Johan Hedberg
f817405d04 gobex: Add basic skeleton for test-client 2012-12-04 22:21:58 +01:00
Johan Hedberg
d0903aa407 gobex: Fix test-server server socket leak 2012-12-04 22:21:58 +01:00
Johan Hedberg
3ccda2440d gobex: Add some basic command line options to test-server 2012-12-04 22:21:58 +01:00
Johan Hedberg
7afc5a6f90 gobex: g_obex_new should create its own GIOChannel ref 2012-12-04 22:21:58 +01:00
Johan Hedberg
0b362843b0 gobex: Add per-client tracking to test-server 2012-12-04 22:21:58 +01:00
Johan Hedberg
552823f60b gobex: Add a skeleton for a test server 2012-12-04 22:21:58 +01:00
Johan Hedberg
a036d5febc btsnoop: _GNU_SOURCE is needed for O_CLOEXEC on some systems 2012-11-28 16:36:08 +02:00
Johan Hedberg
e24537ba87 btsnoop: Fix missing sys/stat.h include needed by S_IRUSR 2012-11-28 16:30:23 +02:00
Johan Hedberg
044d567a4d sdptool: Add missing UUID entries for MAP and HSP 2012-11-23 14:34:18 +02:00
Jefferson Delfes
f078cf5c75 hciconfig: Add an option to set which advertise type will be on
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.
2012-11-22 10:13:20 +02:00
Marcel Holtmann
ce06826bd7 build: Remove stupid -I directives 2012-11-20 16:12:51 +01:00
Johan Hedberg
b27b7757d4 mgmt: Remove peripheral setting
It's still not decided how this will be exposed in the end but most
likely it wont be through mgmt (e.g. socket-based enabling is a probable
choice).
2012-11-09 16:52:48 +02:00
Marcel Holtmann
2a7af79ba0 build: Remove unused ppporc utility 2012-11-09 10:31:28 +01:00
Marcel Holtmann
aabb7b93d8 build: Remove unused dfubabel utility 2012-11-09 10:19:44 +01:00
Marcel Holtmann
4db071a155 build: Remove unused avctrl utility 2012-11-09 10:11:14 +01:00
Johan Hedberg
127a07fd0d btmgmt: Fix rm-uuid command 2012-11-08 11:24:45 +02:00
Marcel Holtmann
f2ddf39023 tools: Add simple btattach utility 2012-11-07 10:51:01 +01:00
Johan Hedberg
ce084da2e7 btsnoop: Fix signedness compilation errors
This patch fixes the following signedness comparison errors:

tools/btsnoop.c: In function 'command_merge':
tools/btsnoop.c:221:21: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
tools/btsnoop.c:263:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
2012-11-06 19:05:46 +02:00
Marcel Holtmann
d67a5c26b1 tools: Add tool for merging multiple btsnoop traces into one 2012-11-04 21:50:46 +01:00
Frédéric Danis
566ef74749 hcitool: Retrieve names from cache directory 2012-10-31 11:05:30 +02:00
Marcel Holtmann
2c33d253f5 hciattach: Allow creating AMP controller over UART 2012-10-29 15:48:52 -07:00
Johan Hedberg
d6ff55181b mgmt: Remove LE prefix from the peripheral setting 2012-10-22 18:47:43 +03:00
Johan Hedberg
1b0a4291d1 mgmt: Add support for LE peripheral mode 2012-10-22 17:36:51 +03:00
Johan Hedberg
f45ee9ff35 btmgmt: Add basic EIR parsing 2012-10-22 17:36:38 +03:00
Chan-yeol Park
fa33166bd1 avinfo: Print a2dp vendor codec info 2012-10-09 23:27:51 +02:00
Chan-yeol Park
3be965ebea avinfo: Replace definitions with a2dp-codecs.h's 2012-10-09 23:27:51 +02:00
Szymon Janc
6026d2ebd2 hciconfig: Clarify what oobdata command do
oobdata command results in reading new local OOB data and invalidates
previously read data. Current command description is misleading.
2012-09-28 16:51:23 +03:00
Claudio Takahasi
30529a58b0 hcitool: Add LE scan based on White List
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.
2012-09-06 17:32:34 +03:00
Anderson Lizardo
78889501f8 Fix trivial coding style issues on pointer declarations and casting
Avoid using C++ style pointer declarations like "char* ptr", as most
BlueZ code uses "char *ptr".
2012-08-26 09:37:06 +01:00
Mikel Astiz
902e9f2de2 mgmt: Add reason to device disconnect event
Extend the management API with the disconnect reason, as now reported
by the Kernel in MGMT_EV_DEVICE_DISCONNECTED.
2012-08-17 12:26:30 +03:00
Anderson Lizardo
6ade0ff7a2 btmgmt: Fix endianness conversion
Flags field has 32-bit size. Same issue was fixed for mgmtops in
1801a4d45d.
2012-08-13 13:26:54 +03:00
Lucas De Marchi
b96925739d rfcomm: Fix typo in man page 2012-08-09 22:52:38 -07:00
Lucas De Marchi
5bec57420b rfcomm: Remove support for configuration file 2012-08-09 22:52:38 -07:00
Lucas De Marchi
dde5b23665 rfcomm: Fix checking return value instead of errno
We were checking by a positive return value instead of checking by -1
and errno. However when there's no support for TTY kernel returns
EOPNOTSUPP as usual, which in the end will have a return value of -1
and errno will be set to EOPNOTSUPP.
2012-08-09 22:52:37 -07:00
Gustavo Padovan
2f5f6a5de0 btmgmt: move it to tools 2012-07-10 11:20:34 -03:00
Tedd Ho-Jeong AN
4a3f496862 hciattach: fix return length after reading the patch file
This patch fixes the issue that returns always 0 after reading the patch
line.
2012-07-04 15:39:54 +03:00
Pavel Raiskup
c0d81fcfbf sdptool: Fix dropping of the list head
assigning sdp_list_append(0, ...) to "apseq" on line 2591 will
drop first item in list got by sdp_list_append three lines before.
2012-06-28 14:51:09 +03:00
Johan Hedberg
3e53b3862c hciattach: Add basic Three-wire UART support 2012-05-31 15:06:19 +03:00
Tom Gundersen
35beaaa5b3 udev: remove deprecated function
This function has in the past returned "/sys" unconditionally. As of
udev-183 it is gone, so just replace it with the string.
2012-05-27 22:35:59 +03:00
Tedd Ho-Jeong An
8d25f9528b hciattach: Add support for Intel Bluetooth device
This patch enables the Intel Bluetooth device (UART sku) over the H4
protocol.  It is responsible for bring up the device into known state by
configuring the baudrate and applying the patches, if required.
2012-05-16 10:36:20 +03:00
Anderson Lizardo
ff794ffae4 tools: Fix tab misuse 2012-05-10 16:43:16 -07:00