OSDN Git Service
Matthew Xie [Wed, 15 Oct 2014 23:39:49 +0000 (23:39 +0000)]
am
f777d24c: am
595bcb4c: (-s ours) DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2
* commit '
f777d24c24b3c1ff309151cf2bc21e98559cbf56':
DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2
Matthew Xie [Wed, 15 Oct 2014 23:15:10 +0000 (23:15 +0000)]
am
4a35476c: am
98ad505f: Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag
* commit '
4a35476c4ade75b985fa46f1ab82dad92a6b0810':
Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag
Matthew Xie [Wed, 15 Oct 2014 20:09:29 +0000 (20:09 +0000)]
am
595bcb4c: (-s ours) DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2
* commit '
595bcb4c72aaa2a9a54a23b127dd5fa9842876ca':
DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2
Matthew Xie [Mon, 13 Oct 2014 20:50:29 +0000 (13:50 -0700)]
DO NOT MERGE Do not set sig_id in gerneral reject message per AVDTP SPEC 1.2
AVDTP SPEC 1.3 set sig_id in gerneral reject message. But current stack
is on AVDTP 1.2, we need set the field to be 0.
Setting sig_id would fail PTS test TP/SIG/SMG/BI-28-C
Bug:
17892440
Change-Id: I2037aae299eab15864fc7b53ada7f49c0f34b9c5
Matthew Xie [Wed, 15 Oct 2014 19:12:36 +0000 (19:12 +0000)]
am
98ad505f: Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag
* commit '
98ad505f577599870cf0ae281a5d035e2e2453f9':
Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag
Matthew Xie [Mon, 13 Oct 2014 21:50:30 +0000 (14:50 -0700)]
Increment seq before adding to packet in avdt_scb_hdl_write_req_no_frag
Bluetooth Certification Test case TP/TRA/BTR/BV-01-C for Basic
Transport Service Support fails. The failure is because the PTS
is expecting the first RTP Media Frame to have a sequence number
of 1. But metallica sends it as 0.
bug
17893538
Change-Id: Idfe7ae382c3764616dab4733cdf83b1627b8b3c9
Wei Wang [Mon, 13 Oct 2014 23:02:31 +0000 (23:02 +0000)]
Merge "Add support of advertising through standard instance.(4/4)" into lmp-sprout-dev
Andre Eisenbach [Fri, 10 Oct 2014 18:13:13 +0000 (18:13 +0000)]
Merge "Added missing A2DP priority on java alarm service" into lmp-dev
Mattias Agren [Wed, 8 Oct 2014 23:16:12 +0000 (01:16 +0200)]
Added missing A2DP priority on java alarm service
Running GKI timer engine via JAVA alarm service was causing severe
timer preemption at times which affects A2DP media task timer. This in
turn was stressing the compensation logic towards UIPC resulting in
very bursty reads of up to 40 UIPC frames at a time. This led to
instabilities on the UIPC pipe and trickled upwards in audio framework.
Inclusion of java alarm thread in A2DP high priority thread list results
in a much smoother data flow for entire A2DP data path and improved
audio quality.
Bug:
17520043
Change-Id: I7cea6ec64aa5b973b5fff767389a8827e681619e
Andre Eisenbach [Fri, 10 Oct 2014 16:11:27 +0000 (09:11 -0700)]
Revert "Unable to connect to a Motorola s705 until Bluetooth was toggled of and back on"
This reverts commit
a934f018b6c6a7eda4662a60f2f04828afc3ab77.
This patch caused various headset audio break issues and slow
reconnections on headsets like the Bose AE2W.
Based on the original bug under which this patch was merged
(b/
10648781) it is unlikely that this bug even fixed the
issue it was meant to address.
Bug:
17520043
Change-Id: I39bb9abbf5735abff25b5257425c34972287dc27
Satya Calloji [Fri, 26 Sep 2014 23:18:23 +0000 (16:18 -0700)]
Add support of advertising through standard instance.(4/4)
Handled the case of standard ADV when Multi ADV is not
supported by controller
Bug:
17641092
Change-Id: I129a7faaf027985c63197e7298dbd2507905d29f
Simon Wilson [Wed, 8 Oct 2014 17:34:06 +0000 (17:34 +0000)]
am
ba2f6d99: (-s ours) Revert "anthias:
17614185:Bluetooth: Getbuf returning invalid buffer pointer"
* commit '
ba2f6d995d058bc9e77d860d0d755e4ae6086deb':
Revert "anthias:
17614185:Bluetooth: Getbuf returning invalid buffer pointer"
Simon Wilson [Wed, 8 Oct 2014 16:42:54 +0000 (09:42 -0700)]
Revert "anthias:
17614185:Bluetooth: Getbuf returning invalid buffer pointer"
This reverts commit
c1ccb0d9854cea4b2cd09bbd57fc1e1081eb96b9.
This change looks like a likely candidate for the culprit behind
a wide range of BT issues we're seeing across many devices.
Reverting this in order to test.
Mallikarjuna GB [Tue, 7 Oct 2014 22:22:59 +0000 (22:22 +0000)]
am
46bfe63d: (-s ours) DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet
* commit '
46bfe63d383fd077e521d69321e011aff824bd39':
DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet
Maggie_Lee [Tue, 7 Oct 2014 22:22:58 +0000 (22:22 +0000)]
am
c1ccb0d9: (-s ours) anthias:
17614185:Bluetooth: Getbuf returning invalid buffer pointer
* commit '
c1ccb0d9854cea4b2cd09bbd57fc1e1081eb96b9':
anthias:
17614185:Bluetooth: Getbuf returning invalid buffer pointer
Wei Wang [Mon, 6 Oct 2014 19:16:26 +0000 (19:16 +0000)]
Merge "Fix an "array index out of bound" bug for RPA." into lmp-dev
Andre Eisenbach [Mon, 6 Oct 2014 01:28:18 +0000 (01:28 +0000)]
Merge "Raise A2DP threat priority to avoid music breaks" into lmp-dev
Satya Calloji [Wed, 24 Sep 2014 01:27:09 +0000 (18:27 -0700)]
LE: Peer device's latest RPA is not being applied
The latest discovered address is not used when reconnecting to devices
using resolvable private addresses, if RPA resolution offloadin is not
supported in the controller.
This patch also address the exception case where BT off is memseting
all control value while the IRK list is still being cleaned up.
Bug:
17187661
Change-Id: Ifeb5b8297e7eadb0e34ec1afbd41f46bdd836cf3
Author: Chaojing Sun <cjsun@broadcom.com>
Mattias Agren [Thu, 2 Oct 2014 07:43:04 +0000 (09:43 +0200)]
Raise A2DP threat priority to avoid music breaks
* Ensure all a2dp audiopath threads are configured to high
priority when actively streaming.
* For now set bt hc worker thread always to URGENT_AUDIO
until new thread api can adjust thread priority dynamically.
Bug:
17520043
Change-Id: I10e314085329278bcfcc4e8bc5ce899b03d22e2b
Mallikarjuna GB [Sun, 10 Nov 2013 08:00:25 +0000 (13:30 +0530)]
DO NOT MERGE AVRCP: Proper handling of Fragmented AVCTP packet
- AVCTP : Allocate bigger buffer for reassembly
- AVRCP : Handle getelimentattr to eliminate duplicates
and invalid attributes, this also fixes BOF.
Bug:
17669579
CRs-Fixed: 576831
Change-Id: I778c3df1386339ff8a00a755ffc9f24881b5167d
Wei Wang [Fri, 3 Oct 2014 17:58:03 +0000 (10:58 -0700)]
Fix an "array index out of bound" bug for RPA.
Also returns no more than BTM_BLE_MULTI_ADV_MAX for max advertise
instances.
Bug:
17810619
Change-Id: If655e207b641fd4cd1590ae47b28185dc9f7cbbb
Matthew Xie [Thu, 25 Sep 2014 17:29:56 +0000 (17:29 +0000)]
Merge "Remove HOGP device from background connection list" into lmp-dev
Priti Aghera [Wed, 24 Sep 2014 17:06:40 +0000 (10:06 -0700)]
Null check for irk entry
When BT is turning off btm_ble_vendor control block is cleaned up.
So irk_entry which points to the first element of irk_list is NULL
Included a null check for irk_entry to prevent stack crash.
Bug
17399097
Change-Id: Ib129f7dd06f9db61cc54257aa4a563fe2c9f41f2
Maggie_Lee [Wed, 24 Sep 2014 00:17:02 +0000 (17:17 -0700)]
anthias:
17614185:Bluetooth: Getbuf returning invalid buffer pointer
b/
17623865
Getbuff is checking for the pool which can accommodate
requested size, but it changing the pool with a restricted
check and not checking for the free memory size in that pool.
Added a check to avoid return the wrong pool free buf pointer
and avoid gki get_buffer overflow.
Change-Id: I142870c989fc37f49c2d9b411d5eddbfba59bd9d
Matthew Xie [Tue, 23 Sep 2014 06:05:59 +0000 (06:05 +0000)]
Merge "Enable flow control when tx buffer is full and peer stuck in receiving" into lmp-dev
Nitin Arora [Fri, 6 Dec 2013 05:11:26 +0000 (21:11 -0800)]
Remove HOGP device from background connection list
This adds logic to remove the device from whitelist when user unpairs or
disconnects device.
Bug:
17318494
Change-Id: I43c06dd16c665f9ce2e71a0e031c4f0f11a4012e
Satya Calloji [Wed, 17 Sep 2014 05:44:43 +0000 (22:44 -0700)]
All 00 mac address with advt
Read the controller features before local name read
Bug
17505545
Change-Id: I7995a8c714ebec6e1751af5371edfd29c74b12ea
Zhenye Zhu [Wed, 17 Sep 2014 23:59:52 +0000 (16:59 -0700)]
Enable flow control when tx buffer is full and
peer stuck in receiving
bug
17525124
Change-Id:Ic67e9c0aab7e64afc9679733e6c3de10a28078d7
Chris Manton [Mon, 15 Sep 2014 15:48:35 +0000 (08:48 -0700)]
Check userial fd before reading
The userial read loop uses one global flag
to condition the serial port read and a
second global file descriptor variable that
may change from another thread underneath it.
Check the validity of the serial port file
descriptor by making a copy immediately before
the read and only proceeding if it's a valid fd.
bug:
17552690
Change-Id: Iaaf1b8476fdee462ddc178d2a31ef8f55cb33e52
Andre Eisenbach [Wed, 17 Sep 2014 23:55:58 +0000 (23:55 +0000)]
Merge "Add ability to preserve existing snoop log" into lmp-dev
Andre Eisenbach [Wed, 17 Sep 2014 23:40:53 +0000 (16:40 -0700)]
Add ability to preserve existing snoop log
Currently a stack restart or device reboot will overwrite existing snoop
logs when the stack restarts. This patch adds a new configuration file
parameter "BtSnoopSaveLog" that, if enabled, will cause an existing
snoop log to be renamed to "<snoop_file_name>.last" before a new snoop
log is created.
This will allow for easier debugging of crashes that involve a reboot or
stack restart.
Change-Id: I4f56204d31a6bf2e96058938e8616eb6dee7360b
Matthew Xie [Wed, 17 Sep 2014 20:50:55 +0000 (20:50 +0000)]
Merge "For pairing over le transport, set default device type and address type" into lmp-dev
Matthew Xie [Tue, 16 Sep 2014 07:55:03 +0000 (00:55 -0700)]
For pairing over le transport, set default device type and address type
When the LE pairing is initiated over NFC, skipping device scan, there is
no device type or address type info. We set the default as le and public.
bug
17497942
Change-Id: I3dcbb9029ead6ea0f7c48e62f46c8a055f1bc293
Andre Eisenbach [Wed, 17 Sep 2014 15:45:56 +0000 (08:45 -0700)]
Document LE IO capabilities and use BR/EDR constant for LE
This removes a hack to set LE IO capabilities and reuses the existing
constant defined in bt_target.h.
Change-Id: I3c97629bd092ac78bd673afc29458775b2bce836
Priti Aghera [Wed, 10 Sep 2014 18:42:10 +0000 (11:42 -0700)]
host cannot recover when connection exceed controller capability
Host can not initiate new connection when exceed controller capability
and connection then drop back to lower than the max. Controller will not
generate connection complete event when initaite LE ll connection request
failed, and host is dead loop waiting for the connection complete
then can not recover. Included a connection complete callback with failure
status when controller capability is exceeded.
bug
17326529
Change-Id: I9b863578dc868456e092f1d060e50d2c9fdcb441
Prerepa Viswanadham [Thu, 11 Sep 2014 00:08:11 +0000 (17:08 -0700)]
Avoid premature LE connection notifaction to app
To avoid premature connection notification to app, always wait for
LE read remote feature complete with success before the connection
event is sent to application.
This patch also deprecates the BTA_SKIP_BLE_READ_REMOTE_FEAT flag.
Since the remote feature request is now serialized and start encryption
won't be called until the connection is up, this flag is no longer
necessary and interferes with the new behaviour.
This is an extension of previous CL
Bug:
17326529
Change-Id: Icfd4c5dfdd9f89d1318ef429e132eb005abb1f64
Wei Wang [Fri, 12 Sep 2014 22:15:26 +0000 (22:15 +0000)]
Merge "Fix issues with manufacturer ID prefix scan filter." into lmp-dev
Wei Wang [Fri, 12 Sep 2014 22:14:16 +0000 (22:14 +0000)]
Merge "Fix ADV data exceeding max adv packet length" into lmp-dev
Andre Eisenbach [Thu, 11 Sep 2014 21:09:40 +0000 (14:09 -0700)]
LE: Use random address when initiating background connections
When re-connecting to HID devices, the first reconnection immediately
after a reboot incorrectly uses the static, public Bluetooth address of
the phone/tablet as the own address.
This patch fixes the Bluetooth initialization sequence to make sure
privacy is enabled before any Bluetooth services are started.
Bug:
16952502
Change-Id: I43e595ddc7e347fab972b059382b512fb03e9459
Satya Calloji [Sat, 6 Sep 2014 00:16:33 +0000 (17:16 -0700)]
Fix ADV data exceeding max adv packet length
Fixed the 128-bit UUID handling during setting up
of adv data/scan response
Bug:
16799331
Change-Id: I81e4ab0a80a5c1b7abf012dccc29eead54229b21
Andre Eisenbach [Wed, 10 Sep 2014 17:28:15 +0000 (17:28 +0000)]
Merge "LE link_xmit_quota is not correctly allocated" into lmp-dev
Andre Eisenbach [Wed, 10 Sep 2014 17:27:47 +0000 (17:27 +0000)]
Merge "SMP doesn't detect the event of local processing taking more than SMP timeout (30 sec)" into lmp-dev
Mudumba Ananth [Fri, 11 Jul 2014 07:05:54 +0000 (00:05 -0700)]
LE link_xmit_quota is not correctly allocated
LE link transmit quota should be calculated based on the total LE
buffer available and number of LE link that shares the buffer. Currently
it's been calculated based on the ACL buffer number and total physical
links(BR and LE), that cause the LE link transmit quota not being
done right.
Modify the link transmit quota allocation, and keep track of LE link
seperately, also keep track of round robin scheme for LE links
solving the problem.
Bug:
16560957
Change-Id: I70f91827b96f2c10421e91311ea34cc81a5ef4b8
Andre Eisenbach [Tue, 9 Sep 2014 22:34:51 +0000 (22:34 +0000)]
Merge "LE: Remove stored link key if encryption fails due to missing key (remote)" into lmp-dev
Andre Eisenbach [Tue, 9 Sep 2014 19:56:07 +0000 (19:56 +0000)]
Merge "If L2CA_ConnectFixedChnl fails, free L2CAP lcb for the attempted connection" into lmp-dev
Priti Aghera [Tue, 9 Sep 2014 18:30:25 +0000 (11:30 -0700)]
Fixed SMP pairing failure due to race condition
SMP pairing failure if remote send security request before master
side receive LE link connection callback. The racing condition will
cause master side bonding failure upon ignoring remote security request
and flush out all SMP information. Retain SMP information when a
locally initiated pairing is in process solves the problem.
Bug:
17412687
Change-Id: Ia2256160c866413f93c6f49e5db82b4c6489d9d2
Mudumba Ananth [Fri, 4 Jul 2014 10:15:37 +0000 (03:15 -0700)]
SMP doesn't detect the event of local processing taking more than SMP timeout (30 sec)
Bug:
16560957
Change-Id: I1113f367187a30e01fa3d5d2a5ccb0243580e06b
Mudumba Ananth [Fri, 4 Jul 2014 06:14:43 +0000 (23:14 -0700)]
If L2CA_ConnectFixedChnl fails, free L2CAP lcb for the attempted connection
Bug:
16560957
Change-Id: I91fd2cc90435d0b899474b555b4a4ab00306c156
Andre Eisenbach [Tue, 9 Sep 2014 01:48:20 +0000 (01:48 +0000)]
Merge "LE: Disable background connections if RPA offloading is not supported" into lmp-dev
Andre Eisenbach [Mon, 18 Aug 2014 18:20:06 +0000 (11:20 -0700)]
LE: Disable background connections if RPA offloading is not supported
If the local device does not support RPA offloading, background
connections to a resolvable random address will not work. Added callback
to indicate to the application writer that the requested operation is
not supported.
Bug:
16831527
Change-Id: I083d66b16704e997f52a40ea4daced3056b50ad5
Satya Calloji [Wed, 3 Sep 2014 17:01:44 +0000 (10:01 -0700)]
Fix issues with manufacturer ID prefix scan filter.
Handled the case of no manufacturer data in filter configuration
Bug:
17324059
Change-Id: I87c2c44644f808bd88f4d8681ff53e2d92815658
Priti Aghera [Fri, 29 Aug 2014 18:21:28 +0000 (11:21 -0700)]
LE: Remove stored link key if encryption fails due to missing key (remote)
Remove the link key if encryption fails due to missing key or
authentication error. When a remote device loses the bond, all
HOGP services cached should be discarded and all client configuration
descriptors needs to be re-enabled. This will ensure successful
re-connection.
Bug:
15022622
Change-Id: Ie1730830c0cbbc294e2cd579d7dca69d16cf8218
Priti Aghera [Mon, 8 Sep 2014 20:04:29 +0000 (13:04 -0700)]
Notify that link is up after LE read remote features completes
ACL link up notifaction was not sent after LE read remote features was successful.
Thus, total ACL link up count was not updated. Included a link up notification
after LE read remote features is successfull.
Bug:
17410697
Change-Id: I41fc640e76fa99354cb63d9b0b3031582178c057
Matthew Xie [Sun, 7 Sep 2014 23:08:59 +0000 (16:08 -0700)]
Make sure conn_id is valid before using it
Bug:
17401266
Change-Id: I5f36e13b3ccb327f191db33123fff98858f07c5f
Priti Aghera [Tue, 2 Sep 2014 22:41:56 +0000 (15:41 -0700)]
Avoid premature LE connection notifaction to app
To avoid premature connection notification to app, always wait for
LE read remote feature complete with success before the connection
event is sent to application.
bug
17326529
Change-Id: Id731bf02e8d5d5a68db12e0478b8eb74723eb95d
Priti Aghera [Thu, 4 Sep 2014 20:29:28 +0000 (13:29 -0700)]
Set random address before connection request
Send Set_Random_Address when privacy is enabled. If Set_Random_Address
is not sent to controller, Connection request will be sent with host
address as all 0's
Bug:
17386986
Change-Id: I59877e52bf76a56696800ff0e75487c633adde3c
Fred Quintana [Thu, 4 Sep 2014 21:43:04 +0000 (21:43 +0000)]
Merge "Add an override for entering sniff mode after idle on FTS and OTP" into lmp-dev
Andre Eisenbach [Thu, 4 Sep 2014 19:48:19 +0000 (19:48 +0000)]
Merge "Fix error in tick calculation when timer is removed" into lmp-dev
Andre Eisenbach [Thu, 4 Sep 2014 19:43:05 +0000 (12:43 -0700)]
Fix error in tick calculation when timer is removed
A previous changed introduced an error in the timer tick calculation
when removing a timer. This could lead to timers expiring sooner than
expected.
Bug:
17390240
Change-Id: Id3291aaf492a7178782e6f804dad71387c3c9382
Andre Eisenbach [Thu, 4 Sep 2014 18:11:39 +0000 (18:11 +0000)]
Merge "Limit the time PAN can occupy the BTU stack thread" into lmp-dev
Fred Quintana [Wed, 3 Sep 2014 23:23:14 +0000 (16:23 -0700)]
Add an override for entering sniff mode after idle on FTS and OTP
Change-Id: I5e3d164898563478ddf5d21197e682600f8cc33f
Andre Eisenbach [Wed, 3 Sep 2014 19:48:44 +0000 (12:48 -0700)]
Avoid race condition in SBC encoder initialization
In the A2DP media task, btif_a2dp_encoder_update() relies on the fact
that btif_a2dp_encoder_init() is called beforehand. Otherwise division
by zero errors will occur.
Since _init() called after the audio stream is opened, and _update() is
called in resonse the the audio stream being opened, a race condition
could ensue where _update() was called before open.
This patch changes the A2DP stream start sequence to ensure the SBC
encoder is initialized before the updated parameters are calculated.
Bug:
17339248
Change-Id: I6ed36a7fff0e4aa672a8866727030681eb4b3dfc
Zhenye Zhu [Tue, 26 Aug 2014 21:26:56 +0000 (14:26 -0700)]
Limit the time PAN can occupy the BTU stack thread
Also make sure tap read/write are non-blocking and PAN does not use the
complete shared buffer pool to avoid GKI buffer overruns.
Bug:
16374840
Change-Id: I6f96d1c8d2804d253d33fe37ff87275e03e55ddd
Matthew Xie [Wed, 3 Sep 2014 19:28:34 +0000 (19:28 +0000)]
Merge "Clean up fd when failed to add monitor thread" into lmp-dev
Matthew Xie [Wed, 3 Sep 2014 06:39:43 +0000 (23:39 -0700)]
Clean up fd when failed to add monitor thread
Bug:
10773872
Change-Id: I7f5b5f976ee7fa522e02b9ee4369b8f152b15cfb
Chris Manton [Wed, 3 Sep 2014 16:40:10 +0000 (09:40 -0700)]
Bluetooth: Properly initialize UART fds
If the vendor library is unable to open the UART,
the passed in file descriptor array is unchanged.
This array was uninitialized stack memory which
may miss the illegal fd check and barrel ahead
forking a userial read thread causing FD_SET
problems should the uninitialized stack memory be
bogus fds outside the processes boundaries.
Verify that the vendor library was actually opening
exactly one uart.
Bug:
16651586
Change-Id: I24e700cdb0b0f3ed107f56b94b5b535abba66806
lungtsai_lin [Mon, 25 Aug 2014 05:19:56 +0000 (13:19 +0800)]
Bluetooth: Trigger bta_dm_disable_timer_cback() again if remove ACL failed
To avoid trun off BT failed, stack have to send out BTA_DM_DISABLE_EVT
even disconnect ACL failed during turning of BT procedire. Trigger
bta_dm_disable_timer_cback() again after 1.5 sec.
Bug:
17158327
Change-Id: I096d535603faf7b302febea7cfff7a3364d4b048
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Thomas.TT_Lin [Tue, 26 Aug 2014 06:38:27 +0000 (14:38 +0800)]
Automatically determine transport to used to read RSSI.
Determine the transport to use for BTM_ReadRSSI based on the
device type of the remote device.
Bug:
16694076
Change-Id: I5a591f9d629547b63a750cefd7feb72899922595
Signed-off-by: Thomas.TT_Lin <Thomas.TT_Lin@htc.com>
Wei Wang [Fri, 29 Aug 2014 18:29:03 +0000 (18:29 +0000)]
Merge "onBatchScanStorageConfigured returns status 12" into lmp-dev
Andre Eisenbach [Fri, 29 Aug 2014 18:17:40 +0000 (18:17 +0000)]
Merge "Add LE device to inquiry DB before pairing" into lmp-dev
lungtsai_lin [Fri, 29 Aug 2014 05:47:47 +0000 (13:47 +0800)]
Add LE device to inquiry DB before pairing
There is no remote device type info wgeb OOB pairing LE
devices. Add device type according to transport.
Bug:
17156993
Change-Id: I29182ca13f801f8a7f2c3a95969d6ae23312dd7e
Satya Calloji [Thu, 21 Aug 2014 01:28:13 +0000 (18:28 -0700)]
onBatchScanStorageConfigured returns status 12
Stack changes for handling the API call sequence changes. Please refer buganizer for more details on the API sequence changes
Bug:
16850169
Change-Id: Iabef8247a290d163c1fe03cb853d12678b559664
Wei Wang [Fri, 29 Aug 2014 07:18:02 +0000 (07:18 +0000)]
Merge "GKI_exception on running longer batch scans" into lmp-dev
Satya Calloji [Fri, 22 Aug 2014 00:09:35 +0000 (17:09 -0700)]
scanWindow and interval are reversed
Corrected the byte position for HCI Command
- Set Batch Scan Param sub cmd
bug
17182636
Change-Id: I45045a6e548ed2539d5e43695725883ca1e4ed7a
Satya Calloji [Wed, 13 Aug 2014 20:57:27 +0000 (13:57 -0700)]
GKI_exception on running longer batch scans
Fixed GKI memory leak in btif_gatt_client.c file
besides few needed logic improvements which will
help in preventing leaks on exception conditions
Bug:
16829603
Change-Id: Id39267fbedeb7435cdc2c3a9eda25d4b3cd82c2f
Andre Eisenbach [Mon, 25 Aug 2014 22:26:35 +0000 (22:26 +0000)]
Merge "Protect against potential endless loop in BTU task timer handling" into lmp-dev
Matthew Xie [Mon, 25 Aug 2014 17:46:00 +0000 (17:46 +0000)]
Merge "MAP: SDP corruption" into lmp-dev
Matthew Xie [Thu, 21 Aug 2014 06:05:24 +0000 (06:05 +0000)]
Merge "use correct trace debug level" into lmp-dev
Matthew Xie [Wed, 20 Aug 2014 22:40:42 +0000 (15:40 -0700)]
use correct trace debug level
Change-Id: I997f5f9395af6c5da0403dc496317b2bad1683e6
Andre Eisenbach [Wed, 20 Aug 2014 02:10:31 +0000 (19:10 -0700)]
Protect against potential endless loop in BTU task timer handling
Fix potential bug where stale timer list entry causes endless loops in
BTU task. Also added return parameter to GKI_remove_from_timer_list() to
allow breaking out of the BTU timer task look in case the timer list
becomes corrupted.
Bug:
16897789
Change-Id: Ic70cf4346efbb063bbb952ebe7c2f7d0bf395493
Andre Eisenbach [Tue, 19 Aug 2014 23:49:55 +0000 (23:49 +0000)]
Merge "LE: Remove general/limited discoverability bits for non-connectable adv" into lmp-dev
Casper Bonde [Mon, 18 Aug 2014 10:40:53 +0000 (12:40 +0200)]
MAP: SDP corruption
Terminate strings before parsing to values.
Might be related to:
bug:
16877287
Change-Id: I0c46861229a90f37e266bd06bcba9ac78e3fc155
Signed-off-by: Casper Bonde <c.bonde@samsung.com>
Andre Eisenbach [Sun, 17 Aug 2014 19:31:13 +0000 (12:31 -0700)]
LE: Remove general/limited discoverability bits for non-connectable adv
According to the Bluetooth spec, section 9.1.1.2, "A device in the
broadcast mode shall not set the ‘LE General Discoverable Mode’
flag or the ‘LE Limited Discoverable Mode’ flag in the Flags AD Type.
This patch masks out the specific bits for non-connectable
advertisements.
Bug:
16924631
Change-Id: Ia2c0011fb31de3e4166a8bd2c2732e50aad3a610
Jeff Deng [Mon, 18 Aug 2014 18:05:56 +0000 (18:05 +0000)]
am
390d5386: (-s ours) am
e68188f8: Bluetooth: Restarting PM timer during incoming rfcomm data.
* commit '
390d53864515a53e177de08ecd3130c89adad87a':
Bluetooth: Restarting PM timer during incoming rfcomm data.
Andre Eisenbach [Sun, 17 Aug 2014 23:32:26 +0000 (16:32 -0700)]
Fix userial build error for Razor/Mako/Flo
Change-Id: Ia4ecf38de8a017f5624ab7b32f8ac398de15dee4
Andre Eisenbach [Sun, 17 Aug 2014 21:58:32 +0000 (14:58 -0700)]
LE: Fix build for devices not support BLE/Privacy
Change-Id: I00951bb14384be4fdc946410f1082963af8ad569
Andre Eisenbach [Sun, 17 Aug 2014 20:59:31 +0000 (20:59 +0000)]
Merge "Remove IRK entry from controller when LE device is unpaired" into lmp-dev
Andre Eisenbach [Sun, 17 Aug 2014 18:56:55 +0000 (18:56 +0000)]
Merge "Eliminate userial thread race condition" into lmp-dev
Fred Quintana [Sat, 16 Aug 2014 00:42:29 +0000 (00:42 +0000)]
am
212ffc1d: (-s ours) am
39277ce1: enhance the "invalid rfc slot id" log to include the caller\'s name
* commit '
212ffc1d3bda659c8da35e10a50091b08db187b6':
enhance the "invalid rfc slot id" log to include the caller's name
Jeff Deng [Sat, 16 Aug 2014 00:02:53 +0000 (00:02 +0000)]
am
e68188f8: Bluetooth: Restarting PM timer during incoming rfcomm data.
* commit '
e68188f83efc681a9a085359a473a2dab3bb94f1':
Bluetooth: Restarting PM timer during incoming rfcomm data.
Jeff Deng [Fri, 15 Aug 2014 23:00:06 +0000 (16:00 -0700)]
Bluetooth: Restarting PM timer during incoming rfcomm data.
During incoming rfcomm data, we were setting the pm mode to
active, thereby stopping timer and never restarting it again.
So it was never going to sniff , if the last packet is incoming
packet. Therefore add change to restart the PM timer during incoming
data.
Bug:
17044698
Change-Id: I4396bb2f267b12cb92a944c15609ddeaa13288ad
Nitin Arora [Wed, 30 Jul 2014 23:41:06 +0000 (16:41 -0700)]
Remove IRK entry from controller when LE device is unpaired
Change-Id: I04f3087a4fb3d715fafcfa91510a48b78d49f27f
Chris Manton [Fri, 15 Aug 2014 16:04:00 +0000 (09:04 -0700)]
Eliminate userial thread race condition
The userial thread MUST be torn down
BEFORE the hci worker thread
as the userial thread passes work to
the hci worker thread.
bug:
16708951
bug:
17008713
Change-Id: Ic744a06b81e7bba5f4d16707a7482a6b9ef437d1
Fred Quintana [Fri, 15 Aug 2014 16:45:59 +0000 (16:45 +0000)]
am
39277ce1: enhance the "invalid rfc slot id" log to include the caller\'s name
* commit '
39277ce1db191a1b58bc1d14b1ac786f9c60491b':
enhance the "invalid rfc slot id" log to include the caller's name
Fred Quintana [Thu, 14 Aug 2014 22:58:18 +0000 (15:58 -0700)]
enhance the "invalid rfc slot id" log to include the caller's name
this adds context to that log
Change-Id: I916532baaae67d45b8edc217137ef9eb452722e7
Andre Eisenbach [Wed, 13 Aug 2014 17:52:15 +0000 (17:52 +0000)]
Merge "Enable local privacy configuration based on flag" into lmp-dev
Priti Aghera [Tue, 12 Aug 2014 21:31:28 +0000 (14:31 -0700)]
Fixed SMP failure for Privacy enabled Multi-Adv
When privacy is enabled and multi adv instance is used, SMP pairing
was failing as wrong local connection address was used. Included a fix
so that local connection address is always updated when connection handle
to adv instance mappping event is received.
Bug:
16872808
Change-Id: I288cd6cd85fe8547d0e85b1d8419a3412a993126
Priti Aghera [Mon, 11 Aug 2014 18:15:02 +0000 (11:15 -0700)]
Enable local privacy configuration based on flag
Included a check to make local privacy configuration only if
BLE_PRIVACY_SPT flag is TRUE. This fixes the compile time error
when privacy is disabled.
Bug:
16901853
Change-Id: I4eeff8d8f725970aba87f3231eac9fd727efa71f
Andre Eisenbach [Wed, 13 Aug 2014 16:34:32 +0000 (16:34 +0000)]
Merge "LE: Fix limited advertising not stopping after timeout" into lmp-dev
Andre Eisenbach [Tue, 12 Aug 2014 23:46:51 +0000 (16:46 -0700)]
LE: Fix limited advertising not stopping after timeout
When starting to advertise with a given timeout, the alarm did not fire
and thus not stop the advertising. This patch switchs from the new alarm
system to use BTU timers.
Also fixes a bug in the oneshot timer handling where adding a new timer
with a short timeout value would not actually restart the timer to pull
in the deadline.
Bug:
16988160
Change-Id: Ia556562675636be440ddca7682ac7d092bc0b48b