mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Disable handling of BT5.2 event in the controller.
These events are not used nor triggered by any of our APIs. It saves ~1.4k of flashpull/13811/head
parent
557eac0617
commit
f3031da424
|
|
@ -217,6 +217,7 @@ static const hciEvtParse_t hciEvtParseFcnTbl[] =
|
|||
hciEvtParseLeConnCteReqEnableCmdCmpl,
|
||||
hciEvtParseLeConnCteRspEnableCmdCmpl,
|
||||
hciEvtParseLeReadAntennaInfoCmdCmpl,
|
||||
#if 0
|
||||
hciEvtParseLeCisEst,
|
||||
hciEvtParseLeCisReq,
|
||||
hciEvtParseDisconnectCmpl,
|
||||
|
|
@ -235,6 +236,26 @@ static const hciEvtParse_t hciEvtParseFcnTbl[] =
|
|||
hciEvtParseLeBigSyncLost,
|
||||
hciEvtParseLeBigTermSyncCmpl,
|
||||
hciEvtParseLeBigInfoAdvRpt
|
||||
#else
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/* HCI event structure length table, indexed by internal callback event value */
|
||||
|
|
@ -2583,6 +2604,7 @@ void hciEvtProcessCmdCmpl(uint8_t *p, uint8_t len)
|
|||
cbackEvt = HCI_LE_PER_ADV_SET_INFO_TRSF_CMD_CMPL_CBACK_EVT;
|
||||
break;
|
||||
|
||||
#if 0
|
||||
case HCI_OPCODE_LE_SET_CIG_PARAMS:
|
||||
cbackEvt = HCI_LE_SET_CIG_PARAMS_CMD_CMPL_CBACK_EVT;
|
||||
break;
|
||||
|
|
@ -2618,6 +2640,7 @@ void hciEvtProcessCmdCmpl(uint8_t *p, uint8_t len)
|
|||
case HCI_OPCODE_READ_LOCAL_SUP_CONTROLLER_DLY:
|
||||
cbackEvt = HCI_READ_LOCAL_SUP_CTR_DLY_CMD_CMPL_CBACK_EVT;
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
/* test for vendor specific command completion OGF. */
|
||||
|
|
@ -2851,6 +2874,7 @@ void hciEvtProcessMsg(uint8_t *pEvt)
|
|||
cbackEvt = HCI_LE_CTE_REQ_FAILED_CBACK_EVT;
|
||||
break;
|
||||
|
||||
#if 0
|
||||
case HCI_LE_CIS_EST_EVT:
|
||||
/* if CIS connection created successfully */
|
||||
if (*pEvt == HCI_SUCCESS)
|
||||
|
|
@ -2888,6 +2912,7 @@ void hciEvtProcessMsg(uint8_t *pEvt)
|
|||
case HCI_LE_BIG_INFO_ADV_REPORT_EVT:
|
||||
cbackEvt = HCI_LE_BIG_INFO_ADV_REPORT_CBACK_EVT;
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
@ -2899,11 +2924,13 @@ void hciEvtProcessMsg(uint8_t *pEvt)
|
|||
|
||||
/* if disconnect is for CIS connection */
|
||||
BYTES_TO_UINT16(handle, (pEvt + 1));
|
||||
#if 0
|
||||
if (hciCoreCisByHandle(handle) != NULL)
|
||||
{
|
||||
cbackEvt = HCI_CIS_DISCONNECT_CMPL_CBACK_EVT;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
cbackEvt = HCI_DISCONNECT_CMPL_CBACK_EVT;
|
||||
}
|
||||
|
|
@ -2991,11 +3018,13 @@ void hciEvtProcessMsg(uint8_t *pEvt)
|
|||
BYTES_TO_UINT16(handle, (pEvt + 1));
|
||||
hciCoreConnClose(handle);
|
||||
}
|
||||
#if 0
|
||||
else if (cbackEvt == HCI_CIS_DISCONNECT_CMPL_CBACK_EVT)
|
||||
{
|
||||
BYTES_TO_UINT16(handle, (pEvt + 1));
|
||||
hciCoreCisClose(handle);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue