Bluetooth: Controller: fix LE Ping conditional compilations
Add additional conditional compilation of code not needed when LE Ping is disabled in Kconfig. Change-id: Idab40b1371488e06a6f2009fb553f7655b7b86f3 Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
This commit is contained in:
parent
d333b3892b
commit
4fb2947b61
3 changed files with 17 additions and 0 deletions
|
@ -1055,6 +1055,7 @@ static void enc_refresh_complete(struct pdu_data *pdu_data, uint16_t handle,
|
|||
ep->handle = sys_cpu_to_le16(handle);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_BLUETOOTH_CONTROLLER_LE_PING)
|
||||
static void auth_payload_timeout_exp(struct pdu_data *pdu_data, uint16_t handle,
|
||||
struct net_buf *buf)
|
||||
{
|
||||
|
@ -1065,6 +1066,7 @@ static void auth_payload_timeout_exp(struct pdu_data *pdu_data, uint16_t handle,
|
|||
|
||||
ep->handle = sys_cpu_to_le16(handle);
|
||||
}
|
||||
#endif /* CONFIG_BLUETOOTH_CONTROLLER_LE_PING */
|
||||
|
||||
static void encode_control(struct radio_pdu_node_rx *node_rx,
|
||||
struct pdu_data *pdu_data, struct net_buf *buf)
|
||||
|
@ -1095,9 +1097,11 @@ static void encode_control(struct radio_pdu_node_rx *node_rx,
|
|||
enc_refresh_complete(pdu_data, handle, buf);
|
||||
break;
|
||||
|
||||
#if defined(CONFIG_BLUETOOTH_CONTROLLER_LE_PING)
|
||||
case NODE_RX_TYPE_APTO:
|
||||
auth_payload_timeout_exp(pdu_data, handle, buf);
|
||||
break;
|
||||
#endif /* CONFIG_BLUETOOTH_CONTROLLER_LE_PING */
|
||||
|
||||
case NODE_RX_TYPE_RSSI:
|
||||
/** @todo */
|
||||
|
|
|
@ -7668,7 +7668,11 @@ void radio_rx_dequeue(void)
|
|||
case NODE_RX_TYPE_CONNECTION:
|
||||
case NODE_RX_TYPE_CONN_UPDATE:
|
||||
case NODE_RX_TYPE_ENC_REFRESH:
|
||||
|
||||
#if defined(CONFIG_BLUETOOTH_CONTROLLER_LE_PING)
|
||||
case NODE_RX_TYPE_APTO:
|
||||
#endif /* CONFIG_BLUETOOTH_CONTROLLER_LE_PING */
|
||||
|
||||
case NODE_RX_TYPE_RSSI:
|
||||
|
||||
#if defined(CONFIG_BLUETOOTH_CONTROLLER_PROFILE_ISR)
|
||||
|
@ -7710,7 +7714,11 @@ void radio_rx_mem_release(struct radio_pdu_node_rx **radio_pdu_node_rx)
|
|||
case NODE_RX_TYPE_CONNECTION:
|
||||
case NODE_RX_TYPE_CONN_UPDATE:
|
||||
case NODE_RX_TYPE_ENC_REFRESH:
|
||||
|
||||
#if defined(CONFIG_BLUETOOTH_CONTROLLER_LE_PING)
|
||||
case NODE_RX_TYPE_APTO:
|
||||
#endif /* CONFIG_BLUETOOTH_CONTROLLER_LE_PING */
|
||||
|
||||
case NODE_RX_TYPE_RSSI:
|
||||
|
||||
#if defined(CONFIG_BLUETOOTH_CONTROLLER_PROFILE_ISR)
|
||||
|
|
|
@ -191,8 +191,13 @@ enum radio_pdu_node_rx_type {
|
|||
NODE_RX_TYPE_TERMINATE,
|
||||
NODE_RX_TYPE_CONN_UPDATE,
|
||||
NODE_RX_TYPE_ENC_REFRESH,
|
||||
|
||||
#if defined(CONFIG_BLUETOOTH_CONTROLLER_LE_PING)
|
||||
NODE_RX_TYPE_APTO,
|
||||
#endif /* CONFIG_BLUETOOTH_CONTROLLER_LE_PING */
|
||||
|
||||
NODE_RX_TYPE_RSSI,
|
||||
|
||||
#if defined(CONFIG_BLUETOOTH_CONTROLLER_PROFILE_ISR)
|
||||
NODE_RX_TYPE_PROFILE,
|
||||
#endif /* CONFIG_BLUETOOTH_CONTROLLER_PROFILE_ISR */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue