OSDN Git Service

android-x86/system-bt.git
9 years agoRemove dependency on GKI tasks from BTIF media task.
Sharvil Nanavati [Mon, 2 Mar 2015 23:34:21 +0000 (15:34 -0800)]
Remove dependency on GKI tasks from BTIF media task.

The previous code started a thread and posted a long-running function
to the thread's event loop. In essence, it created a thread and ran
a custom thread main that did its own event handling using GKI_wait.

The new code doesn't use GKI_wait or GKI_send_event at all. Instead,
it uses thread_post and the thread's reactor to enqueue and dispatch
events.

9 years agoDon't call GKI_send_event on BTU task since it's not a GKI task anymore.
Sharvil Nanavati [Mon, 2 Mar 2015 23:02:39 +0000 (15:02 -0800)]
Don't call GKI_send_event on BTU task since it's not a GKI task anymore.

9 years agoRemove GKI timers
Sharvil Nanavati [Mon, 2 Mar 2015 22:56:24 +0000 (14:56 -0800)]
Remove GKI timers

9 years agoAdding some documentation for the power management flow.
June R. Tate-Gans [Thu, 9 Oct 2014 21:16:25 +0000 (14:16 -0700)]
Adding some documentation for the power management flow.

9 years agoAdd sniff changed log statement on the mode changed event
Zach Johnson [Wed, 28 Jan 2015 19:16:15 +0000 (11:16 -0800)]
Add sniff changed log statement on the mode changed event

This will ensure we log accordingly when the other end
decides to put the connection into sniff mode.

9 years agoCollapse BNEP #defines that don't need to be configurable.
Sharvil Nanavati [Wed, 21 Jan 2015 07:12:31 +0000 (23:12 -0800)]
Collapse BNEP #defines that don't need to be configurable.

In some instances, defining these macros to FALSE would result in
broken runtime behavior (e.g. UUID fields containing uninitialized
values). This change collapses the following defines:

BNEP_SUPPORTS_PROT_FILTERS
BNEP_SUPPORTS_MULTI_FILTERS
BNEP_SUPPORTS_DEBUG_DUMP
BNEP_SUPPORTS_ALL_UUID_LENGTHS

9 years agoAdd a new l2cap_client class.
Sharvil Nanavati [Mon, 19 Jan 2015 18:03:08 +0000 (10:03 -0800)]
Add a new l2cap_client class.

The code to negotiate an L2CAP connection is currently scattered
and duplicated throughout the codebase. Each profile that uses
L2CAP has its own explicit or implicit state machine to go establish
a connection and go through the handshake. This class is intended
to consolidate that duplicated code and provide a usable API for
L2CAP client connections.

9 years agoAdd connection-specific function L2CA_SetConnectionCallbacks.
Sharvil Nanavati [Sun, 18 Jan 2015 06:12:38 +0000 (22:12 -0800)]
Add connection-specific function L2CA_SetConnectionCallbacks.

This function allows a client to specify callback routines per-
connection instead of per-PSM.

9 years agoproperty api unification, naming and testing
Chris Manton [Thu, 8 Jan 2015 18:47:59 +0000 (10:47 -0800)]
property api unification, naming and testing

9 years agoAdd a reference counted buffer implementation.
Sharvil Nanavati [Mon, 15 Dec 2014 09:37:59 +0000 (01:37 -0800)]
Add a reference counted buffer implementation.

This implementation introduces the notion of a 'slice'. A slice is
simply a sub-buffer of the original buffer. Slices refer to their
parent buffer so no memory is copied and slice creation becomes an
O(1) operation. Although I'm introducing a new concept, in practice,
a slice is indistinguishable from a buffer (they share a type and
all operations).

I expect slices to be used heavily during packet construction. For
example, an RFCOMM implementation would request a buffer from the
L2CAP layer (which may in turn request a buffer from the HCI layer).
The L2CAP layer would reserve some space in the buffer for its header
and return a slice to the RFCOMM layer.

9 years agoCollapse more feature flags.
Sharvil Nanavati [Mon, 29 Dec 2014 18:24:15 +0000 (10:24 -0800)]
Collapse more feature flags.

