1817d9d5329d65ccb9ec44f2e30727d4c3097e86 |
|
18-May-2016 |
Pavlin Radoslavov <pavlin@google.com> |
Improve poll(2) handling and log messages * Better error handling and log messages inside uipc_flush_ch_locked() * Add missing error check inside UIPC_Read() * Add missing OSI_NO_INTR() wrapper around poll() inside function btu_exec_tap_fd_read() Bug: 28823662 Change-Id: I5f1c720861bea594d53ed6465a5ff327ba352598
/system/bt/btif/src/btif_pan.c
|
574dcfb73e3741d715f7d4394fe5d3bd587cb0d2 |
|
12-May-2016 |
Pavlin Radoslavov <pavlin@google.com> |
Restart failed system calls interrupted with errno of EINTR In number of places we don't handle properly system calls failures when the errno is EINTR (i.e., the system call was interrupted by a signal). In all our use cases, the system calls should be restarted. The handling of the following system calls (as used in the code) has been updated/fixed: poll, send, recv, sendmsg, nanosleep, epoll_wait read - mostly (e.g., socket-like fds) write - mostly (e.g., socket-like fds) select, accept, connect Bug: 28471477 Bug: 28658141 Change-Id: I03e6f0f67e33876780fb6d02c33eb84547ba8f95
/system/bt/btif/src/btif_pan.c
|
08ca0bbfab6cc3ae32998aa1840d977abcb80360 |
|
11-Aug-2015 |
Srinu Jella <sjella@codeaurora.org> |
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
/system/bt/btif/src/btif_pan.c
|
3aa58c5fad5be75c559109ddce3ccd79ac807af9 |
|
15-Feb-2016 |
Pavlin Radoslavov <pavlin@google.com> |
Fix compilation warnings/errors on fugu Fix compilation warnings/errors on fugu about unused variables. Change-Id: Ib68097122f27c631ab36b71a6815d4e1f3b60558
/system/bt/btif/src/btif_pan.c
|
abd70abb5e42c9431df94fe9d2c4a78a0d8d9af9 |
|
05-Feb-2016 |
Pavlin Radoslavov <pavlin@google.com> |
Replaced osi_getbuf()/osi_freebuf() with osi_malloc()/osi_free() Removed the alternative buffer allocation osi_getbuf() / osi_freebuf() and use instead osi_malloc() / osi_free(). Correspondingly, replaced usage of osi_freebuf_and_reset() with osi_free_and_reset(). Bug: 24914560 Change-Id: I7a9599ba7fa900321f087da684428133eb0ddd6b
/system/bt/btif/src/btif_pan.c
|
20524d393e8b3bea4c573f7980cd843500b0e6a4 |
|
03-Feb-2016 |
Pavlin Radoslavov <pavlin@google.com> |
Refactor usage of osi_free() and osi_freebuf() * Allow to call osi_freebuf(ptr) on NULL pointers. This simplifies the code: a notable number of "if (foo != NULL)" checks are removed. * Add new function osi_free_and_reset(p_ptr) that frees the buffer, and explicitly resets the pointer to NULL. This prevents unintended usage of free memory. * Add corresponding function osi_freebuf_and_reset(p_ptr) * Minor cleanup around usages of osi_free() and osi_freebuf() Also: * Removed unused function btif_gattc_cleanup() * Replaced usage of the following functions with osi_freebuf_and_reset() - mca_free_buf() - utl_freebuf() - btif_hl_free_buf() * Replaced usage of rc_supported_event_free() with osi_freebuf() * Replaced usage of btif_hl_get_buf() with osi_getbuf() * Eliminate some of the osi_get_buf_size() calls Bug: 22948224 Change-Id: Ife860658b26274da6f228d7353cb0f1531587337
/system/bt/btif/src/btif_pan.c
|
e40c734e67a59a7cd750a33a2d077ac6911768b0 |
|
19-Oct-2015 |
Pavlin Radoslavov <pavlin@google.com> |
am 258c2538: GKI cleanup - moved GKI buffer allocation wrappers to OSI * commit '258c2538e3b62a8cdb403f2730c45d721e5292b4': GKI cleanup - moved GKI buffer allocation wrappers to OSI
|
e0f21ad7a8b6ff18babe774d9e047f8f13d2f11d |
|
19-Oct-2015 |
Pavlin Radoslavov <pavlin@google.com> |
am 70ae7de9: GKI cleanup - Remove GKI pool related defines * commit '70ae7de9451e3dc074a048ba98b672a6ba3a4551': GKI cleanup - Remove GKI pool related defines
|
41a842af4974a51f574872f2497794da7416d0dd |
|
19-Oct-2015 |
Pavlin Radoslavov <pavlin@google.com> |
am 2e3d006b: GKI cleanup - Eliminate usage of pool buffers * commit '2e3d006b96eafb0651fe7f78d28250faf89405de': GKI cleanup - Eliminate usage of pool buffers
|
258c2538e3b62a8cdb403f2730c45d721e5292b4 |
|
28-Sep-2015 |
Pavlin Radoslavov <pavlin@google.com> |
GKI cleanup - moved GKI buffer allocation wrappers to OSI * Moved the following GKI buffer allocation functions to OSI: - GKI_getbuf() -> osi_getbuf() - GKI_freebuf() -> osi_freebuf() - GKI_get_buf_size() -> osi_get_buf_size() For now we need the osi_getbuf() / osi_freebuf() allocation wrapper, because we need to be able to call osi_get_buf_size() on the allocated buffer. In the future those should be replaced with osi_malloc() / osi_free(). Currently, the osi_malloc() buffer size internal allocation tracker does not always track the size, hence we need the osi_getbuf() wrapper. * Replaced GKI_MAX_BUF_SIZE with BT_DEFAULT_BUFFER_SIZE * Added new file include/bt_common.h that can be usee to include few files that should be included alost everywhere (e.g. bt_target.h" NOTE: This file might be removed in the future and we should include everywhere the right set of header files. * Removed some of the GKI-related references * Removed file include/gki_target.h Change-Id: Ie87830e73143de200746d54235aa99f228a95024
/system/bt/btif/src/btif_pan.c
|
2181f1a4a428926da214b94327c3bcef9d283522 |
|
06-Sep-2015 |
Nitin Shivpure <nshivpur@codeaurora.org> |
Fix PAN crash due to fd mismatch A case, where tap read thread is always exist, Sometimes data packets get recieved on older fd, which is not available. which is causing assert due to fd mismatch in race condition. when next pan connection is immediately available. If last pan connection gets disconnected, then tap_read_thread should be destroyed in btif context to fix this issue. Bug: 24093456 Change-Id: Ic1053200a7be4c2091d6c394634831ca3fbd61df
/system/bt/btif/src/btif_pan.c
|
70ae7de9451e3dc074a048ba98b672a6ba3a4551 |
|
23-Sep-2015 |
Pavlin Radoslavov <pavlin@google.com> |
GKI cleanup - Remove GKI pool related defines * Removed pool ID related defines * Updated / renamed / cleanup buffer size related defines * Added new #define BT_DEFAULT_BUFFER_SIZE * Removed unused defines Change-Id: Ib1fbf463d1e6fda2c71631347de0c365a37ba5ce
/system/bt/btif/src/btif_pan.c
|
2e3d006b96eafb0651fe7f78d28250faf89405de |
|
18-Sep-2015 |
Pavlin Radoslavov <pavlin@google.com> |
GKI cleanup - Eliminate usage of pool buffers * Replace usage of function GKI_getpoolbuf() with GKI_getbuf() * Remove usage of function GKI_poolutilization() * Remove usage of function GKI_poolfreecount() Change-Id: Ide938192b878bbfb4912642c903fce548f2b5368
/system/bt/btif/src/btif_pan.c
|
972a870b103fbf7ce7bf4da22416fde401b23a51 |
|
25-Sep-2015 |
Andre Eisenbach <eisenbach@google.com> |
resolved conflicts for ae0d983d to mnc-dr-dev-plus-aosp Change-Id: Ia701519a512273989c8ab3b9224242d5b4164603
|
bb2a4faddd9a7f03d13d37a23eb0da1ef52f9088 |
|
06-Sep-2015 |
Nitin Shivpure <nshivpur@codeaurora.org> |
Fix PAN crash due to fd mismatch A case, where tap read thread is always exist, Sometimes data packets get recieved on older fd, which is not available. which is causing assert due to fd mismatch in race condition. when next pan connection is immediately available. If last pan connection gets disconnected, then tap_read_thread should be destroyed in btif context to fix this issue. Bug: 24093456 Change-Id: Ic1053200a7be4c2091d6c394634831ca3fbd61df
/system/bt/btif/src/btif_pan.c
|
49120dc867c7818511b5afec461dfc97d17eef58 |
|
08-Jul-2015 |
Marie Janssen <jamuraa@google.com> |
build: Fix LOG_TAG define breakage, macro usage Fixes build breakages related to r.android.com/156982 Change-Id: Ib1143c41fe05a17c296226998afdb41a8cb6294a
/system/bt/btif/src/btif_pan.c
|
db554581079863974af8e1289646f5deea6fc044 |
|
26-Jun-2015 |
Marie Janssen <jamuraa@google.com> |
build: Update osi log functions, use consistently Update the LOG_* functions to take a tag argument which makes them more consistent with the Android Log.*(TAG, s) common syntax and removes some #define-dependency with osi/include/log.h. Also update to never use Android log functions directly. Also contains minor cleanup of some header includes. Bug: 21569831 Change-Id: If07385cafbea062232ecdbc7c673f908d5ef8921
/system/bt/btif/src/btif_pan.c
|
bb95452741bfd65723ea417c25dbd326c7568ab7 |
|
03-Jun-2015 |
Arman Uguray <armansito@google.com> |
build: Fix ptr <-> integer cast warnings This CL removes the -Wno-pointer-to-integer-cast and -Wno-integer-to-pointer-cast flags from GN build files. The resulting errors were fixed using the following: 1. All ptr <-> integer casts are now done by using the new PTR_TO_INT/INT_TO_PTR macros defined in osi.h 2. The TIMER_PARAM_TYPE macro, defined in gki/common/gki.h and include/bt_target.h have been redefined as void* rather than UINT32. This is better, since "void*" can act as a simple container without any precision loss that would be caused by a type such as UINT32 on 64-bit systems. void* inherently is a safer container for all pointer types but UINT32 isn't. BUG=21570302 Change-Id: I4a82c4a40c91caa31e372382c40d424be220cbe3
/system/bt/btif/src/btif_pan.c
|
2a527108d22861aa4091143c740e09235b3692c5 |
|
15-Oct-2014 |
Hemant Gupta <hemantg@codeaurora.org> |
Add proper checks for PAN & BNEP in BD stack This patch fixes issues for PAN & BNEP in BD stack identified by static analysis tool. Change-Id: I29417dae982abb5cef11379f8d03baad11ffde8b
/system/bt/btif/src/btif_pan.c
|
f4f744f7a9812e2dfd306382eab80c2caf25db37 |
|
06-May-2015 |
Mudumba Ananth <ananthm@broadcom.com> |
Fix BT PAN crash by re-ordering callback initialization Bug: 20868163 Change-Id: I8e3bb844b96b762f90a85d8d9d678a1a9cec9c32
/system/bt/btif/src/btif_pan.c
|
6ba8fda60a9137a9f53f7e14edd87184610744fc |
|
15-Oct-2014 |
Hemant Gupta <hemantg@codeaurora.org> |
Add proper checks for PAN & BNEP in BD stack This patch fixes issues for PAN & BNEP in BD stack identified by static analysis tool. Change-Id: I29417dae982abb5cef11379f8d03baad11ffde8b
/system/bt/btif/src/btif_pan.c
|
d30195cbf09735da593e186c4c99cce6232b072e |
|
30-May-2015 |
Arman Uguray <armansito@google.com> |
gn-build: Get btif to compile as its own module This CL adds support to build //btif:btif as its own target as a static library by introducing a new module-level BUILD.gn file, adding missing includes, and conditionally compiling code that is Android-specific (depends on libcutils). This removes/breaks some functionality on non-Android builds since the corresponding features are missing until we have a more unified replacement. BUG=21339022 Change-Id: Ibb0372da45f256c55fa894fdda3d70319ea008c9
/system/bt/btif/src/btif_pan.c
|
b4180cf8a5d70f9e1e815b64ba5e1df25d2fdda4 |
|
06-May-2015 |
Mudumba Ananth <ananthm@broadcom.com> |
Fix BT PAN crash by re-ordering callback initialization Bug: 20868163 Change-Id: I8e3bb844b96b762f90a85d8d9d678a1a9cec9c32
/system/bt/btif/src/btif_pan.c
|
59606cc1f9861f7f8c53b2dba6431e882fd2870b |
|
05-May-2015 |
Andre Eisenbach <eisenbach@google.com> |
Ensure PAN is initialized before invoking callbacks Fix minor conditional check and clean up surrounding code. Bug: 20717705 Change-Id: I581fda37708062327c86cc0548b2665c9811be25
/system/bt/btif/src/btif_pan.c
|
198bf210100fa97cedfa664321144e400fabb268 |
|
27-Apr-2015 |
Nitin Shivpure <nshivpur@codeaurora.org> |
Fix PAN initialization Change-Id: I32d8975f0f6e1ea18a361a19260ffea7a3ec8467
/system/bt/btif/src/btif_pan.c
|
98b744f270323db14705c1251bc7bc89d196e16d |
|
21-Apr-2015 |
Andre Eisenbach <eisenbach@google.com> |
Fix A2DP source double initialization problem Fixed a problem where A2DP source was initialized twice. Once before btif was properly initialize and then a second time when the JNI requests A2DP to be initialized, which would then fail. Change-Id: Ia5f10a5bda344fe3bd66818a302b6b3f9db32a20
/system/bt/btif/src/btif_pan.c
|
b246a1a750c5a337faaa6033b39e78c8bdd4c2fb |
|
10-Apr-2015 |
Prerepa Viswanadham <dham@google.com> |
Merge commit '4bf68bf020c7fd1aabcdc4b5d8f5fbb8bacdec9d' into merge_work Change-Id: Ibc6d6e691b7f97611d16f96220346dfd6ffbbf52
|
4540f59bc447dc2b7b31a3e974b74a60b2417e7d |
|
05-Feb-2015 |
VenkatRaghavan VijayaRaghavan <venkatrv@broadcom.com> |
Static code analysis cleanups and minor bug fixes - Fix for initializing all the un-initialized variables - Handling system call failure like socket,fcntl etc... - In btpan_tap_close validate tap_if_down and close the socket. - Invalid memset size, which could have potential memory issue - Change -1 to INVALID_FD where appropriate Bug: 19417758 Change-Id: Id31832f8678b2d72c80740c29b946a94e7ae0197
/system/bt/btif/src/btif_pan.c
|
7d165d984733ec92c4ae3327c8c791aa3a038684 |
|
03-Apr-2015 |
Scott James Remnant <keybuk@google.com> |
btif_pan: Grab interface declarations from net/if.h only. This is the libc interface file. Using linux/if.h produces definition collisions on glibc. Change-Id: I8744258ba0c4698d8f9f5b1215bb3cb1d86618fe
/system/bt/btif/src/btif_pan.c
|
933926c92e1378cc76bc9c149107e670c4872d4e |
|
03-Apr-2015 |
Scott James Remnant <keybuk@google.com> |
Fix missing #includes needed for glibc Some standard library functions are used while relying on bionic headers including the headers the functions were actually declared on. Add those missing #includes so that bluetooth.default.so will compile on glibc. Change-Id: Ied9f89ce5a05911fca63f6bfe1b8cc8196ab3b1c
/system/bt/btif/src/btif_pan.c
|
1f01b26f7a9a49107eb489917351736a57ab8520 |
|
02-Apr-2015 |
Andre Eisenbach <eisenbach@google.com> |
Fix compile error on Fugu Change-Id: I389acc5c5034e1b232da0307f77577b939af68ac
/system/bt/btif/src/btif_pan.c
|
e1a9e52ff59d36bd1bb5b7b3a02fafba6394edfe |
|
31-Mar-2015 |
Etan Cohen <etancohen@google.com> |
Merge commit 'f7f839985b3931682363d2ef3b7c5cae55a842ee' into merge Change-Id: Iaaec1ea0bf3009b7e32a9a60f697631a3f56e889
|
f8027005333c88a2f097cfd70d15c3d54c7764ae |
|
12-Mar-2015 |
Chris Manton <cmanton@google.com> |
Demote, cleanup and extend observed logging
/system/bt/btif/src/btif_pan.c
|
95b74f252f534ec757aab1fc08e086e02b2cfe8d |
|
12-Mar-2015 |
Sharvil Nanavati <sharvil@google.com> |
Use fully qualified path for btcore includes.
/system/bt/btif/src/btif_pan.c
|
0f9b91e150e153229235c163861198e23600e636 |
|
12-Mar-2015 |
Sharvil Nanavati <sharvil@google.com> |
Use fully qualified path for OSI includes.
/system/bt/btif/src/btif_pan.c
|
44802768c447ab480d4227b3a852a97d923b816d |
|
24-Dec-2014 |
Sharvil Nanavati <sharvil@google.com> |
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.
/system/bt/btif/src/btif_pan.c
|
79ecab5d0418fde77e9afcdd451bd713af73e180 |
|
31-Oct-2014 |
Chris Manton <cmanton@google.com> |
Move controller module to device directory
/system/bt/btif/src/btif_pan.c
|
794f3b5f126fffc3dd1129a710187591348bbf23 |
|
01-Oct-2014 |
Chris Manton <cmanton@google.com> |
Removal of bd.[c|h] Consolidate legacy types into bt_types.h
/system/bt/btif/src/btif_pan.c
|
f1c764fab01c929f71e185b97433bf40938026d3 |
|
24-Feb-2015 |
Sharvil Nanavati <sharvil@google.com> |
Make build more strict by adding more warning flags. This change introduces -Wunused-but-set-variable to help catch programming errors. It also undefines NDEBUG so assertions are fatal and defines LOG_NDEBUG=1 to suppress LOGV.
/system/bt/btif/src/btif_pan.c
|
39110ec88460421618330863807804e03594ef67 |
|
06-Oct-2014 |
Zach Johnson <zachoverflow@google.com> |
Remove duplicate local bdaddr management functions
/system/bt/btif/src/btif_pan.c
|
8a6a89faa942aed4f176b0c98402d01c8bdd6aa6 |
|
20-Aug-2014 |
Sharvil Nanavati <sharvil@google.com> |
Introduce btcore, a low-level library to manipulate Bluetooth data types. This change adds a single module to btcore: bdaddr. The bdaddr module is reponsible for manipulating and working with Bluetooth addresses.
/system/bt/btif/src/btif_pan.c
|
8d546df22536ce78e19d15e5e70e0dc8109796c3 |
|
12-Aug-2014 |
Chris Manton <cmanton@google.com> |
btpan thread signal function workaround btsock does not provide a reliable teardown procedure. Stale file descriptors may continue to actively invoke signal callbacks from the btsock thread. Extra logic to handle gracefully.
/system/bt/btif/src/btif_pan.c
|
df61acbd523271cc9b01b81dbbf5c45799bee6b5 |
|
03-Feb-2015 |
Elliott Hughes <enh@google.com> |
am 1efdda75: Merge "btif_pan: Grab interface declarations from net/if.h only." * commit '1efdda75d0e7cf4223ba8958a56c2aeafa5129c5': btif_pan: Grab interface declarations from net/if.h only.
|
767f6a7bd1db9c94602cfa59460bc122dc375a7f |
|
03-Feb-2015 |
Ian Coolidge <icoolidge@google.com> |
btif_pan: Grab interface declarations from net/if.h only. This is the libc interface file. Using linux/if.h produces definition collisions on glibc.
/system/bt/btif/src/btif_pan.c
|
7fbc6954fac90dd7148ac73aa478fcc5e2d75be8 |
|
25-Jan-2015 |
Elliott Hughes <enh@google.com> |
am f976082e: Merge "Fix omitted libc includes." * commit 'f976082eead2b7c19bf8c00d79e4723e6c4eb8e9': Fix omitted libc includes.
|
c7503db23f91676b2df732becb9579d5ccdcc7a7 |
|
24-Jan-2015 |
Ian Coolidge <icoolidge@google.com> |
Fix omitted libc includes. Change-Id: I72c08984aeef60e4833e600b4351759b9687a014
/system/bt/btif/src/btif_pan.c
|
285f7c6527244c749aafdc1edec39787e12bd871 |
|
26-Nov-2014 |
Zhenye Zhu <zhenye@broadcom.com> |
PAN TAP fd is not monitored in all cases Bug: 18271987 Change-Id: I348f3851a955b5277e7cdf0102583eaaef2ef0f3
/system/bt/btif/src/btif_pan.c
|
95ca3c43eae763465bbd7bddc927279f17b16106 |
|
26-Aug-2014 |
Zhenye Zhu <zhenye@broadcom.com> |
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
/system/bt/btif/src/btif_pan.c
|
e85eb5a7c3ea7eaca09cbb33920435d809b4dd3d |
|
03-Oct-2013 |
Nitin Shivpure <nshivpur@codeaurora.org> |
Bluetooth: Cleaning up pan_conn DB, if connection is not successful. - do not merge A case where DUT is paired with remoteDeviceA & remoteDeviceB. remoteDeviceA is not pagable(turned off or some other reason). DUT(PANU) try to connect remoteDeviceA(NAP). But connection is unsuccessful, Because remoteDeviceA is not pagable, In this scenario btpan_conn Database is not cleaning up at btif layer. Later remoteDeviceB(PANU) connect to DUT(NAP) & connection is succesful, When remoteDeviceB disconnect existing connection. As database still has remoteDeviceA BD address at Btif layer. remoteDeviceA BD address is passed instead of remoteDeviceB BD address from Btif to UI. So remoteDeviceB still shows connected on UI. Cleaning up pan_conn database for particular pan connection at BTIF layer, whichever connection is not successful will solve this issue. Change-Id: I31dfe3ef46295e74bbfb57563e4fd4fc7155f006
/system/bt/btif/src/btif_pan.c
|
afa6e1abbedaad8fe854b0f43999b8aeb801af91 |
|
28-Jun-2014 |
Matthew Xie <mattx@google.com> |
resolved conflicts for merge of e8c3d75b to master Change-Id: I78ef69c4d54a36243620ae14296d3507e3339567
|
e8c3d75b75493911ebf0f99c83676359657178f7 |
|
04-May-2014 |
Sharvil Nanavati <sharvil@google.com> |
Logging cleanup: BTIF and APPL. Change-Id: I5b1214642bbb4b9aecc0fd2c899a6ec2c9793286
/system/bt/btif/src/btif_pan.c
|
533cc76a012444993eb5e566238f71fc9f24ba0d |
|
19-Jun-2014 |
Matthew Xie <mattx@google.com> |
am 27232899: am 283aa16d: Merge "Bluedroid: Avoid multicast address for tun-tap interface" * commit '2723289960c3eca333aa25369bde59cf8d36dcf4': Bluedroid: Avoid multicast address for tun-tap interface
|
2723289960c3eca333aa25369bde59cf8d36dcf4 |
|
19-Jun-2014 |
Matthew Xie <mattx@google.com> |
am 283aa16d: Merge "Bluedroid: Avoid multicast address for tun-tap interface" * commit '283aa16d5f16bc10b5491661b5729c5f25635731': Bluedroid: Avoid multicast address for tun-tap interface
|
01364c729dd8f94be9959300188c94324960e0df |
|
08-Apr-2014 |
Loic Poulain <loic.poulain@intel.com> |
Bluedroid: Avoid multicast address for tun-tap interface Linux Kernel disallows to set an ethernet multicast address as ethernet device address. The IEEE has specified that the most significant bit of the most significant byte of a mac address is used for multicast. If its a 1, that means multicast, 0 means unicast. Bluedroid uses the BD address to set the tun-tap intf mac address. This BD address can be randomly auto generated, possibly with the multicast bit. To avoid any address issue, this patch masks this bit before setting the ethernet mac address. Change-Id: Ifff4ec7237ae6cbef3b8d4c23096c5df65e1431c Signed-off-by: Loic Poulain <loic.poulain@intel.com> Reviewed-on: https://android.intel.com/184768 Reviewed-by: Zhang, Jianxun <jianxun.zhang@intel.com> Tested-by: Zhang, Jianxun <jianxun.zhang@intel.com>
/system/bt/btif/src/btif_pan.c
|
da271ee4a0afcf5516208dc8df18a4da41a47124 |
|
31-May-2014 |
Sharvil Nanavati <sharvil@google.com> |
Whitelist IPv6 packets so they can be sent over PAN. Change-Id: I68e96bc34af1dfded2761c9bc780c089076d15e0
/system/bt/btif/src/btif_pan.c
|
f1d9b90f44336264a7dfee8708f208cd7b7fd541 |
|
31-May-2014 |
Sharvil Nanavati <sharvil@google.com> |
Whitelist IPv6 packets so they can be sent over PAN. Change-Id: I68e96bc34af1dfded2761c9bc780c089076d15e0
/system/bt/btif/src/btif_pan.c
|
4186b0ec7e0b7efe17c3b7cb8546ff359e099408 |
|
07-Apr-2014 |
Sharvil Nanavati <sharvil@google.com> |
Add flow control for PAN. This change reads from the TAP fd only when btpan_cb.flow == 1. The value of this flag changes based on L2CAP congestion events. http://b/13246629 Change-Id: Ic28bf65737dbd74c41b68198fceee58e3bff08d4 Conflicts: btif/src/btif_pan.c
/system/bt/btif/src/btif_pan.c
|
72f5ce63c2dbf31c7cfbb903c687ea71ad29b3ea |
|
21-Apr-2014 |
Matthew Xie <mattx@google.com> |
am 4b416130: Merge "Bluetooth: Adding Sniff feature for PAN Profile" * commit '4b41613019829b40e8ca75a87219a415c51ae3a1': Bluetooth: Adding Sniff feature for PAN Profile
|
f4b8f8aa313d3b7d88b683bfe0e5f9eb0a29b3b3 |
|
07-Apr-2014 |
Sharvil Nanavati <sharvil@google.com> |
Add flow control for PAN. This change reads from the TAP fd only when btpan_cb.flow == 1. The value of this flag changes based on L2CAP congestion events. http://b/13246629 Change-Id: Ic28bf65737dbd74c41b68198fceee58e3bff08d4 Conflicts: btif/src/btif_pan.c
/system/bt/btif/src/btif_pan.c
|
36f43cc4b0ce38007c29d573f251ec594d95b180 |
|
29-Aug-2013 |
Nitin Shivpure <nshivpur@codeaurora.org> |
Bluetooth: Adding Sniff feature for PAN Profile Sniff feature for PAN profile was not implemented in power manager module of the stack, which was causing higher power consumption after connecting PAN profile, Even though PAN ACL link is idle & there is no data communication between DUT & remote device. Adding sniff feature for PANU role & NAP role to reduce power consumption. Change-Id: Idf568f53a317abd536edf34fbdf1733fdf53b7d0
/system/bt/btif/src/btif_pan.c
|
3576c564b33c20b5e2e90fdd3bca7ce24392ca50 |
|
01-Apr-2014 |
Mike J. Chen <mjchen@google.com> |
Fix compiler/linker errors when BTA_PAN_INCLUDED is FALSE Change-Id: I14acefd66291adc2119daf97bd364b2eecf18d51 Signed-off-by: Mike J. Chen <mjchen@google.com>
/system/bt/btif/src/btif_pan.c
|
5cd8bff2dd0337cb52bf48f312e3d2d55a8882fb |
|
01-Feb-2014 |
Mike J. Chen <mjchen@google.com> |
Major warnings cleanup Mostly fixing unused parameter warnings. A few other warnings also fixed like possible use of unitialized variables (no real issue found, just compiler couldn't follow the path), signed vs unsigned warning. Also fixed some typos, indent issues, removal of dead code, etc. Change-Id: I95eb887aefc4d559d7921f71a0af5f3bfb01ac01 Signed-off-by: Mike J. Chen <mjchen@google.com>
/system/bt/btif/src/btif_pan.c
|
689d66b6559dcb3a0ad7f6cc33b6129e50910253 |
|
13-Dec-2012 |
The Android Open Source Project <initial-contribution@android.com> |
Snapshot 9fd57cbacd95e89602f430244c35bbc67f08b6d2 Change-Id: Ibc3a4bf4161d286c7cfab89a19c676eb5cc9224f
/system/bt/btif/src/btif_pan.c
|
5738f83aeb59361a0a2eda2460113f6dc9194271 |
|
13-Dec-2012 |
The Android Open Source Project <initial-contribution@android.com> |
Snapshot cdeccf6fdd8c2d494ea2867cb37a025bf8879baf Change-Id: Ia2de32ccb97a9641462c72363b0a8c4288f4f36d
/system/bt/btif/src/btif_pan.c
|