OSDN Git Service
Marcel Holtmann [Wed, 19 Dec 2012 16:48:08 +0000 (17:48 +0100)]
core: Ensure that adapter->discoverable default is false
Marcel Holtmann [Wed, 19 Dec 2012 16:42:49 +0000 (17:42 +0100)]
core: Mention defaults in main.conf and disable examples
Marcel Holtmann [Wed, 19 Dec 2012 16:40:12 +0000 (17:40 +0100)]
core: Remove LAST_ADAPTER_EXIT_TIMEOUT constant
Marcel Holtmann [Wed, 19 Dec 2012 16:39:30 +0000 (17:39 +0100)]
core: Explictly set default values for the options
Marcel Holtmann [Wed, 19 Dec 2012 16:36:08 +0000 (17:36 +0100)]
core: Remove unused link_policy setting
Marcel Holtmann [Wed, 19 Dec 2012 16:34:49 +0000 (17:34 +0100)]
core: Remove unused link_mode setting
Marcel Holtmann [Wed, 19 Dec 2012 16:31:50 +0000 (17:31 +0100)]
core: Remove PageTimeout configuration option
The PageTimeout setting is currently not supported. So do not pretend
that it is actually available.
Marcel Holtmann [Wed, 19 Dec 2012 15:27:29 +0000 (16:27 +0100)]
core: Force not discoverable at power on if timeout is enabled
In case the adapter comes with a previous state, ensure that it is
made non discoverable if a timeout is set.
Marcel Holtmann [Wed, 19 Dec 2012 15:22:09 +0000 (16:22 +0100)]
core: Check for discoverable timeout settings during power on
When the adapter is powered on, then setting discoverable with a
timeout value is not allowed.
Marcel Holtmann [Wed, 19 Dec 2012 15:03:23 +0000 (16:03 +0100)]
core: Set the address type when canceling pair device command
Marcel Holtmann [Wed, 19 Dec 2012 15:00:13 +0000 (16:00 +0100)]
core: Provide address type information to unpair command
Marcel Holtmann [Wed, 19 Dec 2012 14:50:16 +0000 (15:50 +0100)]
core: Print timeout value for set discoverable debug
Marcel Holtmann [Wed, 19 Dec 2012 14:38:21 +0000 (15:38 +0100)]
core: Print compact info about Bluetooth management interface
Johan Hedberg [Wed, 19 Dec 2012 14:40:32 +0000 (16:40 +0200)]
core: Fix treating uuid_any as an invalid UUID
Luiz Augusto von Dentz [Wed, 19 Dec 2012 14:29:08 +0000 (16:29 +0200)]
audio: Remove adapter list
btd_adapter is directly referenced by the drivers so there is no point
on keeping a list just for the audio adapters.
Luiz Augusto von Dentz [Wed, 19 Dec 2012 14:29:07 +0000 (16:29 +0200)]
audio: Fix not releasing all references to btd_adapter
A2DP server now take a reference to btd_adapter which needs to be
released properly once the adapter is unplugged.
Johan Hedberg [Wed, 19 Dec 2012 14:26:58 +0000 (16:26 +0200)]
core: Print mgmt version and revision through info() instead of DBG()
Johan Hedberg [Wed, 19 Dec 2012 14:22:44 +0000 (16:22 +0200)]
core: Filter out non-16 bit UUIDs when talking to mgmt
There's a bug with current kernel mgmt code that will create incorrect
EIR data if there are any non-16-bit UUIDs in the kernel's UUID list.
Once this is fixed in the kernel we can pass 128-bit UUIDs again (by
first checking a new enough mgmt revision), but until then we simply
have to filter out these UUIDs.
Marcel Holtmann [Wed, 19 Dec 2012 14:03:45 +0000 (15:03 +0100)]
build: Don't create empty udev rules.d directory
When UDEV_DIR is empty it will create "/rules.d" directory which is
not desired. So check for enabled HID2HCI support before installing
any udev rules.
Marcel Holtmann [Wed, 19 Dec 2012 12:42:35 +0000 (13:42 +0100)]
obexd: Reorder command line options
Johan Hedberg [Wed, 19 Dec 2012 12:34:05 +0000 (14:34 +0200)]
core: Always power off adapter when stopping bluetoothd
Marcel Holtmann [Wed, 19 Dec 2012 12:33:30 +0000 (13:33 +0100)]
core: Turn another info() into DBG() for less clutter in logs
Szymon Janc [Wed, 12 Dec 2012 10:28:08 +0000 (11:28 +0100)]
avctp: Remove double looking for audio device
There is no need to double call for manager_get_audio_device with
toggled create flag. manager_get_audio_device with create set to true
will only create new audio device if matching one was not found.
Szymon Janc [Wed, 12 Dec 2012 10:28:07 +0000 (11:28 +0100)]
audio: Simplify manager_find_device
Now that audio_device and other audio structures holds references to
btd_device and not addresses or paths there is no need for complex
find function.
Szymon Janc [Wed, 12 Dec 2012 10:28:06 +0000 (11:28 +0100)]
audio: Make manager_get_device accept btd_device
Also rename manager_get_device to manager_get_audio_device to better
mark what this function do.
Szymon Janc [Wed, 12 Dec 2012 10:28:05 +0000 (11:28 +0100)]
audio: Use manager_get_device to get device object
manager_get_device is a simple wrapper for manager_find_device
and can be used instead making manager API simpler.
manager_find_device{s} are no longer used outside of manager.c and
can be made static.
Szymon Janc [Wed, 12 Dec 2012 10:28:04 +0000 (11:28 +0100)]
avdtp: Replace avdtp_get_peers with adapter and device getters
This will allow to directly pass adapter or device object instead
of looking for them with addresses later on.
Szymon Janc [Wed, 12 Dec 2012 10:28:03 +0000 (11:28 +0100)]
avctp: Convert register/unregister to accept btd_adapter
Use btd_adapter and btd_device refs instead of source and destination
bdaddr_t.
Szymon Janc [Wed, 12 Dec 2012 10:28:02 +0000 (11:28 +0100)]
avrcp: Convert to accept btd_adapter instead of bdaddr_t
This makes avrcp code use reference to btd_adapter structure instead
of adapter source address.
Szymon Janc [Wed, 12 Dec 2012 10:28:01 +0000 (11:28 +0100)]
a2dp: Use btd_adapter ref in a2dp_server instead of bdaddr_t
Use local refs to device and adapter object instead of addresses.
This allows a2dp code to pass adapter object instead of address.
Szymon Janc [Wed, 12 Dec 2012 10:28:00 +0000 (11:28 +0100)]
avdtp: Use refs to adapter and device instead of bdaddr_t
Use local refs to device and adapter object instead of addresses.
This allows a2dp code to pass adapter object instead of address
and minimise need for finding adapter again with manager API.
Szymon Janc [Wed, 12 Dec 2012 10:27:59 +0000 (11:27 +0100)]
a2dp: Convert a2dp_add_sep to accept struct btd_adapter
Pass btd_adapter directly or use getters to get needed data from
adapter object.
Szymon Janc [Wed, 12 Dec 2012 10:27:58 +0000 (11:27 +0100)]
media: Convert register/unregister to accept btd_adapter
Keep reference to passed btd_adapter and use it to get adapter address
and path.
Szymon Janc [Wed, 12 Dec 2012 10:27:57 +0000 (11:27 +0100)]
a2dp: Convert a2dp_unregister to accept btd_adapter
Pass btd_adapter directly or use getters to get needed data from
adapter object.
Szymon Janc [Wed, 12 Dec 2012 10:27:56 +0000 (11:27 +0100)]
a2dp: Convert sink/source register to accept btd_adapter
Pass btd_adapter directly or use getters to get needed data from
adapter object.
Szymon Janc [Wed, 12 Dec 2012 10:27:55 +0000 (11:27 +0100)]
a2dp: Remove not used macros definitions
MIN and MAX macros are not used.
Szymon Janc [Wed, 12 Dec 2012 10:27:54 +0000 (11:27 +0100)]
a2dp: Remove useless return
This code does nothing.
Szymon Janc [Wed, 12 Dec 2012 10:27:53 +0000 (11:27 +0100)]
a2dp: Remove bogus '\' at the end of line
Luiz Augusto von Dentz [Wed, 19 Dec 2012 11:27:01 +0000 (13:27 +0200)]
audio: Fix calling device_profile_connected on disconnected cases
Luiz Augusto von Dentz [Wed, 19 Dec 2012 11:27:00 +0000 (13:27 +0200)]
audio: Remove unused parameters from sink_connect/sink_disconnect
Profile .connect and .disconnect no longer use callbacks so there is no
reason to keep these parameters around.
Luiz Augusto von Dentz [Wed, 19 Dec 2012 11:26:59 +0000 (13:26 +0200)]
audio: Fix not cleaning up player when device is removed
All profile connections need to be reported to the core otherwise it
won't be able to disconnect them properly.
Luiz Augusto von Dentz [Wed, 19 Dec 2012 11:26:58 +0000 (13:26 +0200)]
core: Print profile name in device_profile_connected
Johan Hedberg [Wed, 19 Dec 2012 09:20:10 +0000 (11:20 +0200)]
test: Update test-discovery to cope with removed DevicesFound signal
This patch updates test-discovery to reply only on ObjectManager and
standard D-Bus properties signals for device discovery.
Johan Hedberg [Wed, 19 Dec 2012 08:39:37 +0000 (10:39 +0200)]
audio: Make media_player_get_position private to player.c
Johan Hedberg [Wed, 19 Dec 2012 08:38:01 +0000 (10:38 +0200)]
core: Remove unused device_get_addr_type function
Johan Hedberg [Wed, 19 Dec 2012 08:37:14 +0000 (10:37 +0200)]
core: Access device struct internals directly in device.c
Johan Hedberg [Wed, 19 Dec 2012 08:33:38 +0000 (10:33 +0200)]
core: Remove unused textfile_caseget function
Johan Hedberg [Wed, 19 Dec 2012 08:32:41 +0000 (10:32 +0200)]
network: Remove unused bnep_kill_all_connections function
Johan Hedberg [Wed, 19 Dec 2012 08:31:54 +0000 (10:31 +0200)]
network: Remove unused bnep_service_id function
Johan Hedberg [Wed, 19 Dec 2012 08:29:18 +0000 (10:29 +0200)]
obexd: Remove unused D-Bus helper functions
Johan Hedberg [Wed, 19 Dec 2012 08:25:07 +0000 (10:25 +0200)]
obexd: Remove unused obex_server_find_driver function
Johan Hedberg [Wed, 19 Dec 2012 08:21:03 +0000 (10:21 +0200)]
core: Add serialization for removing UUIDs through mgmt
This is needed to avoid potential "busy" errors from the kernel. Adding
UUIDs already uses the same mechanism.
Johan Hedberg [Wed, 19 Dec 2012 07:42:45 +0000 (09:42 +0200)]
test: Fix obexd object path in test scripts
Anderson Lizardo [Wed, 19 Dec 2012 01:16:15 +0000 (21:16 -0400)]
core: Remove reference to old "mgmtops" name
Anderson Lizardo [Wed, 19 Dec 2012 01:16:14 +0000 (21:16 -0400)]
core: Remove bogus DBG()
mgmt_set_name() already prints the same information, and message still
refers to mgmtops.
Anderson Lizardo [Wed, 19 Dec 2012 01:16:13 +0000 (21:16 -0400)]
core: Fix trying to store NULL adapter->name
When BlueZ starts without a main.conf, adapter->name will be initially
NULL, until adapter_name_changed() is called and name is set to "BlueZ".
Before this, store_adapter_info() will try to access a NULL pointer.
Fixes this GLib error:
(bluetoothd:1721): GLib-CRITICAL **: g_key_file_set_string: assertion
`string != NULL' failed
Marcel Holtmann [Tue, 18 Dec 2012 21:00:01 +0000 (22:00 +0100)]
build: Add systemd integration for obexd
Marcel Holtmann [Tue, 18 Dec 2012 20:54:25 +0000 (21:54 +0100)]
build: Fix typo with D-Bus system service directory check
Marcel Holtmann [Tue, 18 Dec 2012 20:53:30 +0000 (21:53 +0100)]
build: Check for D-Bus session services directory
Marcel Holtmann [Tue, 18 Dec 2012 20:44:47 +0000 (21:44 +0100)]
build: Move EXTRA_DIST for systemd files into same location
Marcel Holtmann [Tue, 18 Dec 2012 20:25:56 +0000 (21:25 +0100)]
test: Update to new org.bluez.obex service name
Marcel Holtmann [Tue, 18 Dec 2012 20:25:47 +0000 (21:25 +0100)]
doc: Service name changed from org.bluez.obex.client to org.bluez.obex
Marcel Holtmann [Tue, 18 Dec 2012 20:22:07 +0000 (21:22 +0100)]
obexd: Use /org/bluez/obex as root path
Marcel Holtmann [Tue, 18 Dec 2012 20:19:18 +0000 (21:19 +0100)]
obexd: Use a single bus name for obexd and obex-client
Marcel Holtmann [Tue, 18 Dec 2012 20:18:19 +0000 (21:18 +0100)]
build: Use single section for all obexd sources
Marcel Holtmann [Tue, 18 Dec 2012 19:46:18 +0000 (20:46 +0100)]
monitor: Include flow control lag feature bits
Marcel Holtmann [Tue, 18 Dec 2012 19:32:50 +0000 (20:32 +0100)]
monitor: Highlight unknown feature bits and event masks
Marcel Holtmann [Tue, 18 Dec 2012 16:42:10 +0000 (17:42 +0100)]
client: Print message when pairing attempt is in progress
Marcel Holtmann [Tue, 18 Dec 2012 16:39:56 +0000 (17:39 +0100)]
client: Add support for providing agent capability
Marcel Holtmann [Tue, 18 Dec 2012 16:38:00 +0000 (17:38 +0100)]
core: Check for valid agent capability
Marcel Holtmann [Tue, 18 Dec 2012 16:23:19 +0000 (17:23 +0100)]
client: Add support for request authorization callbacks
Marcel Holtmann [Tue, 18 Dec 2012 16:06:12 +0000 (17:06 +0100)]
client: Handle legacy pairing and input of PIN codes
Johan Hedberg [Tue, 18 Dec 2012 16:05:43 +0000 (18:05 +0200)]
core: Only force SSP and LE setting through the initial read_info
Johan Hedberg [Tue, 18 Dec 2012 15:54:03 +0000 (17:54 +0200)]
obexd: Merge obex-client into obexd daemon
Mikel Astiz [Thu, 8 Nov 2012 14:30:13 +0000 (15:30 +0100)]
adapter: Remove DevicesFound signal
ObjectManager reports the D-Bus interfaces of all known devices,
including the ones detected during discovery. Therefore this signal is
not required.
Johan Hedberg [Tue, 18 Dec 2012 15:25:34 +0000 (17:25 +0200)]
core: Remove DisablePlugins main.conf entry
The plugins can still be disabled through the -P command line switch.
Andre Guedes [Tue, 18 Dec 2012 14:41:21 +0000 (11:41 -0300)]
hog: Fix removing HoG device bug
We should remove only hog_devices from the given btd_device.
Otherwise, all hog_devices will be removed.
Andre Guedes [Tue, 18 Dec 2012 14:41:20 +0000 (11:41 -0300)]
hog: Refactor hog init and exit functions
This patch simply renames hog_manager_init and hog_manager_exit
functions to hog_init and hog_exit.
Andre Guedes [Tue, 18 Dec 2012 14:41:19 +0000 (11:41 -0300)]
hog: Merge hog_device.h code into hog_device.c
This patch merges hog_device.h code into hog_device.c and removes
hog_device.h file. As long as hog_manager.c was merged into hog_
device.c, there is no need to have a header for hog_device.
This patch also adds the static modifier to functions which are
now used only in hog_device.c.
Andre Guedes [Tue, 18 Dec 2012 14:41:18 +0000 (11:41 -0300)]
hog: Merge hog_manager.c code into hog_device.c
This patch merges hog_manager.c code into hog_device.c and removes
hog_manager.c file. hog_manager.c is a very small file, so there is
no need to keep it separated.
Johan Hedberg [Tue, 18 Dec 2012 15:16:55 +0000 (17:16 +0200)]
test: Update simple-agent to match latest agent API
Johan Hedberg [Tue, 18 Dec 2012 15:16:12 +0000 (17:16 +0200)]
core: Update agent manager implementation to match API doc
Johan Hedberg [Tue, 18 Dec 2012 14:54:42 +0000 (16:54 +0200)]
doc: Add object path parameter to RequestDefaultAgent
Marcel Holtmann [Tue, 18 Dec 2012 14:34:29 +0000 (15:34 +0100)]
core: Turn some messages into debugs and fix warning
Marcel Holtmann [Tue, 18 Dec 2012 14:02:47 +0000 (15:02 +0100)]
client: Remove broken helper for message blocks
Marcel Holtmann [Tue, 18 Dec 2012 14:02:03 +0000 (15:02 +0100)]
client: Always print messages with checking readline state
Marcel Holtmann [Tue, 18 Dec 2012 13:52:56 +0000 (14:52 +0100)]
client: Check for RL_STATE_DONE before trying to print
Johan Hedberg [Tue, 18 Dec 2012 14:03:40 +0000 (16:03 +0200)]
obexd: Add client prefix to client manager functions
This is in preparation of merging the client into the daemon.
Johan Hedberg [Tue, 18 Dec 2012 12:27:19 +0000 (14:27 +0200)]
core: Fix memory leak of keys in check_config()
Johan Hedberg [Tue, 18 Dec 2012 12:09:46 +0000 (14:09 +0200)]
audio: Don't print an error for missing conf file
Johan Hedberg [Tue, 18 Dec 2012 12:09:37 +0000 (14:09 +0200)]
input: Don't print an error for missing conf file
Johan Hedberg [Tue, 18 Dec 2012 12:09:26 +0000 (14:09 +0200)]
proximity: Don't print an error for missing conf file
Johan Hedberg [Tue, 18 Dec 2012 12:09:12 +0000 (14:09 +0200)]
core: Don't print an error for missign main.conf file
Johan Hedberg [Tue, 18 Dec 2012 11:58:05 +0000 (13:58 +0200)]
core: Add checking for unknown main.conf entries
Szymon Janc [Tue, 18 Dec 2012 11:10:58 +0000 (12:10 +0100)]
adapter: Use int for storing signed value
char can be signed or unsigned depending on architecture. This fix
following compilation error on ARM:
src/adapter.c: In function 'convert_primaries_entry`:
src/adapter:2272:2: error: comparison is always true due to limited
range of data type [-Werror=type-limits]
cc1: all warnings being treated as errors
make[1]: *** [src/adapter.o] Error 1
Szymon Janc [Tue, 18 Dec 2012 11:10:57 +0000 (12:10 +0100)]
hcidump: Fix compilation errors due to unaligned memory access
Use bt_get_le* helper functions to access unaligned memory. This fix
number of compilation errors on ARM similar to:
CC tools/parser/hci.o
tools/parser/hci.c: In function ‘ext_inquiry_data_dump’:
tools/parser/hci.c:797:10 error: cast increases required alignment of
target type [-Werror=cast-align]
tools/parser/hci.c:797:10: error: cast increases required alignment of
target type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[1]: *** [tools/parser/hci.o] Error 1
Johan Hedberg [Tue, 18 Dec 2012 10:37:01 +0000 (12:37 +0200)]
doc: Clarify ConnectProfile UUID parameter
Johan Hedberg [Tue, 18 Dec 2012 10:34:37 +0000 (12:34 +0200)]
doc: Bump AVRCP version from 1.4 to 1.5 in supported-features
Johan Hedberg [Tue, 18 Dec 2012 10:33:25 +0000 (12:33 +0200)]
doc: Add Cycling Speed to supported-features document
Johan Hedberg [Tue, 18 Dec 2012 10:28:09 +0000 (12:28 +0200)]
core: Remove DisconnectRequested signal
This signal is not needed anymore thanks to the RequestDisconnect
callback of the Profile interface.