Start reviewing in include/bt_target.h.

9 years agoCollapse RFCOMM_INCLUDED and GAP_INCLUDED guards.
Sharvil Nanavati [Mon, 29 Dec 2014 06:29:42 +0000 (22:29 -0800)]
Collapse RFCOMM_INCLUDED and GAP_INCLUDED guards.

Both of these features are always available in bluedroid.

9 years agoDelete unused Broadcom-specific extensions API.
Sharvil Nanavati [Mon, 29 Dec 2014 12:51:27 +0000 (04:51 -0800)]
Delete unused Broadcom-specific extensions API.

9 years agoEliminate unusable wcassert code in favor of plain old C asssert.
Sharvil Nanavati [Mon, 29 Dec 2014 12:23:30 +0000 (04:23 -0800)]
Eliminate unusable wcassert code in favor of plain old C asssert.

The WC_* macros only expand to something meaningful when _DEBUG is
also defined. However, on enabling _DEBUG, bluedroid fails to build
because the wc_assert function is not defined anywhere. We can get
what I imagine is the equivalent behavior by switching over to the
standard C assert macro.

9 years agoDrop duplicate profile connection requests
Zach Johnson [Mon, 12 Jan 2015 21:56:46 +0000 (13:56 -0800)]
Drop duplicate profile connection requests

If profile connection requests come in too quickly
for us to handle, clients can effectively DoS the bluetooth
stack.

We used to see out of buffer errors because the requests
were batched up and sitting on buffers the rest of the stack
needed. With the switch to pure allocation we didn't see that
specific problem anymore, but we were still running into the
sanity assert.

Bug: 18323666

9 years agoData type representing the bluetooth iac parameter
Chris Manton [Thu, 8 Jan 2015 17:19:20 +0000 (09:19 -0800)]
Data type representing the bluetooth iac parameter

9 years agoFirst pass at the bluedroid profile manager.
June R. Tate-Gans [Wed, 7 Jan 2015 01:38:29 +0000 (17:38 -0800)]
First pass at the bluedroid profile manager.

9 years agoRename legacy uuid_copy to not conflict
Chris Manton [Wed, 7 Jan 2015 21:59:14 +0000 (13:59 -0800)]
Rename legacy uuid_copy to not conflict

9 years agoAdd size_t inclusion
Chris Manton [Wed, 7 Jan 2015 21:54:24 +0000 (13:54 -0800)]
Add size_t inclusion

9 years agobt property object
Chris Manton [Wed, 7 Jan 2015 21:34:18 +0000 (13:34 -0800)]
bt property object

9 years agoAdd bdcopy method
Chris Manton [Wed, 7 Jan 2015 21:34:06 +0000 (13:34 -0800)]
Add bdcopy method

9 years agoRemove some more unused functions in btm_acl
Zach Johnson [Wed, 7 Jan 2015 17:48:50 +0000 (09:48 -0800)]
Remove some more unused functions in btm_acl

9 years agoRemove unused read link policy + friends
Zach Johnson [Wed, 7 Jan 2015 17:37:20 +0000 (09:37 -0800)]
Remove unused read link policy + friends

Was never called, and the removal of which obviated
a lot of other code.

9 years agoRemove unused link supervision timeout code
Zach Johnson [Wed, 7 Jan 2015 17:18:28 +0000 (09:18 -0800)]
Remove unused link supervision timeout code

The btm callback was never set, so this code
did nothing useful.

9 years agouuid_test
Chris Manton [Wed, 7 Jan 2015 19:07:04 +0000 (11:07 -0800)]
uuid_test

9 years agoDevice class implementation
Chris Manton [Thu, 20 Nov 2014 06:15:35 +0000 (22:15 -0800)]
Device class implementation

9 years agoAdd compile time checks
Chris Manton [Tue, 6 Jan 2015 23:45:41 +0000 (15:45 -0800)]
Add compile time checks

9 years agoAdd more uuid methods
Chris Manton [Tue, 11 Nov 2014 20:14:52 +0000 (12:14 -0800)]
Add more uuid methods

