1. 06 Oct, 2015 2 commits
    • Pavlin Radoslavov's avatar
      GKI cleanup - moved GKI buffer allocation wrappers to OSI · a11035b5
      Pavlin Radoslavov authored
      * 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
      a11035b5
    • Pavlin Radoslavov's avatar
      GKI cleanup - Moved struct TIMER_LIST_ENT to OSI · 1d7de0e4
      Pavlin Radoslavov authored
      * Moved struct TIMER_LIST_ENT to file osi/include/non_repeating_timer.h
        and renamed it to timer_entry_t
        NOTE: This is a short-term solution. timer_entry_t should be
        removed, and its usage everywhere should be replaced by
        struct non_repeating_timer_t .
      * Renamed TIMER_CBACK to timer_callback_t
      * Renamed TIMER_PARAM_TYPE to timer_param_t
      
      Change-Id: I9ca830718bf900195f9c0a513a97f6995322693b
      1d7de0e4
  2. 12 Jun, 2015 1 commit
    • Arman Uguray's avatar
      build: Fix ptr <-> integer cast warnings · bb954527
      Arman Uguray authored
      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
      bb954527
  3. 10 Jun, 2015 2 commits
    • Andre Eisenbach's avatar
      Fix compile error in bta_ag_sco.c · c1c02ce5
      Andre Eisenbach authored
      Change-Id: I8839ba732560a31a5e8a2351ea4bfb16999cf5ea
      c1c02ce5
    • Mallikarjuna GB's avatar
      Create listen SCO for HS1 if HS2 disconnects during SCO xfer · 8f4fb27a
      Mallikarjuna GB authored
      During SCO transfer process from HS1 to HS2, firstly active SCO for
      HS1 is disconnected. However, if suddenly HS2 disconnects even
      before SCO transfer is complete, listen SCO for HS1 is not created.
      This causes further incoming SCO connections from HS1 to be rejected.
      The change creates listen SCO for HS1 and moves SCO state properly
      to LISTEN.
      
      Change-Id: I0993c1ba1c24b3b7e9c243d179a913d7a0c40446
      8f4fb27a
  4. 04 Jun, 2015 2 commits
    • Andre Eisenbach's avatar
      Fix compile error in bta_ag_sco.c · e1ded77a
      Andre Eisenbach authored
      Change-Id: I8839ba732560a31a5e8a2351ea4bfb16999cf5ea
      e1ded77a
    • Mallikarjuna GB's avatar
      Create listen SCO for HS1 if HS2 disconnects during SCO xfer · 5b675bc4
      Mallikarjuna GB authored
      During SCO transfer process from HS1 to HS2, firstly active SCO for
      HS1 is disconnected. However, if suddenly HS2 disconnects even
      before SCO transfer is complete, listen SCO for HS1 is not created.
      This causes further incoming SCO connections from HS1 to be rejected.
      The change creates listen SCO for HS1 and moves SCO state properly
      to LISTEN.
      
      Change-Id: I0993c1ba1c24b3b7e9c243d179a913d7a0c40446
      5b675bc4
  5. 02 Apr, 2015 1 commit
    • Scott James Remnant's avatar
      Fix missing #includes needed for glibc · 933926c9
      Scott James Remnant authored
      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
      933926c9
  6. 27 Mar, 2015 1 commit
    • Mudumba Ananth's avatar
      Resolved hardware error observed during SCO Connection setup · 88e7b15c
      Mudumba Ananth authored
      Hardware error was caused due to a faulty HCI command formed in the
      process of vendor specific pre-SCO setup in the stack(set_audio_state)
      
      Fixed the above problem and also added back the vendor (interface)
      mapping for the set_audio_state functionality to facilitate the
      sending of the pre-SCO vendor specific commands.
      
      Made common vendor library audio setting by moving to hci subsystem.
      
      General cleanup around this functionality.
      
      Bug: 19923226
      Change-Id: I4a743f6725459f360bd2a90e0a46f08fcca2292d
      88e7b15c
  7. 26 Mar, 2015 1 commit
    • Mudumba Ananth's avatar
      Resolved hardware error observed during SCO Connection setup · 6afb2488
      Mudumba Ananth authored
      Hardware error was caused due to a faulty HCI command formed in the
      process of vendor specific pre-SCO setup in the stack(set_audio_state)
      
      Fixed the above problem and also added back the vendor (interface)
      mapping for the set_audio_state functionality to facilitate the
      sending of the pre-SCO vendor specific commands.
      
      Made common vendor library audio setting by moving to hci subsystem.
      
      General cleanup around this functionality.
      
      Bug: 19923226
      Change-Id: I4a743f6725459f360bd2a90e0a46f08fcca2292d
      6afb2488
  8. 06 Feb, 2015 1 commit
  9. 30 Jun, 2014 1 commit
  10. 19 Jun, 2014 1 commit
  11. 11 Feb, 2014 1 commit
    • Mike J. Chen's avatar
      Major warnings cleanup · 5cd8bff2
      Mike J. Chen authored
      
      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: default avatarMike J. Chen <mjchen@google.com>
      5cd8bff2
  12. 13 Dec, 2012 1 commit