OSDN Git Service
Satish Kodishala [Mon, 28 Mar 2016 05:42:08 +0000 (05:42 +0000)]
Abort parsing in case of format error
am:
5231366
* commit '
52313661a3564b5fbaa7b4ad5d329724a03754fe':
Abort parsing in case of format error
Ayan Ghosh [Mon, 28 Mar 2016 05:42:08 +0000 (05:42 +0000)]
Move to idle when remote disconnects during connection.
am:
2a6246f
* commit '
2a6246f85c515f33eb4f9ff708f50680b1cb1653':
Move to idle when remote disconnects during connection.
Ayan Ghosh [Mon, 28 Mar 2016 05:42:08 +0000 (05:42 +0000)]
Allocate buffer for AV SDP in Stack
am:
ff813a6
* commit '
ff813a67d60ce1c9b5f3ea680b281bf642e69fe5':
Allocate buffer for AV SDP in Stack
Ayan Ghosh [Mon, 28 Mar 2016 05:42:08 +0000 (05:42 +0000)]
Do not initiate SDP for incoming AVDTP connection
am:
b5b7552 -s ours
* commit '
b5b7552826d1fb17eb98956e7b60e3b2288709b1':
Do not initiate SDP for incoming AVDTP connection
Ayan Ghosh [Mon, 28 Mar 2016 05:39:08 +0000 (05:39 +0000)]
Process AV HAL start only when previous instance is cleaned up
am:
d14f97c
* commit '
d14f97c87685e480ee1a88829497651bccf2b358':
Process AV HAL start only when previous instance is cleaned up
Ayan Ghosh [Mon, 28 Mar 2016 05:39:08 +0000 (05:39 +0000)]
Restrict DUT supported SBC configuration in GET_CAP response
am:
83b9a4f
* commit '
83b9a4ff17b6ef64c5a37ad1b0d48f6064afdf87':
Restrict DUT supported SBC configuration in GET_CAP response
Sharvil Nanavati [Mon, 28 Mar 2016 05:39:08 +0000 (05:39 +0000)]
Don\'t clear the btsnoop log ringbuffer on compress.
am:
f3758bd
* commit '
f3758bdc1f38dcd237f4a39c6af3d4faf0f27832':
Don't clear the btsnoop log ringbuffer on compress.
Sharvil Nanavati [Mon, 28 Mar 2016 05:39:08 +0000 (05:39 +0000)]
Don\'t send AT+BCC if local device doesn\'t support codec negotiation.
am:
5034d67
* commit '
5034d67fde55ccb8ac790ca76e7563f756261db5':
Don't send AT+BCC if local device doesn't support codec negotiation.
Navin Kochar [Mon, 28 Mar 2016 05:39:08 +0000 (05:39 +0000)]
Add LE L2CAP Connection Oriented Channel
am:
ab99638
* commit '
ab99638f9a05ae7ed04ab0a75d48cbd1d78b36e8':
Add LE L2CAP Connection Oriented Channel
Srinu Jella [Mon, 28 Mar 2016 05:39:08 +0000 (05:39 +0000)]
Allocate sufficient memory for FCS
am:
a42f0d9
* commit '
a42f0d9343594af5e2a17273f33aa8f0ae186410':
Allocate sufficient memory for FCS
Marie Janssen [Mon, 28 Mar 2016 05:39:07 +0000 (05:39 +0000)]
osi: add osi_rand()
am:
8d0a6a4
* commit '
8d0a6a408ff57cb221e67963a95822f080911f20':
osi: add osi_rand()
Pavlin Radoslavov [Mon, 28 Mar 2016 05:39:07 +0000 (05:39 +0000)]
Removed unused function bta_sys_vs_hdl()
am:
407b3bf
* commit '
407b3bf182630e764ac9b34f806264a324a2e187':
Removed unused function bta_sys_vs_hdl()
Pavlin Radoslavov [Mon, 28 Mar 2016 05:39:07 +0000 (05:39 +0000)]
Removed duplicate (re)define of BTA_DM_SDP_DB_SIZE
am:
9c89b0f
* commit '
9c89b0f9d948c4b1cb2f87ebc5e379e1bc23ebb9':
Removed duplicate (re)define of BTA_DM_SDP_DB_SIZE
Jakub Pawlowski [Mon, 28 Mar 2016 05:39:07 +0000 (05:39 +0000)]
Linux vendor driver linkage fixes
am:
3fc1a40
* commit '
3fc1a40c0b9bda27852fe721e5c39ce0c58aeb42':
Linux vendor driver linkage fixes
Jakub Pawlowski [Mon, 28 Mar 2016 05:39:07 +0000 (05:39 +0000)]
Add missing log tag
am:
130cc57
* commit '
130cc57aef1507e6c5dc888cde5d3b24efa07587':
Add missing log tag
venkata Jagadeesh [Mon, 28 Mar 2016 05:39:07 +0000 (05:39 +0000)]
SDP: Restrict attribute length to SDP_MAX_ATTR_LEN
am:
1e8218e
* commit '
1e8218e1c0fe90bfd9a45fcfd567c2043bbd061f':
SDP: Restrict attribute length to SDP_MAX_ATTR_LEN
Marie Janssen [Mon, 28 Mar 2016 05:39:07 +0000 (05:39 +0000)]
bluetooth-cli: add support for --exec
am:
2292fb2 -s ours
* commit '
2292fb228f35722802bb04658836786c210ab344':
bluetooth-cli: add support for --exec
Subramanian Srinivasan [Mon, 28 Mar 2016 05:36:02 +0000 (05:36 +0000)]
Update device type in NVRAM correctly during inquiry
am:
65cf628
* commit '
65cf62811c3a0bd46fff19f82beae43874ab3391':
Update device type in NVRAM correctly during inquiry
Jacky Cheung [Mon, 28 Mar 2016 05:36:02 +0000 (05:36 +0000)]
Default missing DevType and DevClass in NVRAM.
am:
1c4150b
* commit '
1c4150bee59b5e3f76ddd54e1696f9e1e53dfede':
Default missing DevType and DevClass in NVRAM.
venkata Jagadeesh [Mon, 28 Mar 2016 05:36:02 +0000 (05:36 +0000)]
GATT: Initiate L2CAP disconnect only when the channel is open
am:
94145fa
* commit '
94145fae3cebe35a4b48a519e0ddee82d0bbc3c7':
GATT: Initiate L2CAP disconnect only when the channel is open
Jakub Pawlowski [Mon, 28 Mar 2016 05:36:02 +0000 (05:36 +0000)]
Remove btla-specific comments
am:
c83ad35 -s ours
* commit '
c83ad356a65f7d639d628e2feec927619b07683e':
Remove btla-specific comments
Matadeen Mishra [Mon, 28 Mar 2016 05:29:56 +0000 (05:29 +0000)]
Correcting sniff behaviour in multi-connection scenario
am:
cbd669b
* commit '
cbd669b9c3bb3375cb794d385c7f7984eaa3deda':
Correcting sniff behaviour in multi-connection scenario
Srinu Jella [Mon, 28 Mar 2016 05:29:56 +0000 (05:29 +0000)]
Cleanup L2CAP socket properly on close
am:
9b4de84
* commit '
9b4de840e65ce051f9585c12071f4bcf5fa26ea3':
Cleanup L2CAP socket properly on close
Balraj Selvaraj [Mon, 28 Mar 2016 05:29:56 +0000 (05:29 +0000)]
GAP Setting remove device pending status as FALSE
am:
71b1a5d
* commit '
71b1a5d84577e5ffe51cbd99b442473465667fdf':
GAP Setting remove device pending status as FALSE
Srinu Jella [Mon, 28 Mar 2016 05:29:55 +0000 (05:29 +0000)]
Track TX empty event to manage sniff timer
am:
2bbedbf
* commit '
2bbedbf283f30378aaf347f9f0dd7986ed408f64':
Track TX empty event to manage sniff timer
Srinu Jella [Mon, 28 Mar 2016 05:29:55 +0000 (05:29 +0000)]
Read local supported codecs as part of boot sequence
am:
6d9b55e -s ours
* commit '
6d9b55e567c82b821e26ec1b60b457cef0fb40f9':
Read local supported codecs as part of boot sequence
Srinu Jella [Mon, 28 Mar 2016 05:07:46 +0000 (05:07 +0000)]
Added fd for monitoring when the channel is not congested
am:
08ca0bb
* commit '
08ca0bbfab6cc3ae32998aa1840d977abcb80360':
Added fd for monitoring when the channel is not congested
Hemant Gupta [Mon, 28 Mar 2016 05:07:45 +0000 (05:07 +0000)]
HID: Handle collisions during incoming and outgoing connections
am:
ec2bf3c
* commit '
ec2bf3cb6bf873c32feec3e4ed8acc50f7956651':
HID: Handle collisions during incoming and outgoing connections
Hemant Gupta [Mon, 28 Mar 2016 05:07:45 +0000 (05:07 +0000)]
HID: Reset outgoing connection retry to 1
am:
fb28516
* commit '
fb285169de177734e65b2a3af65f764154ced94a':
HID: Reset outgoing connection retry to 1
Hemant Gupta [Mon, 28 Mar 2016 05:07:45 +0000 (05:07 +0000)]
HID: Remove bond for device in case Virtual unplug is ongoing
am:
37cf570
* commit '
37cf570429128f88012b72bdedd354341a43a3bb':
HID: Remove bond for device in case Virtual unplug is ongoing
Matadeen Mishra [Mon, 28 Mar 2016 05:07:45 +0000 (05:07 +0000)]
Shorten local name in EIR data according to UTF encoding rules
am:
4ed0f91
* commit '
4ed0f917b7ab6b46fe2335ac3003fb7c6f428523':
Shorten local name in EIR data according to UTF encoding rules
Subramanian Srinivasan [Mon, 28 Mar 2016 05:07:45 +0000 (05:07 +0000)]
Use correct transport type for GATT client and server connections
am:
6524408
* commit '
6524408c255586136b6b336bd00c464706947b36':
Use correct transport type for GATT client and server connections
Satya Calloji [Mon, 28 Mar 2016 05:07:45 +0000 (05:07 +0000)]
Update OCF values per 0.96 spec
am:
dbced80
* commit '
dbced80f8698465d6321cb42a9cacb317d4a34f5':
Update OCF values per 0.96 spec
Eri Kasamatsu [Mon, 28 Mar 2016 05:07:45 +0000 (05:07 +0000)]
OCF for LE Extended Set Scan Parameters Cmd is not correct
am:
e3b2bb7 -s ours
* commit '
e3b2bb7542687b1243c0a47ca85a1f846b616ce6':
OCF for LE Extended Set Scan Parameters Cmd is not correct
Satish Kodishala [Mon, 28 Mar 2016 05:01:38 +0000 (05:01 +0000)]
Handle unknown codecs sent by HF
am:
f95c12a
* commit '
f95c12a8e7c3f264b03a51644368ca4232cc3cc4':
Handle unknown codecs sent by HF
Srinu Jella [Mon, 28 Mar 2016 05:01:38 +0000 (05:01 +0000)]
Avoid double-free on SDP search failure
am:
8ac46ef
* commit '
8ac46ef1e4910c1db12b0243dca140c3075d3238':
Avoid double-free on SDP search failure
Andre Eisenbach [Mon, 28 Mar 2016 05:01:38 +0000 (05:01 +0000)]
Remove bluedroidtest
am:
74b0f5f
* commit '
74b0f5faa463529a94930a343de5019caf345694':
Remove bluedroidtest
Sharvil Nanavati [Mon, 28 Mar 2016 05:01:38 +0000 (05:01 +0000)]
Delete unused function declarations from sdp_api.h.
am:
1300a48
* commit '
1300a48605f6307a7dd9002b363cfd74ae7250ef':
Delete unused function declarations from sdp_api.h.
Nitin Arora [Mon, 28 Mar 2016 05:01:38 +0000 (05:01 +0000)]
Avoid SMP process if another pairing is in progress
am:
77ebf2c
* commit '
77ebf2c8a7b0bd233999e68bbd7b11ca0d708f35':
Avoid SMP process if another pairing is in progress
Srinu Jella [Mon, 28 Mar 2016 05:01:38 +0000 (05:01 +0000)]
Increase the number of security slots for other new profiles
am:
310d5c7
* commit '
310d5c7ada40cca70b352e12a9cfddc44dffdc36':
Increase the number of security slots for other new profiles
Srinu Jella [Mon, 28 Mar 2016 05:01:38 +0000 (05:01 +0000)]
Correct the max SDU length used in BTIF layer
am:
d228f7f
* commit '
d228f7f2abe935fbb8f7d059fe83528d9a35811d':
Correct the max SDU length used in BTIF layer
Srinu Jella [Mon, 28 Mar 2016 05:01:38 +0000 (05:01 +0000)]
Reconstruct new packet to accomodate extra header length
am:
869abd1
* commit '
869abd1d3a45f419054f8815dc86cc53e393b456':
Reconstruct new packet to accomodate extra header length
Srinu Jella [Mon, 28 Mar 2016 05:01:37 +0000 (05:01 +0000)]
Enable debug logs for bluetooth process threads, modules
am:
b5754d2
* commit '
b5754d2fdfce8acba35ac8a03aae2ab88152dc6b':
Enable debug logs for bluetooth process threads, modules
Srinu Jella [Mon, 28 Mar 2016 05:01:37 +0000 (05:01 +0000)]
Corrected the stream for error checking
am:
874e095
* commit '
874e09529503f223b2c3a87a90d9a6cc72c90d7b':
Corrected the stream for error checking
Ayan Ghosh [Mon, 28 Mar 2016 05:01:37 +0000 (05:01 +0000)]
Peer support of Absolute Volume to be updated only if device supports A2DP
am:
69682ac
* commit '
69682acf0149e9e51cda5b8747866ca9dc37b907':
Peer support of Absolute Volume to be updated only if device supports A2DP
Ayan Ghosh [Mon, 28 Mar 2016 05:01:37 +0000 (05:01 +0000)]
Limit Max Bitpool value to SPEC recommended one
am:
271c217
* commit '
271c217a2c82b92a4d52dcace40bedea227a6c24':
Limit Max Bitpool value to SPEC recommended one
Ayan Ghosh [Mon, 28 Mar 2016 05:01:37 +0000 (05:01 +0000)]
Allow Carkit to trigger play immediately after call
am:
68ad33b
* commit '
68ad33b15a1becf87bca8f0a420b29ffb3342a0a':
Allow Carkit to trigger play immediately after call
Satish Kodishala [Mon, 28 Mar 2016 05:01:37 +0000 (05:01 +0000)]
Initialize sco codecs supported with CVSD
am:
65e9c82
* commit '
65e9c8251cd9f70153861aabe09f8767b82ce434':
Initialize sco codecs supported with CVSD
Satish Kodishala [Mon, 28 Mar 2016 05:01:37 +0000 (05:01 +0000)]
Ignore empty optional parameters in CLCC response
am:
3362048 -s ours
* commit '
3362048df98441dc46210fbb7f0aa2014ee717e1':
Ignore empty optional parameters in CLCC response
Satish Kodishala [Mon, 28 Mar 2016 04:58:31 +0000 (04:58 +0000)]
Clear remote BD address if SDP search fails
am:
9d3ef5e
* commit '
9d3ef5ea53a3209881d2bf67342977bee7ceffc7':
Clear remote BD address if SDP search fails
Satish Kodishala [Mon, 28 Mar 2016 04:58:31 +0000 (04:58 +0000)]
Do not reset Sniff Subrating parameters on SCO link
am:
af3e647
* commit '
af3e647479dcf27e17516b6cd2b853c453a1a01c':
Do not reset Sniff Subrating parameters on SCO link
Mallikarjuna GB [Mon, 28 Mar 2016 04:58:31 +0000 (04:58 +0000)]
Update the sniff policy when SCO is active
am:
ba22a41
* commit '
ba22a417d0700715872391ffad79058fe79fbec5':
Update the sniff policy when SCO is active
Jakub Pawlowski [Mon, 28 Mar 2016 04:58:31 +0000 (04:58 +0000)]
Fix broken formatting in README.md
am:
4b5a5fc
* commit '
4b5a5fcbf08475a87c6af3030e0d9b7e89d297c5':
Fix broken formatting in README.md
Jakub Pawlowski [Mon, 28 Mar 2016 04:58:31 +0000 (04:58 +0000)]
Build on linux: final changes and instructions.
am:
5caf67e -s ours
* commit '
5caf67e0f604c407a8b9b4987b0a161165feb90b':
Build on linux: final changes and instructions.
Jakub Pawlowski [Mon, 28 Mar 2016 04:55:25 +0000 (04:55 +0000)]
Move properties get/set code to osi
am:
2998946 -s ours
* commit '
2998946db9b820806d4a3e6decf1d01f090a8031':
Move properties get/set code to osi
Jakub Pawlowski [Mon, 28 Mar 2016 04:52:22 +0000 (04:52 +0000)]
Add missing file to BUILD.gn
am:
41c155c
* commit '
41c155cbfd43c99fed14d3d9b7c277679ade69a5':
Add missing file to BUILD.gn
Jakub Pawlowski [Mon, 28 Mar 2016 04:52:22 +0000 (04:52 +0000)]
Update build files for Fluoride on Linux
am:
107588a -s ours
* commit '
107588ab3e5af9f5df68815d5fe52b0c53e0e089':
Update build files for Fluoride on Linux
Jakub Pawlowski [Mon, 28 Mar 2016 04:30:21 +0000 (04:30 +0000)]
Add Linux-specific version of metrics.
am:
e4bc35b
* commit '
e4bc35bf8bfe06ea174607fde3b645f5f6e9b941':
Add Linux-specific version of metrics.
Jakub Pawlowski [Sat, 26 Mar 2016 05:39:45 +0000 (05:39 +0000)]
linux build fix
am:
815a8d4
* commit '
815a8d41cae1a01abdbeb6586c4365d33fa3bbb0':
linux build fix
Jakub Pawlowski [Sat, 26 Mar 2016 05:31:41 +0000 (22:31 -0700)]
linux build fix
Change-Id: Ibec71d18e664f575f73a472b7a522e87c3a1efa8
Satish Kodishala [Thu, 11 Feb 2016 14:32:08 +0000 (20:02 +0530)]
Abort parsing in case of format error
Usecase:
1. Enable hf client and connect to AG.
2. Send +COPS with length more than allowed 16 characters.
Failure:
Crash might be seen while parsing +COPS response from AG.
Root cause:
sscanf used for parsing the AT commands does not update
the characters scanned when there is format error.
Fix:
Abort the processing in case of format error.
Bug:
27852645
Change-Id: Id3ca80712df3d0251cf9ffb04d9c766be809ae84
Ayan Ghosh [Tue, 7 Jan 2014 11:17:19 +0000 (16:47 +0530)]
Move to idle when remote disconnects during connection.
Chrysler Uconnect Touch initiates disconnect for a2dp on
l2cap just after discovery on AVDTP channel, stack does not
send any message to BTIF layer for disconnection, this
causes btif getting stuck in opening state and later no stable
connection update is sent to app. Since it is intermediate
state all subsequent connection trials fails.
Send disconnect event from incoming state to closing state
and then closing state will send proper msg to btif layer. Add
closing msg handling in btif layer so that we can update app
for connection disconnect when initiated from remote and move to
proper stable state for accepting/initiating connection.
Bug:
27852645
Change-Id: I011d9ffe9d721235217320c1e5281f70328c7f13
Ayan Ghosh [Thu, 3 Mar 2016 10:37:38 +0000 (16:07 +0530)]
Allocate buffer for AV SDP in Stack
Remove buffer allocation in BTA while going for SDP before triggering
A2DP connection. This strategy is followed to address memory corruption
issues due to freeing of BTA buffer before SDP RSP call back is
triggered and access the freed buffer from there, leads to crash when
running Codemonicom tests.
The change allocates and frees buffer in stack.
Bug:
27852645
Change-Id: If6d60d2aa60d19ce5120dd38c2f365d70943db81
Ayan Ghosh [Thu, 11 Dec 2014 12:26:02 +0000 (17:56 +0530)]
Do not initiate SDP for incoming AVDTP connection
There are few instances when remote initiates L2CAP
channel for AVDTP signaling but keeps quite after that,
and later on timeout DUT goes for rest of the signalling
procedure but does sdp prior to the same.Few peer
devices deletes a2dp sink sdp record when there is an
ongoing connection, as a result sdp request fails and
DUT fails to proceed with signalling procedure and
connection setup fails.
This patch makes sure that DUT does not go for redundant
sdp request for AVDTP, provided remote has already
established L2cap connection for the same. SDP is done
explicitly only incase of outgoing AV connection.
This issue is seen with Nokia Es headset.
Bug:
27852645
Change-Id: Id44368687d5b3f97bf0258f8d4ff75f185db23af
Ayan Ghosh [Thu, 3 Mar 2016 13:28:24 +0000 (18:58 +0530)]
Process AV HAL start only when previous instance is cleaned up
Bug:
27852645
Change-Id: Iee232dacd3b79e6e94d26c73fb3e563fddced75c
Ayan Ghosh [Thu, 17 Mar 2016 09:29:06 +0000 (14:59 +0530)]
Restrict DUT supported SBC configuration in GET_CAP response
DUT shows all possible SBC configurations as supported
as part of GET_CAP response and also allows AV SINK to
opt for any of these values from that set as part of
SET_CONFIG request, but later opts for only recommended
figures while streaming so that leads to mismatch in
configuration between the config values SINK sets during
SET_CONFIG and config values DUT chooses for streaming
and hence it causes PTS (version 6.4 onwards) certification
failure for below A2DP and AVDTP cases:
A2DP:
TC_SRC_SET_BV_04_I
TC_SRC_SET_BV_06_I
AVDTP:
TC_ACP_SRC_SIG_SMG_BV_18_C
TC_ACP_SRC_SIG_SMG_BV_20_C
TC_ACP_SRC_SIG_SMG_BV_22_C
Restricting DUT supported SBC configurations to reflect only
the configuration DUT opts for during streaming makes sure
remote also opts for those config values during SET_CONFIG
and later there is no mismatch.
Bug:
27852645
Change-Id: I13dbe94e0ca52708fc62c6db7513f7985237c18c
Sharvil Nanavati [Mon, 29 Feb 2016 23:50:49 +0000 (15:50 -0800)]
Don't clear the btsnoop log ringbuffer on compress.
Change-Id: I0bf4279104e87b151553eba913491d934f3cde41
Sharvil Nanavati [Tue, 15 Mar 2016 20:13:45 +0000 (13:13 -0700)]
Don't send AT+BCC if local device doesn't support codec negotiation.
The current code only checked if the peer supported codec negotiation
before sending AT+BCC. But if codec negotation is disabled on the
local device, we should definitely not send AT+BCC.
Bug:
27213013
Change-Id: Id372a32a61a3d96d5c093bc50594ef0b8c2eff2e
Navin Kochar [Wed, 9 Mar 2016 17:41:53 +0000 (23:11 +0530)]
Add LE L2CAP Connection Oriented Channel
This implementation for LE L2CAP Connection Oriented Channel (a Bluetooth
Core Spec 4.1 feature) has been tested on the following formal and informal
IOP events conducted by BT SIG Sport and Fitness Working Group.
* Informal IOP – Tokyo 2014
* UPF 49 – Berlin 2014
* Formal IOP – Tokyo 2014
* Formal IOP – Santa Clara 2015
Bug:
27852645
Change-Id: Ia6de62f9321a78b98930629f65078884157a9c0d
Signed-off-by: Navin Kochar <navin.kochar@intel.com>
Srinu Jella [Tue, 15 Mar 2016 11:06:19 +0000 (16:36 +0530)]
Allocate sufficient memory for FCS
Use Case: Hit LeakCanary detection during HDP
Failure: Crash while running LeakCanary detection.
Root cause: Did not have sufficient memory for data frame
which lead to crash.
Fix: Allocating sufficient memory for the data frame
which includes FCS in the header field.
Bug:
27852645
Change-Id: I3bb862f29ecc854423796dc89820ba21c5db6050
Marie Janssen [Thu, 10 Mar 2016 19:27:53 +0000 (11:27 -0800)]
osi: add osi_rand()
Provide a replacement for rand() which has a better random source.
Change-Id: I38a8c74d86b89ec160b43b0f648f53b463be89bb
Pavlin Radoslavov [Mon, 14 Mar 2016 16:45:24 +0000 (09:45 -0700)]
Removed unused function bta_sys_vs_hdl()
Change-Id: Iaf199d418aafc0b518df2f7febfa1c9e29f1fa42
Pavlin Radoslavov [Mon, 14 Mar 2016 17:06:45 +0000 (10:06 -0700)]
Removed duplicate (re)define of BTA_DM_SDP_DB_SIZE
Removed conditional duplicate re-define of BTA_DM_SDP_DB_SIZE.
BTA_DM_SDP_DB_SIZE has been already (conditionally) defined to 8000
in file include/bt_target.h
The conditional re-define of BTA_DM_SDP_DB_SIZE to a smaller
value (250) in file bta/dm/bta_dm_int.h should be removed, because
it is confusing and error-prone.
Change-Id: Id10a45562c7c57fd0a9131ef50b7b7a5c2801ec5
Jakub Pawlowski [Thu, 10 Mar 2016 17:25:48 +0000 (09:25 -0800)]
Linux vendor driver linkage fixes
Linux driver depends on osi, so it must be linked with it.
It also must export bt_vendor_interface_t, and named properly,
otherwise it is not being recognized as vendor library.
Bug:
27589244
Change-Id: Ib6817b11e4226f2e289ff0d521daca059ca9aca6
Jakub Pawlowski [Wed, 9 Mar 2016 19:22:00 +0000 (11:22 -0800)]
Add missing log tag
Change-Id: Icae6cf63de8d298fb12451887594abe24b026c77
venkata Jagadeesh [Tue, 15 Dec 2015 07:30:01 +0000 (13:00 +0530)]
SDP: Restrict attribute length to SDP_MAX_ATTR_LEN
Use case:
Bluetooth crash during the SNS testing.
Root Cause:
In sdpu_build_partial_attrib_entry there is no length check, it can
exceed the maximum allowable value and lead to a crash in memcpy.
Fix:
Restrict remaining attribute length to SDP_MAX_ATTR_LEN
in sdpu_build_partial_attrib_entry.
Bug:
27852645
Change-Id: I5bde6868b82e50b3c09cf94277dabb4862f0a2a8
Marie Janssen [Fri, 22 Jan 2016 02:45:53 +0000 (18:45 -0800)]
bluetooth-cli: add support for --exec
Adds the --exec and -e arguments, which execute commands when the
cli starts.
This also adds support for chaining commands at the command line by
separating them with ';' characters.
Change-Id: Ic2bf8a908fbb7fb4cf775810754571fa96d75e87
Subramanian Srinivasan [Thu, 23 Jul 2015 22:05:05 +0000 (15:05 -0700)]
Update device type in NVRAM correctly during inquiry
If the NVRAM device type for a device is not dual mode and the inquiry
result is received for BLE or BR/EDR transport, then this patch updates
the NVRAM device type to dual mode.
Bug:
27852645
Change-Id: I688e7c5e3bd8d844288d095cb97c2e55ddf652c6
Jacky Cheung [Fri, 4 Mar 2016 21:29:02 +0000 (13:29 -0800)]
Default missing DevType and DevClass in NVRAM.
Missing DevType and DevClass in NVRAM were not properly set to a
default values previously.
Bug:
27852645
Change-Id: I79fbc333d7b6dda0fb795776b2dbe1e1e101352c
venkata Jagadeesh [Thu, 26 Nov 2015 08:44:00 +0000 (14:14 +0530)]
GATT: Initiate L2CAP disconnect only when the channel is open
Use case:
Crash found during L2CAP disconnect from faulty BLE APP.
Steps:
Run SNS testing.
Failure:
Crash during L2CAP disc.
Root cause:
Faulty BLE application triggering GATT disconnection
which internally triggering L2CAP disconnection without checking
proper state of channel.
Fix:
- Initiate L2CAP disconnect only when the channel is open
- Validate LCB during disconnection from upper layers
Bug:
27852645
Change-Id: Ic9d065f095feba659c861828732647e968c20db8
Jakub Pawlowski [Fri, 4 Mar 2016 21:20:05 +0000 (13:20 -0800)]
Remove btla-specific comments
Change-Id: I91a19b2cfbc96d7567e0e0914058619ea364c1d4
Matadeen Mishra [Mon, 1 Feb 2016 13:50:54 +0000 (19:20 +0530)]
Correcting sniff behaviour in multi-connection scenario
Use case: When multiple profiles are connected on same link and if any one of the
profiles deregisters with powermanager, powermanager will initiate a sniff when it
removes the timer for one profile, even if a timeout did not trigger for other profiles.
Steps:
1. Turn on BT
2. Pair with Mi band (Wearable device)
3. Pair with carkit
4. Turn off BT
5. Turn on BT
HF and A2DP connection should successful after BT on to carkit.
Failure: HF connection fails.
Root Cause: powermanager initiates a sniff when it removes the timer for one profile
Even if a timeout did not trigger for other profiles.
Fix: When multiple profiles connect on the same link and if any one profile
deregisters with powermanager, pm should stop the timer for that profile
and restart the other profiles timers.
Bug:
27852645
Change-Id: I8e215a9d868291976c70ff32b61145b4360a7f8f
Srinu Jella [Mon, 21 Sep 2015 06:30:48 +0000 (12:00 +0530)]
Cleanup L2CAP socket properly on close
Use case:
1. Sometimes pairing pop up occurs during Android beam
transfer though it is not required.
2. No OPP Tx request over OBEX if we cancel during file transfer.
Precondition
1. WIFI ON and conneted with AP.
Steps:
1. Pair and connect from DUT to remote.
2. Go to gallery and send a file.
3. Accept same file and stop it from remote during transfer.
4. Repeat step 2-4 10 times.
Failure:
OPP Tx should not fail.
Root cause:
Close request was not properly handled from BT-IF layer.
Fix:
1. Handled the close request properly from BT-IF layer
to close the socket variables and instruct the BTA layer
close from there as well.
2. Clean up L2CAP socket properly on closure to free
the entry registered with security manager to avoid
leak in security manager records.
Bug:
27852645
Change-Id: I4f5d6ac92317bcaee5f9285ba71d13eea84c737c
Balraj Selvaraj [Thu, 11 Feb 2016 08:16:02 +0000 (13:46 +0530)]
GAP Setting remove device pending status as FALSE
Use case: DUT deletes Link key and failed to initiate
authentication request after remote headset turned Off and ON
steps:
- Pair the DUT and HS. (Link Keys get established.)
- Now Switch OFF BT on DUT. (DUT still has the Link key of HS)
- Reset the paired devices memory in HS and keep HS in
pairing mode. (HS loses DUT's link key)
- Now switch ON BT on DUT. (DUT starts reconnection with HS,
but as HS lost DUT's key, PIN or KEY missing event will
come to host)
- DUT reconnects to HS (Using newly established link keys)
- Now power OFF and ON the HS.
- HS will try reconnection with DUT.
- While there is an incoming connection from HS to DUT,
host is giving negative link key reply always for the
multiple link key requests from HS.
- HS sends disconnection with "Authentication failure"
Failure: DUT should not delete Link key and DUT should
initiate Authenticatin request.
Root cause: pending status was not FALSE from security device
DB, which will causing Authentication Failure.
Fix: Setting the remove device pending status to FALSE from
security device DB, when the link key notification event
comes. Basically it will avoid deleting the device from
security device DB, Which is solving the reconnection
initated from remote when we remove the link key at
remote side.
Bug:
27852645
Change-Id: Ic164d8d5b5c2e0b9cc5f04f993047fb0a8e5d9a9
Srinu Jella [Tue, 16 Feb 2016 14:52:16 +0000 (20:22 +0530)]
Track TX empty event to manage sniff timer
Use case:
OPP TX while inquiry is in progress.
Steps:
1. Send any file from DUT to remote using BT.
2. Accept file on remote.
3. During file transfer, start inquiry on DUT and
observe behaviour.
Failure:
DUT sends sniff command in the middle of the transfer
though it is not required. eventually OPP Tx over
L2CAP file transfer fail.
Root Cause:
As per the current implementation, for tx it will
immediately starts idle timer without checking
for the completion status of tx.
Fix:
Handled the tx complete event from L2CAP properly
to start the idle timer to manage the sniff properly.
Bug:
27852645
Change-Id: I298075590042e82a2f33837f6df6af0b2fd8179a
Srinu Jella [Wed, 22 Jul 2015 12:00:32 +0000 (17:30 +0530)]
Read local supported codecs as part of boot sequence
Add support to read local supported codecs as part of
controller module initialization.
Also added an API from controller interface to get the
local supported codecs.
Bug:
27852645
Change-Id: I37a4ab9e6a20ed057ca794dbdd4f99c2a8c65a6e
Srinu Jella [Tue, 11 Aug 2015 13:46:52 +0000 (19:16 +0530)]
Added fd for monitoring when the channel is not congested
Use case:
Skips and Media Audio Loss are Observed During PAN Connection
Steps:
1. Launched Local Music and Media Audio was in Headset.
2. Paired and Connected to other Phone to DUT Over BT Tethering.
3. While Listening to Media Audio in DUT, Started Watching
Youtube in other phone.
4. Observed Below Observations During Some 30mins of PAN Connection.
Failure:
Skips and Media Audio Loss are Observed During PAN Connection
Root Cause:
socket monitor thread keeps polling for PAN fd, eventually
it will make the BTU thread also busy, inturn NOCP processing
gets delayed.
Fix:
Add PAN fd for monitoring only when L2CAP channel related to
PAN profile is not congested. It will break loop by checking the
congestion status to put the fd for polling.
Bug:
27852645
Change-Id: I2119c6c86d8e4798e516c512ad7aac7630b85a6a
Hemant Gupta [Fri, 11 Dec 2015 14:39:22 +0000 (20:09 +0530)]
HID: Handle collisions during incoming and outgoing connections
- This patch handles cases when incoming HID connection is in progress, and
there is an outgoing connection attempt from upper layers. This was leading
to a case when ougoing connection would fail as connection was already in
progress, which triggered cleanup of connection states, which was not proper
leading to issues in future connection attempts, as disconnection during
ongoing connection was not handled properly in existing code.
- Reset the incoming flags during open failure to prevent any possible issues
during further outgoing connections.
Bug:
27852645
Change-Id: I6fb0c6156482d2da41ca0d2d280091d73c27f292
Hemant Gupta [Fri, 4 Mar 2016 17:19:55 +0000 (22:49 +0530)]
HID: Reset outgoing connection retry to 1
Reduce the retry time from host to 1 from 3 to prevent collision scenarios
when remote also tries to connect which could lead to potential authentication
issues in SoC.
Bug:
27852645
Change-Id: I3b5db4a4c4aa985cb9c0537499ce608f9e5d5522
Hemant Gupta [Fri, 11 Dec 2015 10:17:45 +0000 (15:47 +0530)]
HID: Remove bond for device in case Virtual unplug is ongoing
Remove bond for remote device in case virtual unplug was initiated from
local device, and ACL got disconnected while processing the VUP request.
this can happen when aaplication is sending disconnect and remove bond
in quick succession. Without this fix it was observed that device was
getting disconnected, but was not getting unpaired even when user
tried to unpair from UI.
Bug:
27852645
Change-Id: Ife1fc99ed59b13daf0bcf0dce3e0a59c7d9e87d7
Matadeen Mishra [Wed, 3 Feb 2016 15:20:31 +0000 (20:50 +0530)]
Shorten local name in EIR data according to UTF encoding rules
Use case:
Test short name after setting the name with maximum length
Steps to reproduce:
1) Phone A: Rename bluetooth into a 60 character Chinese name
2) Phone B: Discover phone A.
3) The short name of phone A will display in phone B and the short
name cantains unrecognizable chars.
Root cause:
As Chinese characters are encoded in different
length in UTF, if shorten BT name in fixed length,
there will be unrecognized characters
Fix:
Shorten BT name according to UTF encoding rule and decrease
the length.
Bug:
27852645
Change-Id: I5f1e49c1b5d87d5e220538c90e297c50ccc790ff
Subramanian Srinivasan [Thu, 29 Oct 2015 00:05:22 +0000 (17:05 -0700)]
Use correct transport type for GATT client and server connections
Use correct transport type for GATT client and server connect
API calls. This change uses the transport used while calling
the connect frameworks API instead of relying on the NVRAM to
find the transport on which the connect call needs to be sent
to the BT stack.
Bug:
27852645
Change-Id: Idf5817b8980e848c6ebebf1e9a79dbce61d8cfc8
Satya Calloji [Wed, 2 Mar 2016 19:25:49 +0000 (11:25 -0800)]
Update OCF values per 0.96 spec
HCI command values are updated as per Google HCI
BLE requirements v0.96
Bug:
27069512
Change-Id: I30e0046c5d3198f0986e03baf697bad2be99c06e
Eri Kasamatsu [Tue, 9 Feb 2016 14:11:51 +0000 (15:11 +0100)]
OCF for LE Extended Set Scan Parameters Cmd is not correct
OCF for LE Extended Set Scan Paramaters Cmd is defined as 0x15A
in documentation but it is defined as 0x160 in stack.
This results in command failing due to unknown hci command error.
Bug:
27852645
Change-Id: Ia779164b7c03daa8053fb65e4fc8281235904031
Satish Kodishala [Thu, 25 Jun 2015 07:48:35 +0000 (13:18 +0530)]
Handle unknown codecs sent by HF
Use case:
1. Connect to headset supporting CVSD, mSBC and other codecs.
2. Verify if headset sending AT+BAC with supported codecs.
3. Check if SCO is established with mSBC codec.
Failure:
SCO is established with CVSD codec.
Root cause:
When parsing AT+BAC command, if unknown codec is received,
we are falling back to CVSD although mSBC is supported in HF.
Fix:
AT+BAC parsing function modified to return correct codecs
supported by HF when it encounters unknown codecs in arguments
of AT+BAC.
Bug:
27852645
Change-Id: I9ac7675c9d863e7362f85e3b7b8d9a42462bd5e9
Srinu Jella [Tue, 29 Dec 2015 08:00:19 +0000 (13:30 +0530)]
Avoid double-free on SDP search failure
Use case: BT transfer fails in Doze mode.
Pre-condition:
1. Device is in Doze mode.
2. Device is in Active state.
Steps to reproduce:
1. On test device and support device, turn on Bluetooth and keep test device in Bluetooth on screen.
2. Put device in Doze mode:
adb shell dumpsys battery unplug
adb shell dumpsys deviceidle step
3. From support device send pair request to test device.
4. Pair two devices.
5. Put test device in Doze mode again.
6. Share one picture from support device to test device by Bluetooth.
7. Accept Bluetooth file transferring request.
Failure: From DUT, BT transfer is failed.
Root cause: Free buffer is called twice for the SDP search failure case.
Fix: Added null check for p_sdp_db to avoid freeing same buffer
again on SDP search failure.
Bug:
27852645
Change-Id: Ic7776e842c52418c2b0fb6d6479233d01c709dc2
Andre Eisenbach [Fri, 4 Mar 2016 06:36:51 +0000 (22:36 -0800)]
Remove bluedroidtest
Use bluetooth-cli/bluetoothtbd instead.
Bug:
25369253
Change-Id: I485919dce4bf3229733c85e6a33c754b9cbd62fc
Sharvil Nanavati [Thu, 11 Jun 2015 06:20:24 +0000 (23:20 -0700)]
Delete unused function declarations from sdp_api.h.
Change-Id: I8db02d557fdfc138f2ec8de2b2d45049175fd999
Nitin Arora [Thu, 28 Jan 2016 01:07:55 +0000 (17:07 -0800)]
Avoid SMP process if another pairing is in progress
This change prevents the incoming pairing/security request
from a remote device when pairing with another remote has
been initiated by the host and has not yet begun.
The pairing request by the second remote will be rejected
Bug:
22525598
Change-Id: I676c85af39d5418c699161ad11eee5951f9203d7
Srinu Jella [Tue, 25 Aug 2015 13:12:32 +0000 (18:42 +0530)]
Increase the number of security slots for other new profiles
Use case: MAP Sanity Test fail in multi-profile scenario.
Steps:
1. Connect to Instance 1 - Email Sanity Test Case
2. Connect to Instance 0&1 - Email & SMS Sanity Test Case
Failure: MAP sanity fail in multi-profile scenario.
Root Cause: some profile coonnection may fail in multi
profile scenario due to non availability of security id.
Fix: Increased the security slots to 75 to accomadate new
profiles introduced.
Bug:
27852645
Change-Id: Ic7c0268aea654cba2dee0c323ca0342e71ebc577