9 years agoAdd a simple classic peer
Zach Johnson [Wed, 5 Nov 2014 05:43:33 +0000 (21:43 -0800)]
Add a simple classic peer

9 years agoAdd a hash function for bluetooth addresses
Zach Johnson [Wed, 5 Nov 2014 22:29:31 +0000 (14:29 -0800)]
Add a hash function for bluetooth addresses

Also includes simple tests for it + disambiguates
including hash_function.h throughout the stack.

9 years agoAdd key equality function option for hash_map
Zach Johnson [Wed, 5 Nov 2014 22:25:49 +0000 (14:25 -0800)]
Add key equality function option for hash_map

This will allow us to do deeper equality on things like
bluetooth addresses where the actual pointers are different
but the values of the bluetooth addresses are the same.

9 years agoClean up unused functions in btm_sec
Zach Johnson [Sat, 27 Dec 2014 04:29:27 +0000 (20:29 -0800)]
Clean up unused functions in btm_sec

9 years agoRemove unused security abort callback
Zach Johnson [Thu, 25 Dec 2014 03:09:22 +0000 (19:09 -0800)]
Remove unused security abort callback

The callback in BTA was null, so it never was actually
used.

9 years agoRemove link key request callback
Zach Johnson [Wed, 24 Dec 2014 23:59:14 +0000 (15:59 -0800)]
Remove link key request callback

The core security manager stores whether we have link keys
for each peer. This other call up to the bta device manager
to see if it has link keys is a dead end and does nothing.

9 years agoCanonicalize HCI logtags with bt_ prefix
Zach Johnson [Sat, 27 Dec 2014 01:51:03 +0000 (17:51 -0800)]
Canonicalize HCI logtags with bt_ prefix

9 years agoAdd bash script for running unit tests
Zach Johnson [Thu, 25 Dec 2014 05:07:38 +0000 (21:07 -0800)]
Add bash script for running unit tests

This script helps simplify pushing and running bluedroid unit tests.
You can run all of the known ones, or provide names of selected unit
test executables you wish to run.

9 years agoRename Bluetooth binaries to use the net_ and net_test_ prefixes.
Sharvil Nanavati [Mon, 29 Dec 2014 08:56:46 +0000 (00:56 -0800)]
Rename Bluetooth binaries to use the net_ and net_test_ prefixes.

9 years agoSometimes I forget stopping shell before running bdtest.
Steve Gu [Fri, 7 Nov 2014 23:05:06 +0000 (15:05 -0800)]
Sometimes I forget stopping shell before running bdtest.

Make this check automatic and print out a friendly message for reminder.

9 years agoRemove unnecessary newlines at the end of log statements.
Sharvil Nanavati [Fri, 26 Dec 2014 06:17:09 +0000 (22:17 -0800)]
Remove unnecessary newlines at the end of log statements.

9 years agoAdd platform-independent logging macros to OSI.
Sharvil Nanavati [Wed, 24 Dec 2014 07:08:58 +0000 (23:08 -0800)]
Add platform-independent logging macros to OSI.

These macros should replace ALOG* and the various trace macros
used throughout bluedroid. This change eliminates all uses of the
ALOG* macros in favor of the new ones.

9 years agoRemove unused ACL packet size getters, remove unused timer entity
Zach Johnson [Mon, 8 Sep 2014 19:10:30 +0000 (12:10 -0700)]
Remove unused ACL packet size getters, remove unused timer entity

9 years agoExtend bdtool to accept / initiate SCO connections.
Sharvil Nanavati [Fri, 12 Dec 2014 07:19:44 +0000 (23:19 -0800)]
Extend bdtool to accept / initiate SCO connections.

This is a great way to run controlled audio quality experiments for
the Handsfree profile.

9 years agoRemove unused shell script, gen-buildcfg.sh.
Sharvil Nanavati [Fri, 12 Dec 2014 09:52:55 +0000 (01:52 -0800)]
Remove unused shell script, gen-buildcfg.sh.

