]> granicus.if.org Git - esp-idf/commitdiff
component/bt:Fixted the bug of HCI comment timeout error.
authorYulong <huangyulong@espressif.com>
Wed, 26 Apr 2017 08:23:45 +0000 (04:23 -0400)
committerYulong <huangyulong@espressif.com>
Wed, 26 Apr 2017 08:23:45 +0000 (04:23 -0400)
1. remove the SMP_INCLUDED == TRUE insite the btm_find_dev_by_handle function.
2. change the Kconfig with BT_ACL_CONNECTIONS

components/bt/Kconfig
components/bt/bluedroid/stack/btm/btm_dev.c

index 91d738d37a62d0e3a42ab74468d34f48e4659ee4..154df1b687db8226a970cab1c62485788f1793df 100644 (file)
@@ -59,6 +59,13 @@ config SMP_ENABLE
    help
        This option can be close when the app not used the ble security connect.
 
+config BT_STACK_NO_LOG
+    bool "Close the bluedroid bt stack log print"
+    depends on BLUEDROID_ENABLED
+    default n
+    help
+        This select can save the rodata code size
+
 choice BT_ACL_CONNECTIONS
     prompt "BT/BLE MAX ACL CONNECTIONS"
     depends on BLUEDROID_ENABLED
@@ -92,13 +99,6 @@ config BT_ACL_CONNECTIONS
     default 6 if BT_ACL_CONNECTION_6
     default 7 if BT_ACL_CONNECTION_7
 
-config BT_STACK_NO_LOG
-    bool "Close the bluedroid bt stack log print"
-    depends on BLUEDROID_ENABLED
-    default n
-    help
-        This select can save the rowdata code size
-
 #disable now for app cpu due to a known issue
 config BTDM_CONTROLLER_RUN_APP_CPU
     bool "Run controller on APP CPU"
index aa8c49fdd2de083f962839716431aeed27740203..cf445d1239c4c9cef61276e958e870f986d13533 100644 (file)
@@ -396,7 +396,6 @@ BOOLEAN btm_dev_support_switch (BD_ADDR bd_addr)
 *******************************************************************************/
 tBTM_SEC_DEV_REC *btm_find_dev_by_handle (UINT16 handle)
 {
-#if (SMP_INCLUDED == TRUE)
     tBTM_SEC_DEV_REC *p_dev_rec = &btm_cb.sec_dev_rec[0];
     int i;
 
@@ -410,7 +409,6 @@ tBTM_SEC_DEV_REC *btm_find_dev_by_handle (UINT16 handle)
             return (p_dev_rec);
         }
     }
-#endif  ///SMP_INCLUDED == TRUE
     return (NULL);
 }