mirror of
https://github.com/espressif/esp-idf
synced 2025-03-11 10:09:08 -04:00
component/bt:Recovery the btm_establish_continue when created the acl connection
This commit is contained in:
parent
bc807a18d1
commit
b5989a6b26
@ -111,6 +111,9 @@
|
|||||||
#define BLE_PRIVACY_SPT FALSE
|
#define BLE_PRIVACY_SPT FALSE
|
||||||
#endif /* CONFIG_GATTC_ENABLE */
|
#endif /* CONFIG_GATTC_ENABLE */
|
||||||
|
|
||||||
|
#if (CONFIG_BT_ACL_CONNECTIONS)
|
||||||
|
#define MAX_ACL_CONNECTIONS CONFIG_BT_ACL_CONNECTIONS
|
||||||
|
#endif /* CONFIG_BT_ACL_CONNECTIONS */
|
||||||
|
|
||||||
//------------------Added from bdroid_buildcfg.h---------------------
|
//------------------Added from bdroid_buildcfg.h---------------------
|
||||||
#ifndef L2CAP_EXTFEA_SUPPORTED_MASK
|
#ifndef L2CAP_EXTFEA_SUPPORTED_MASK
|
||||||
@ -709,10 +712,6 @@
|
|||||||
#define L2CAP_CLIENT_INCLUDED FALSE
|
#define L2CAP_CLIENT_INCLUDED FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The default connection link number set to 1,
|
|
||||||
** if the user want to support muti connction, should change it in the menuconfig */
|
|
||||||
#define MAX_ACL_CONNECTIONS 1
|
|
||||||
|
|
||||||
/* The maximum number of simultaneous links that L2CAP can support. Up to 7*/
|
/* The maximum number of simultaneous links that L2CAP can support. Up to 7*/
|
||||||
#ifndef MAX_ACL_CONNECTIONS
|
#ifndef MAX_ACL_CONNECTIONS
|
||||||
#define MAX_L2CAP_LINKS 3
|
#define MAX_L2CAP_LINKS 3
|
||||||
@ -984,7 +983,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef GATT_MAX_PHY_CHANNEL
|
#ifndef GATT_MAX_PHY_CHANNEL
|
||||||
#define GATT_MAX_PHY_CHANNEL 7
|
#define GATT_MAX_PHY_CHANNEL 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Used for conformance testing ONLY */
|
/* Used for conformance testing ONLY */
|
||||||
|
@ -289,7 +289,7 @@ void btm_acl_created (BD_ADDR bda, DEV_CLASS dc, BD_NAME bdn,
|
|||||||
l2cu_resubmit_pending_sec_req (p_dev_rec->bd_addr);
|
l2cu_resubmit_pending_sec_req (p_dev_rec->bd_addr);
|
||||||
}
|
}
|
||||||
#endif ///CLASSIC_BT_INCLUDED == TRUE
|
#endif ///CLASSIC_BT_INCLUDED == TRUE
|
||||||
//btm_establish_continue (p);
|
btm_establish_continue (p);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -310,7 +310,7 @@ void btm_acl_created (BD_ADDR bda, DEV_CLASS dc, BD_NAME bdn,
|
|||||||
&& link_role == HCI_ROLE_SLAVE) {
|
&& link_role == HCI_ROLE_SLAVE) {
|
||||||
//do nothing in this case for fix the android7.0 cann't sent security request issue
|
//do nothing in this case for fix the android7.0 cann't sent security request issue
|
||||||
} else {
|
} else {
|
||||||
//btm_establish_continue(p);
|
btm_establish_continue(p);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user