9 years agoAdd RFCOMM result code string for an unspecified error.
Sharvil Nanavati [Sun, 7 Dec 2014 22:15:09 +0000 (14:15 -0800)]
Add RFCOMM result code string for an unspecified error.

The code enumerating the list of possible error codes is not
a C enum and the original authors skipped a value. As a result, the
table mapping error codes to strings is off by one after that skipped
value. I'm inserting a string for that error code even though it's not
defined so the strings line up with the actual error.

9 years agoAdding some logging for the close states for RFCOMM connections.
June R. Tate-Gans [Tue, 2 Dec 2014 20:48:03 +0000 (12:48 -0800)]
Adding some logging for the close states for RFCOMM connections.

9 years agoFix bug in SDP server where it would get into an infinite loop.
Sharvil Nanavati [Sat, 15 Nov 2014 08:17:35 +0000 (00:17 -0800)]
Fix bug in SDP server where it would get into an infinite loop.

If the SDP database is mutated while a client is fetching SDP records,
we can end up in an infinite request/response loop. Specifically, if
an SDP record is deleted after a client has received the first fragment
of a multi-fragment response, the server will not be able to complete
the request. Instead, it will return the same continuation token back
to the client which will request the next fragment and the server,
again, will return the same continuation token. This process repeats
forever, resulting in a large amount of unncessary BT traffic and
power costs on both devices.

Unfortunately, this seems to be a design flaw in the current SDP
server implementation. This change simply detects the above condition
and aborts the transaction entirely by returning an error to the
client. Future changes will eliminate this class of problem entirely.

9 years agoIntroduce a growing array class.
Sharvil Nanavati [Fri, 14 Nov 2014 01:29:21 +0000 (17:29 -0800)]
Introduce a growing array class.

Arrays are useful for storing a collection of small objects where
linked list node allocations would be a lot of overhead. They are
also useful for random access through the container. Lastly, this
implementation assumes copy semantics which are intentionally
different from list's reference semantics (since objects are assumed
to be smaller).

The current interface is intentionally sparse.

9 years agoIncrease GKI buffer size
Zach Johnson [Thu, 13 Nov 2014 21:55:32 +0000 (13:55 -0800)]
Increase GKI buffer size

Bug: 18324148

9 years agoAdd counter unit tests
Chris Manton [Tue, 11 Nov 2014 21:15:13 +0000 (13:15 -0800)]
Add counter unit tests

9 years agoExplicitly add include paths
Chris Manton [Thu, 13 Nov 2014 00:31:43 +0000 (16:31 -0800)]
Explicitly add include paths

Allocation test harness included relatively local
header allocation_tracker.h.  Change to include
absolute header location from bluedroid root.

9 years agoEnable allocation tracking for eng and userdebug builds.
Sharvil Nanavati [Thu, 13 Nov 2014 09:04:19 +0000 (01:04 -0800)]
Enable allocation tracking for eng and userdebug builds.

This change will result in a constant increase in memory utilization
per allocation but will help us catch memory errors earlier.

9 years agoAdd a "setDiscoverable" command to hci.
Sharvil Nanavati [Wed, 5 Nov 2014 22:48:58 +0000 (14:48 -0800)]
Add a "setDiscoverable" command to hci.

9 years agoAdding in some additional, but critical, logs.
June R. Tate-Gans [Tue, 11 Nov 2014 00:34:45 +0000 (16:34 -0800)]
Adding in some additional, but critical, logs.

9 years agoUpdate module names to not use C preprocessor and to be at top of headers.
Sharvil Nanavati [Fri, 7 Nov 2014 02:34:06 +0000 (18:34 -0800)]
Update module names to not use C preprocessor and to be at top of headers.

9 years agoReplace BUFFER_Q with list_t #2
Chris Manton [Fri, 19 Sep 2014 17:49:50 +0000 (10:49 -0700)]
Replace BUFFER_Q with list_t #2

rcv_hold_q -> rcv_pending_q

9 years agoReplace BUFFER_Q with list_t
Chris Manton [Thu, 18 Sep 2014 23:19:26 +0000 (16:19 -0700)]
Replace BUFFER_Q with list_t

