Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ecb085d authored by Chris Manton's avatar Chris Manton
Browse files

Include rfcdefs and add btm_client_interface

Towards including what you use

Bug: 163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: Ia3f3c5d7d803a39272727f2a3a9a93febd0efad9
parent f8962b1f
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@
 ******************************************************************************/

#include "mock_btm_layer.h"
#include "stack/include/btm_client_interface.h"
#include "stack/include/rfcdefs.h"

static bluetooth::manager::MockBtmSecurityInternalInterface*
    btm_security_internal_interface = nullptr;
@@ -48,3 +50,14 @@ bool BTM_SetSecurityLevel(bool is_originator, const char* p_name,
uint16_t BTM_GetMaxPacketSize(const RawAddress& addr) {
  return RFCOMM_DEFAULT_MTU;
}

struct btm_client_interface_s btm_client_interface = {
    .peer =
        {
            .BTM_GetMaxPacketSize = BTM_GetMaxPacketSize,
        },
};

struct btm_client_interface_s& get_btm_client_interface() {
  return btm_client_interface;
}