OSDN Git Service
Johan Hedberg [Fri, 14 Mar 2014 10:51:12 +0000 (12:51 +0200)]
emulator/bthost: Set advertising parameters before enabling advertising
Johan Hedberg [Fri, 14 Mar 2014 10:42:14 +0000 (12:42 +0200)]
emulator/btdev: Fix checking for non-connectable advertising
Johan Hedberg [Fri, 14 Mar 2014 10:19:07 +0000 (12:19 +0200)]
core: Update bearer timestamp also when connecting
This way we avoid a bit strange behavior when we've previously always
been acceptors for a connection (in which case the last seen timestamp
would never have been touched).
Johan Hedberg [Fri, 14 Mar 2014 08:53:04 +0000 (10:53 +0200)]
core: Fix bearer type selection
Johan Hedberg [Fri, 14 Mar 2014 07:44:37 +0000 (09:44 +0200)]
emulator/btdev: Do correct matching for direct advertising when connecting
Johan Hedberg [Fri, 14 Mar 2014 07:36:25 +0000 (09:36 +0200)]
emulator/btdev: Add proper matching for direct advertising
Johan Hedberg [Fri, 14 Mar 2014 07:35:06 +0000 (09:35 +0200)]
emulator/btdev: Add helper for selecting advertising address
Johan Hedberg [Fri, 14 Mar 2014 07:34:29 +0000 (09:34 +0200)]
emulator/btdev: Track direct advertising address
Johan Hedberg [Fri, 14 Mar 2014 07:32:58 +0000 (09:32 +0200)]
emulator/btdev: Track LE scanning own address type
Jakub Tyszkowski [Thu, 13 Mar 2014 18:46:11 +0000 (19:46 +0100)]
android/bluetooth: Move start discovery function up in the file
This is to avoid unneeded code move in further paatches.
Jakub Tyszkowski [Thu, 13 Mar 2014 18:46:10 +0000 (19:46 +0100)]
android/bluetooth: Refactor start/stop discovery
Pass discovery type to discovery stop/start routine so it can be used
also for LE only scan.
Jakub Tyszkowski [Thu, 13 Mar 2014 18:46:09 +0000 (19:46 +0100)]
android/gatt: Change name of match functions
Grzegorz Kolodziejczyk [Thu, 13 Mar 2014 18:46:08 +0000 (19:46 +0100)]
android/gatt: Use queue and stdlib instead of GLib where possible
This patch changes using GLib to queues and stdlib operators.
Szymon Janc [Thu, 13 Mar 2014 22:24:51 +0000 (23:24 +0100)]
android/handsfree: Cleanup info and error messages
Szymon Janc [Thu, 13 Mar 2014 22:24:13 +0000 (23:24 +0100)]
android/handsfree: Simplify condition in connect_audio
Szymon Janc [Thu, 13 Mar 2014 22:06:07 +0000 (23:06 +0100)]
android/handsfree: Fix some style issues
Szymon Janc [Thu, 13 Mar 2014 22:02:48 +0000 (23:02 +0100)]
android/handsfree: Split members in device for better readability
Marcin Kraglak [Thu, 13 Mar 2014 14:04:37 +0000 (15:04 +0100)]
android/handsfree: Add handling of AT+BCS and AT+BCC
It will service codec nogotiation and establish SCO connection with
negotiated parameters. If SCO establishment failed, try to connect
with mandatory codec CVSD.
Marcin Kraglak [Thu, 13 Mar 2014 14:04:36 +0000 (15:04 +0100)]
android/handsfree: Move connect_sco() to more appropriate place
Move connect_sco as it will be used in at_cmd_bcc()
Marcin Kraglak [Thu, 13 Mar 2014 14:04:35 +0000 (15:04 +0100)]
android/handsfree: Add initial implementation of Codec Negotiation feature
It will handle AT+BAC command and update list of available codecs.
It will check if mandatory codec CVSD is present on list and, if
Wide Band Speech supported, MSBC codec is on next place. Other codecs
can be also used after extending codecs_defaults array.
It will also handle incorrect SLC establishment, when HF supports
Codec Negotiation, but didn't send AT+BAC.
Andrzej Kaczmarek [Thu, 13 Mar 2014 10:05:15 +0000 (11:05 +0100)]
android: Adjust uinput permissions
We need to make sure /dev/uinput accessible for BlueZ in order for
AVRCP to work properly. On some devices (e.g. Nexus 7 a.k.a. flo)
permissions are set by default to 'system net_bt_stack' as thus we
need to change group to 'bluetooth'.
Szymon Janc [Wed, 12 Mar 2014 09:35:45 +0000 (10:35 +0100)]
android/handsfree: Fix code comment
Tt is RING, not +RING.
Luiz Augusto von Dentz [Thu, 13 Mar 2014 13:28:29 +0000 (15:28 +0200)]
doc/media-api: Include possible errors
Luiz Augusto von Dentz [Thu, 13 Mar 2014 13:26:24 +0000 (15:26 +0200)]
audio/player: Use proper errors instead of using .Failed
Johan Hedberg [Thu, 13 Mar 2014 15:00:19 +0000 (17:00 +0200)]
core: Use device_attach_attrib for attrib-server
Johan Hedberg [Thu, 13 Mar 2014 14:58:51 +0000 (16:58 +0200)]
core: Refactor calls to attrib_channel_attach
This patch creates a new public device_attach_attrib function to deal
with attrib_channel_attach. This is needed so we get a central place
which can also be used by attrib-server.c (which the next patch deals
with).
Johan Hedberg [Thu, 13 Mar 2014 14:57:07 +0000 (16:57 +0200)]
core: Fix storing device info in peripheral mode
In peripheral mode the only proper trigger we have is the completion of
(reverse) service discovery. This was already covered for the BR/EDR
discovery completion so this patch moves the call to a common place used
by both LE and BR/EDR.
Johan Hedberg [Thu, 13 Mar 2014 14:55:30 +0000 (16:55 +0200)]
core: Fix bonding complete detection in peripheral mode
When we're in peripheral mode we're not guaranteed to get a master LTK,
so use any LTK as a trigger to call bonding_complete. Multiple calls (in
case of both slave and master LTK) are safely handled by the function.
Luiz Augusto von Dentz [Thu, 13 Mar 2014 14:17:42 +0000 (16:17 +0200)]
core: Fix adding BR/EDR devices to auto connect list
This can happen with devices that export ATT profiles as SDP records
such BlackBerry phones causing drivers to get probed which then call
btd_device_add_attio_callback to get notified once connected.
Lukasz Rymanowski [Sun, 9 Mar 2014 23:06:37 +0000 (00:06 +0100)]
android: Send confirm name request with mgmt_send
This patch improves handling stop disvocery in scenarios when there is a big
inflow of device found events. In such case, number of confirm
name request might block mgmt queses and make stop discovery stack in the queue.
Even we cancel previous confirm name request, there is still possibility that
new incoming device found events produce confirm name request which will
might block stop discovery.
Lukasz Rymanowski [Sun, 9 Mar 2014 23:06:36 +0000 (00:06 +0100)]
android: Cancel all pending confirm name before stop discovery
If user wants to cancel discovery we should remove all the confirm name
requests from mgmt queues.
It is in order to make sure that stop discovery have a free way to
reach kernel.
This improves scenario when there is a big inflow of device found events and
mgmt queues become full of confirm name requests. In such case stop discovery
might stack in the queue.
Lukasz Rymanowski [Sun, 9 Mar 2014 23:06:35 +0000 (00:06 +0100)]
android: Add tracking for pending confirm name command
Sebastian Chlad [Wed, 12 Mar 2014 13:12:29 +0000 (14:12 +0100)]
android/pts: Add HFP PTS tests results
Adding PTS test results for HFP 1.6
Sebastian Chlad [Wed, 12 Mar 2014 13:12:28 +0000 (14:12 +0100)]
android/pixit: Set phone number type
Phone number type should be set accordingly.
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:32 +0000 (16:40 +0200)]
unit/avrcp: Add /TP/MPS/BV-02-C test
Test verifies that SetAddressedPlayer response issued by the Target.
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:31 +0000 (16:40 +0200)]
unit/avrcp: Add /TP/MPS/BV-01-C test
Test verifies that SetAddressedPlayer command issued by Controller.
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:30 +0000 (16:40 +0200)]
android/avrcp: Add avrcp_set_addressed_player() function
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:29 +0000 (16:40 +0200)]
unit/avrcp: Add /TP/BGN/BV-02-I TG test
Test verifies that the Target responds to Prev Group command.
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:28 +0000 (16:40 +0200)]
unit/avrcp: Add /TP/BGN/BV-01-I TG test
Test verifies that the Target responds to Next Group command.
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:27 +0000 (16:40 +0200)]
unit/avrcp: Add /TP/BGN/BV-02-I test
Test verifies that the Controller can send Prev Group command to the
Target.
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:26 +0000 (16:40 +0200)]
unit/avrcp: Add /TP/BGN/BV-01-I test
Test verifies that the Controller can send Next Group command to the
Target.
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:25 +0000 (16:40 +0200)]
android/avrcp: Add avrcp_send_passthrough function
This function allows to send AVRCP vendor unique commands.
Andrei Emeltchenko [Wed, 12 Mar 2014 14:40:24 +0000 (16:40 +0200)]
android/avctp: Add parameters to avctp passthrough send
This allows to use vendor unique commands
Grzegorz Kolodziejczyk [Wed, 12 Mar 2014 09:27:38 +0000 (10:27 +0100)]
android/gatt: Handle Unregister gatt client command
This adds unregister gatt client app command handling.
Grzegorz Kolodziejczyk [Wed, 12 Mar 2014 09:27:37 +0000 (10:27 +0100)]
android/gatt: Handle Register gatt client command
This adds register gatt client app command handling.
Szymon Janc [Tue, 11 Mar 2014 21:46:24 +0000 (22:46 +0100)]
android/bluetooth: Set missing settings before loading linkkeys
This makes sure all settings are set before adapter ready callback is
called. Limit number of notifications send when settings are applied.
Szymon Janc [Tue, 11 Mar 2014 21:38:00 +0000 (22:38 +0100)]
android/system-emulator: Enable bluetoothd debug logs
Szymon Janc [Tue, 11 Mar 2014 21:36:17 +0000 (22:36 +0100)]
android/tester: Enable bluetoothd debug logs
Grzegorz Kolodziejczyk [Tue, 11 Mar 2014 14:25:04 +0000 (15:25 +0100)]
android/tester: Fix TOD test cases to support dual mode
This modifies test cases to support dual mode type of device.
Grzegorz Kolodziejczyk [Tue, 11 Mar 2014 14:25:03 +0000 (15:25 +0100)]
android: Enable LE if controller supports it
Grzegorz Kolodziejczyk [Tue, 11 Mar 2014 14:25:02 +0000 (15:25 +0100)]
android/tester: Add support for bredr hciemu devices
Current test cases works on bredrle hciemu adapter types. Test cases
with device scan do LE scan first (for 5 sec - kernel specific) then
change scan to bredr devices as hciemu device is. To avoid timeout
(within 3 secs) - fail of test cases, hciemu adapter should be bredr.
Szymon Janc [Mon, 10 Mar 2014 23:10:00 +0000 (00:10 +0100)]
doc: Update test-hfp coverage statistics
Szymon Janc [Mon, 10 Mar 2014 23:05:11 +0000 (00:05 +0100)]
shared/hfp: Don't update offset if string parsing failed
Szymon Janc [Mon, 10 Mar 2014 23:00:48 +0000 (00:00 +0100)]
shared/hfp: Use unsigned int for offset
Szymon Janc [Mon, 10 Mar 2014 22:57:11 +0000 (23:57 +0100)]
shared/hfp: Fix not NULL terminating parsed strings
If there were not enough space in output buffer
hfp_gw_result_get_string() and hfp_gw_result_get_unquoted_string()
wcould return true, but resulting string would not be NULL terminated.
Szymon Janc [Mon, 10 Mar 2014 22:45:21 +0000 (23:45 +0100)]
unit/test-hfp: Add initial tests for getting quoted string
Szymon Janc [Mon, 10 Mar 2014 22:37:30 +0000 (23:37 +0100)]
unit/test-hfp: Add initial tests for getting unquoted string
Szymon Janc [Mon, 10 Mar 2014 21:32:42 +0000 (22:32 +0100)]
unit/test-hfp: Add ability to pass custom result handler to test
Marcel Holtmann [Tue, 11 Mar 2014 17:00:49 +0000 (10:00 -0700)]
Release 5.16
Marcel Holtmann [Tue, 11 Mar 2014 16:43:11 +0000 (09:43 -0700)]
android: Disable SBC_HIGH_PRECISION for now
Since the SBC_HIGH_PRECISION support in SBC library is not optimized
for any platform, disable it for now.
Marcel Holtmann [Tue, 11 Mar 2014 16:35:31 +0000 (09:35 -0700)]
build: Update library version
Marcel Holtmann [Tue, 11 Mar 2014 16:32:13 +0000 (09:32 -0700)]
lib: Update company identifiers
Marcel Holtmann [Tue, 11 Mar 2014 16:04:42 +0000 (09:04 -0700)]
android: Add extra empty line for new section
Szymon Janc [Tue, 11 Mar 2014 15:54:01 +0000 (16:54 +0100)]
android/README: Add section about recommended Android patches
Szymon Janc [Tue, 11 Mar 2014 15:11:29 +0000 (16:11 +0100)]
android/handsfree: Fix sending +CLCC
Phone number can be present for all call states in CLCC response.
Also phone number should be quoted string.
Szymon Janc [Tue, 11 Mar 2014 10:43:21 +0000 (11:43 +0100)]
android/handsfree: Verify if phone number is send as string over IPC
Szymon Janc [Tue, 11 Mar 2014 09:25:05 +0000 (10:25 +0100)]
android/handsfree: Add support for AT+CCWA command
Szymon Janc [Tue, 11 Mar 2014 14:52:20 +0000 (15:52 +0100)]
android/handsfree: Fix sending number without terminating NULL over IPC
Luiz Augusto von Dentz [Tue, 11 Mar 2014 14:25:04 +0000 (16:25 +0200)]
unit/test-avrcp: Fix code style
Andrei Emeltchenko [Tue, 11 Mar 2014 13:05:49 +0000 (15:05 +0200)]
unit/avrcp: Add /TP/INV/BI-01-C test
Test verifies that AVRCP_STATUS_INVALID_COMMAND returned when received
command with Invalid PDU ID.
Andrei Emeltchenko [Tue, 11 Mar 2014 13:05:48 +0000 (15:05 +0200)]
unit/avrcp: Add /TP/NFY/BI-01-C test
Test verifies that Target returns error on register for invalid event.
Andrei Emeltchenko [Tue, 11 Mar 2014 13:05:47 +0000 (15:05 +0200)]
unit/avrcp: Add /TP/NFY/BV-08-C test
Test verifies that Target issued Track Changed INTERIM response when
the track is SELECTED.
Andrei Emeltchenko [Tue, 11 Mar 2014 13:05:46 +0000 (15:05 +0200)]
unit/avrcp: Add /TP/NFY/BV-05-C test.
Test verifies Register notification - Track Changed - Track Playing.
Andrei Emeltchenko [Tue, 11 Mar 2014 13:05:45 +0000 (15:05 +0200)]
unit/avrcp: Pass context to control handlers
Szymon Janc [Tue, 11 Mar 2014 13:13:57 +0000 (14:13 +0100)]
android/handsfree: Fix unsolicited RING alert
Johan Hedberg [Tue, 11 Mar 2014 12:27:42 +0000 (14:27 +0200)]
emulator/btdev: Fix using correct address in advertising reports
Johan Hedberg [Tue, 11 Mar 2014 12:25:38 +0000 (14:25 +0200)]
emulator/btdev: Add support for sending LE Scan Response events
Johan Hedberg [Tue, 11 Mar 2014 12:16:31 +0000 (14:16 +0200)]
emulator/btdev: Fix LE adv report types to match adv parameters
Johan Hedberg [Tue, 11 Mar 2014 12:10:49 +0000 (14:10 +0200)]
emulator/btdev: Store LE adv params for later use
Johan Hedberg [Tue, 11 Mar 2014 11:35:12 +0000 (13:35 +0200)]
emulator/btdev: Add storing of LE Scan Response Data
Johan Hedberg [Tue, 11 Mar 2014 11:32:39 +0000 (13:32 +0200)]
emulator/btdev: Store LE Scan type for later use
Grzegorz Kolodziejczyk [Tue, 11 Mar 2014 10:09:32 +0000 (11:09 +0100)]
emulator/btdev: Add support for LE set scan response command
This adds support for btdev LE set scan response command.
Marcin Kraglak [Tue, 11 Mar 2014 10:16:39 +0000 (11:16 +0100)]
android/handsfree: Fix HF features bitmasks
Add missing Remote volume control feature.
Petri Gynther [Fri, 7 Mar 2014 22:55:45 +0000 (14:55 -0800)]
bdaddr: Remove *_CP_SIZE defines
Remove *_CP_SIZE defines and use sizeof(cp) instead.
Petri Gynther [Fri, 7 Mar 2014 22:28:07 +0000 (14:28 -0800)]
bdaddr: Add Marvell support
Johan Hedberg [Mon, 10 Mar 2014 20:07:04 +0000 (22:07 +0200)]
core: Ignore unknown LTK types
Johan Hedberg [Mon, 10 Mar 2014 11:29:00 +0000 (13:29 +0200)]
core: Add support for storing CSRKs
Marcel Holtmann [Mon, 10 Mar 2014 18:34:35 +0000 (11:34 -0700)]
android: Some minor markup changes for the README
Sebastian Chlad [Mon, 10 Mar 2014 17:08:26 +0000 (18:08 +0100)]
android/pts: AVRCP PTS tests results
Adding PTS tests results, mainly for Volume Level Handling section.
Szymon Janc [Mon, 10 Mar 2014 16:37:17 +0000 (17:37 +0100)]
android/handsfree: Fix not removing RING timer on disconnect
Szymon Janc [Mon, 10 Mar 2014 15:12:05 +0000 (16:12 +0100)]
android/handsfree: Fix response for AT+CHLD=?
Szymon Janc [Mon, 10 Mar 2014 14:38:02 +0000 (15:38 +0100)]
android/handsfree: Fix +BRSF and +CHLD responses
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:53 +0000 (11:09 +0200)]
doc: Update test coverage document
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:52 +0000 (11:09 +0200)]
unit/avrcp: Add /TP/NFY/BV-04-C test
Test verifies that Target responds to Register notification - Track
Changed - No Selected Track.
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:51 +0000 (11:09 +0200)]
unit/avrcp: Add /TP/NFY/BV-03-C test
Test verifies that Target responds Register notification command with
parameter AVRCP_EVENT_SETTINGS_CHANGED.
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:50 +0000 (11:09 +0200)]
unit/avrcp: Add /TP/NFY/BV-02-C test
Test verifies that Target responds to Register notification command.
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:49 +0000 (11:09 +0200)]
unit/avrcp: Add /TP/NFY/BV-01-C test
Test verifies that Register notification command is issued by
Controller.
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:48 +0000 (11:09 +0200)]
unit/avrcp: Add /TP/MDI/BV-05-C test
Test verifies that Target responds to Get element attributes cmd.
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:47 +0000 (11:09 +0200)]
unit/avrcp: Add /TP/MDI/BV-04-C test
Test verifies Get element attributes responded by Target.
Andrei Emeltchenko [Mon, 10 Mar 2014 09:09:46 +0000 (11:09 +0200)]
unit/avrcp: Add /TP/MDI/BV-03-C test
Test verifies that Get element attributes issued correctly.