soc_queue

9 years agoGeneral tidy up of L2CAP flow control
Chris Manton [Mon, 22 Sep 2014 21:46:41 +0000 (14:46 -0700)]
General tidy up of L2CAP flow control

- Alphabetize include files
- Add asserts
- Ensure static funtions are marked as such
- Remove unnecessary logging

9 years agoProperly iterate when removing from list
Chris Manton [Mon, 22 Sep 2014 20:41:51 +0000 (13:41 -0700)]
Properly iterate when removing from list

Ensure we hand off the node iterator before
proceeding to remove from the list.

9 years agoAdd error checking when getting property
Chris Manton [Fri, 17 Oct 2014 17:58:53 +0000 (10:58 -0700)]
Add error checking when getting property

Also added PAN API

9 years agoExpand include pathnames and add bd root path
Chris Manton [Fri, 7 Nov 2014 01:08:20 +0000 (17:08 -0800)]
Expand include pathnames and add bd root path

Hopefully this will squash the sem_t semaphore_t collision

9 years agoBack GKI buffers with malloc
Zach Johnson [Wed, 12 Nov 2014 06:57:38 +0000 (22:57 -0800)]
Back GKI buffers with malloc

It looks like we're somehow getting NULL back from buffer allocation.
Backing GKI buffers with malloc should fix this.

Bug: 18324148

9 years agoungkibufferize the profile queue, use assert
Zach Johnson [Wed, 3 Dec 2014 23:18:49 +0000 (15:18 -0800)]
ungkibufferize the profile queue, use assert

ASSERTC isn't a real assert. It just prints a message and allows the
code to carry on. Switch to asserts so the exception condition is
evident in the crash log.

Make the profile queue use osi_malloc/free instead of gki buffers, so it
can't drain the buffer pool.

9 years agoPrint out every power management mode switch initiated from the host.
Sharvil Nanavati [Sat, 15 Nov 2014 01:04:46 +0000 (17:04 -0800)]
Print out every power management mode switch initiated from the host.

9 years agoFixed HAL layer ignore state handling
Zach Johnson [Tue, 11 Nov 2014 07:42:36 +0000 (23:42 -0800)]
Fixed HAL layer ignore state handling

If the hci layer ever entered the ignore state,
synchronization death was immenent. This patch fixes that.
Also adds additional info print out when entering the ignored state.

Adds tests for the ignored state.

Doesn't solve the problem of why we were getting NULL back from
the buffer allocator, though. (The trigger for the ignored state.)

Bug: 18156298

9 years agoAdd a command line flag to skip sanity test suite.
Sharvil Nanavati [Wed, 5 Nov 2014 10:09:42 +0000 (02:09 -0800)]
Add a command line flag to skip sanity test suite.

9 years agobdtest: read the paired device's bdaddr from the stack config file.
Sharvil Nanavati [Wed, 5 Nov 2014 09:21:58 +0000 (01:21 -0800)]
bdtest: read the paired device's bdaddr from the stack config file.

9 years agoRemove ptim and associated GKI timer functions
Zach Johnson [Sat, 1 Nov 2014 23:16:11 +0000 (16:16 -0700)]
Remove ptim and associated GKI timer functions

9 years agoRemove some remaining references to message based timers
Zach Johnson [Thu, 26 Feb 2015 23:33:35 +0000 (15:33 -0800)]
Remove some remaining references to message based timers

Some of this gets cleaned up in a later CL during the merge
but removing them now so the ptim removal change compiles.

9 years agoRemove unused link key functions from devctl
Zach Johnson [Sat, 1 Nov 2014 22:13:04 +0000 (15:13 -0700)]
Remove unused link key functions from devctl

The security manager looks for the link key notification event,
so it doesn't use these read/write link key functions at all.

9 years agoModify bdtest to enable running individual tests by their name.
Steve Gu [Tue, 4 Nov 2014 01:05:58 +0000 (17:05 -0800)]
Modify bdtest to enable running individual tests by their name.

