From: Ɓukasz Rymanowski Date: Fri, 2 Oct 2020 09:35:38 +0000 (+0000) Subject: shim/l2cap: Fix RegisterLECoc function X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=72bf9241fc5b573afac0676e6e36a2389532124d;p=android-x86%2Fsystem-bt.git shim/l2cap: Fix RegisterLECoc function Change-Id: I6079b1456580f9f49aa18396177e2eef0d9e1398 --- diff --git a/main/shim/l2c_api.cc b/main/shim/l2c_api.cc index ac75e6f31..2c0ff14fc 100644 --- a/main/shim/l2c_api.cc +++ b/main/shim/l2c_api.cc @@ -112,8 +112,9 @@ bool bluetooth::shim::L2CA_DisconnectReq(uint16_t cid) { /** * Le Connection Oriented Channel APIs */ -uint16_t bluetooth::shim::L2CA_RegisterLECoc( - uint16_t psm, const tL2CAP_APPL_INFO& callbacks) { +uint16_t bluetooth::shim::L2CA_RegisterLECoc(uint16_t psm, + const tL2CAP_APPL_INFO& callbacks, + uint16_t sec_level) { LOG_INFO("UNIMPLEMENTED %s psm:%hd", __func__, psm); return 0; } diff --git a/main/shim/l2c_api.h b/main/shim/l2c_api.h index bbc77acd5..02e19d5e4 100644 --- a/main/shim/l2c_api.h +++ b/main/shim/l2c_api.h @@ -118,7 +118,8 @@ uint16_t L2CA_ConnectReq(uint16_t psm, const RawAddress& p_bd_addr); * and BTM_SetSecurityLevel(). * ******************************************************************************/ -uint16_t L2CA_RegisterLECoc(uint16_t psm, const tL2CAP_APPL_INFO& p_cb_info); +uint16_t L2CA_RegisterLECoc(uint16_t psm, const tL2CAP_APPL_INFO& p_cb_info, + uint16_t sec_level); /******************************************************************************* * diff --git a/stack/l2cap/l2c_api.cc b/stack/l2cap/l2c_api.cc index 0d1e9b3c2..df0d11ca2 100644 --- a/stack/l2cap/l2c_api.cc +++ b/stack/l2cap/l2c_api.cc @@ -366,7 +366,7 @@ uint16_t L2CA_ConnectReq(uint16_t psm, const RawAddress& p_bd_addr) { uint16_t L2CA_RegisterLECoc(uint16_t psm, const tL2CAP_APPL_INFO& p_cb_info, uint16_t sec_level) { if (bluetooth::shim::is_gd_shim_enabled()) { - return bluetooth::shim::L2CA_RegisterLECoc(psm, p_cb_info); + return bluetooth::shim::L2CA_RegisterLECoc(psm, p_cb_info, sec_level); } BTM_SetSecurityLevel(false, "", 0, sec_level, psm, 0, 0);