bugfix:Fixed throughput wasting memory and packet loss issues.

This commit is contained in:
gengyuchao
2019-12-19 21:38:09 +08:00
parent 7dc5c2af59
commit 74a89774fd
4 changed files with 72 additions and 29 deletions

View File

@@ -44,6 +44,10 @@ extern "C" {
*/
extern esp_err_t esp_ble_gatt_set_local_mtu (uint16_t mtu);
#if (BLE_INCLUDED == TRUE)
extern uint16_t L2CA_GetFreePkgBufferNum(void);
#endif
#ifdef __cplusplus
}
#endif

View File

@@ -1871,6 +1871,14 @@ BOOLEAN L2CA_CheckIsCongest(UINT16 fixed_cid, UINT16 handle)
return TRUE;
}
#if (BLE_INCLUDED == TRUE)
UINT16 L2CA_GetFreePkgBufferNum(void)
{
return l2cb.controller_le_xmit_window;
}
#endif
/*******************************************************************************
**
** Function L2CA_RemoveFixedChnl