9 years agoRemove the afh functions from btm_devctl
Zach Johnson [Fri, 31 Oct 2014 04:40:13 +0000 (21:40 -0700)]
Remove the afh functions from btm_devctl

The callers were removed in a previous CL, so these
are no longer necessary.

9 years agoRemove BTA_CheckEirData, a direct redefinition of BTM_CheckEirData
Zach Johnson [Fri, 31 Oct 2014 04:02:58 +0000 (21:02 -0700)]
Remove BTA_CheckEirData, a direct redefinition of BTM_CheckEirData

Gentle move towards using more of BTM directly.

9 years agoRemove some functionredefinitions from bta dm
Zach Johnson [Fri, 31 Oct 2014 02:29:12 +0000 (19:29 -0700)]
Remove some functionredefinitions from bta dm

These weren't used. And were another layer of indirection
for things that already existed. One reason for the initial
implementation is that they would ensure the actual calls
happen in a known thread.

9 years agoUse correct service ID for A2DP source to make way for A2DP sink.
Sharvil Nanavati [Thu, 16 Oct 2014 01:30:49 +0000 (18:30 -0700)]
Use correct service ID for A2DP source to make way for A2DP sink.

9 years agoL2CAP: expose a function to return the RCID and ACL handle for a given LCID.
Sharvil Nanavati [Wed, 15 Oct 2014 01:46:32 +0000 (18:46 -0700)]
L2CAP: expose a function to return the RCID and ACL handle for a given LCID.

9 years agoMove controller module to device directory
Chris Manton [Fri, 31 Oct 2014 21:54:51 +0000 (14:54 -0700)]
Move controller module to device directory

9 years agoUnused function
Chris Manton [Fri, 31 Oct 2014 17:41:37 +0000 (10:41 -0700)]
Unused function

9 years agoRemove unused inquiry DB functions
Chris Manton [Wed, 29 Oct 2014 04:30:03 +0000 (21:30 -0700)]
Remove unused inquiry DB functions

These are not used for the inquiry database.

9 years agoRemove always true definition BTM_EIR_SERVER_INCLUDED
Chris Manton [Fri, 24 Oct 2014 16:12:41 +0000 (09:12 -0700)]
Remove always true definition BTM_EIR_SERVER_INCLUDED

9 years agoRemoving unused function BTA_DmSetScanParam()
Chris Manton [Thu, 23 Oct 2014 23:28:28 +0000 (16:28 -0700)]
Removing unused function BTA_DmSetScanParam()

9 years agoRemove always true BTM_USE_INQ_RESULTS_FILTER
Chris Manton [Thu, 23 Oct 2014 19:36:14 +0000 (12:36 -0700)]
Remove always true BTM_USE_INQ_RESULTS_FILTER

9 years agoRemove always false flag BTM_BYPASS_EVENT_FILTERING
Chris Manton [Thu, 23 Oct 2014 19:30:15 +0000 (12:30 -0700)]
Remove always false flag BTM_BYPASS_EVENT_FILTERING

9 years agoInstrument data flow a bit
Chris Manton [Tue, 21 Oct 2014 20:55:24 +0000 (13:55 -0700)]
Instrument data flow a bit

Use counters to grab some select data metrics.

9 years agoDon't dispatch connections in the connection queue until stack comes up.
Sharvil Nanavati [Mon, 27 Oct 2014 23:56:42 +0000 (16:56 -0700)]
Don't dispatch connections in the connection queue until stack comes up.

Bug: 18139425

9 years agocounter implementation
Chris Manton [Wed, 13 Aug 2014 23:38:57 +0000 (16:38 -0700)]
counter implementation

9 years agoRemove duplicate functionality
Chris Manton [Thu, 16 Oct 2014 22:53:13 +0000 (15:53 -0700)]
Remove duplicate functionality

Now that bdtest depends on btcore we can
remove the bdaddr parsing functionality.

9 years agoRemove uncompiled unused PBAP support
Zach Johnson [Mon, 20 Oct 2014 23:33:08 +0000 (16:33 -0700)]
Remove uncompiled unused PBAP support

Like OPP, the phone book access profile is implemented in
java for android. Cleaning up some references to uncompiled phone book
support in bluedroid.

