- Mar 16, 2015
-
-
Sharvil Nanavati authored
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
-
Sharvil Nanavati authored
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.
-
Sharvil Nanavati authored
This function allows a client to specify callback routines per- connection instead of per-PSM.
-
Chris Manton authored
-
Sharvil Nanavati authored
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.
-
Sharvil Nanavati authored
Start reviewing in include/bt_target.h.
-
Sharvil Nanavati authored
Both of these features are always available in bluedroid.
-
Sharvil Nanavati authored
-
Sharvil Nanavati authored
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.
-
Zach Johnson authored
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
-
Chris Manton authored
-
June R. Tate-Gans authored
-
Chris Manton authored
-
Chris Manton authored
-
Chris Manton authored
-
Chris Manton authored
-
Zach Johnson authored
-
Zach Johnson authored
Was never called, and the removal of which obviated a lot of other code.
-
Zach Johnson authored
The btm callback was never set, so this code did nothing useful.
-
Chris Manton authored
-
Chris Manton authored
-
Chris Manton authored
-
Chris Manton authored
-
Zach Johnson authored
-
Zach Johnson authored
Also includes simple tests for it + disambiguates including hash_function.h throughout the stack.
-
Zach Johnson authored
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.
-
Zach Johnson authored
-
Zach Johnson authored
The callback in BTA was null, so it never was actually used.
-
Zach Johnson authored
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.
-
Zach Johnson authored
-
Zach Johnson authored
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.
-
Sharvil Nanavati authored
-
Steve Gu authored
Make this check automatic and print out a friendly message for reminder.
-
Sharvil Nanavati authored
-
Sharvil Nanavati authored
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.
-
Zach Johnson authored
-
Sharvil Nanavati authored
This is a great way to run controlled audio quality experiments for the Handsfree profile.
-
Sharvil Nanavati authored
-
Sharvil Nanavati authored
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.
-
June R. Tate-Gans authored
-