OSDN Git Service

shim/l2cap: Fix RegisterLECoc function
authorŁukasz Rymanowski <lukasz.rymanowski@codecoup.pl>
Fri, 2 Oct 2020 09:35:38 +0000 (09:35 +0000)
committerŁukasz Rymanowski <lukasz.rymanowski@codecoup.pl>
Wed, 7 Oct 2020 14:59:38 +0000 (14:59 +0000)
Change-Id: I6079b1456580f9f49aa18396177e2eef0d9e1398

main/shim/l2c_api.cc
main/shim/l2c_api.h
stack/l2cap/l2c_api.cc

index ac75e6f..2c0ff14 100644 (file)
@@ -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;
 }
index bbc77ac..02e19d5 100644 (file)
@@ -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);
 
 /*******************************************************************************
  *
index 0d1e9b3..df0d11c 100644 (file)
@@ -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);