Left the few definitions SDP relies on. We can consolidate that later.

9 years agoRemove unused functions BTM_RegForLstoEvt/btm_acl_set_discing
Chris Manton [Thu, 16 Oct 2014 17:54:20 +0000 (10:54 -0700)]
Remove unused functions BTM_RegForLstoEvt/btm_acl_set_discing

9 years agoRemove always true BTM_PWR_MGR_INCLUDED
Chris Manton [Wed, 15 Oct 2014 23:31:49 +0000 (16:31 -0700)]
Remove always true BTM_PWR_MGR_INCLUDED

There are two code paths to set the chip into the power modes.
The power manager aggregates access to the power modes.
Does not compile when set to false.

9 years agoRemove always true BTM_BUSY_LEVEL_CHANGE_INCLUDED
Chris Manton [Wed, 15 Oct 2014 21:12:08 +0000 (14:12 -0700)]
Remove always true BTM_BUSY_LEVEL_CHANGE_INCLUDED

9 years agoRemove data_types.h
Chris Manton [Tue, 30 Sep 2014 04:37:44 +0000 (21:37 -0700)]
Remove data_types.h

9 years agoActually remove bd.[c|h]
Chris Manton [Wed, 15 Oct 2014 16:35:14 +0000 (09:35 -0700)]
Actually remove bd.[c|h]

9 years agoRemoval of bd.[c|h]
Chris Manton [Wed, 1 Oct 2014 16:14:06 +0000 (09:14 -0700)]
Removal of bd.[c|h]

Consolidate legacy types into bt_types.h

9 years agoMoving btif_sock_sdp to stdint and stdbool.
June R. Tate-Gans [Fri, 19 Sep 2014 16:54:19 +0000 (09:54 -0700)]
Moving btif_sock_sdp to stdint and stdbool.

9 years agoFix how add_sdp_by_uuid passes the uuid to SDP_AddSequence
Zach Johnson [Tue, 16 Sep 2014 05:29:54 +0000 (22:29 -0700)]
Fix how add_sdp_by_uuid passes the uuid to SDP_AddSequence

SDP_AddSequence expects to dereference the passed
pointer and find a pointer there, and that pointer
pointing to UINT8s.

Before, we were passing &type_buf, which gives the
address of the first UINT8 in the array on the stack.
This meant SDP_AddSequence was treating the first few
bytes of the uuid as a pointer to somewhere, leading
to a segfault when it tried to follow it.

9 years agoRefactoring btif_sock_sdp.c for clarity
June R. Tate-Gans [Thu, 11 Sep 2014 00:05:21 +0000 (17:05 -0700)]
Refactoring btif_sock_sdp.c for clarity

9 years agoRevert "BT MAP: added support for email sharing over BT"
Zach Johnson [Thu, 26 Feb 2015 00:46:34 +0000 (16:46 -0800)]
Revert "BT MAP: added support for email sharing over BT"

Another change being backed out until the megamerge is over.

This reverts commit c331807e3c3a0e15180a11325e1635ae5268aa39.

9 years agoRevert "MAP: SDP corruption"
Zach Johnson [Thu, 26 Feb 2015 00:44:31 +0000 (16:44 -0800)]
Revert "MAP: SDP corruption"

Backing out so our rewrite merges cleanly.

This reverts commit 54e24af853a77a057995ee4f234bae4d490b32e5.

9 years agoRevert "Forgot device/Android.mk"
Andre Eisenbach [Thu, 26 Feb 2015 00:06:15 +0000 (16:06 -0800)]
Revert "Forgot device/Android.mk"

Broken build...

This reverts commit d935ef9446990c17412d2b0d5ce158df54377871.

9 years agoRevert "Remove unused inquiry variables"
Andre Eisenbach [Thu, 26 Feb 2015 00:01:07 +0000 (16:01 -0800)]
Revert "Remove unused inquiry variables"

Still used by BTA API BTA_DmSetScanParam

This reverts commit d84f0c8c5eb67a45cb2e0993324d1dff8b499b1b.