We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88d000e commit 7894a93Copy full SHA for 7894a93
features/FEATURE_BLE/targets/TARGET_CORDIO/stack_adaptation/hci_tr.c
@@ -66,11 +66,12 @@ void hciTrSendAclData(void *pContext, uint8_t *pData)
66
HCI_PDUMP_TX_ACL(len, pData);
67
68
/* transmit ACL header and data */
69
- if (hciDrvWrite(HCI_ACL_TYPE, len, pData) == len)
+ if (hciDrvWrite(HCI_ACL_TYPE, len, pData) != len)
70
{
71
- /* free buffer */
72
- hciCoreTxAclComplete(pContext, pData);
+ /* transport failure */
+ WSF_ASSERT(0);
73
}
74
+ /* pData is not freed as the hciDrvWrite took ownership of the WSF buffer */
75
76
77
0 commit comments