@@ -606,6 +606,8 @@ ble_gap_read_rem_ver_info(uint16_t conn_handle, uint8_t *version, uint16_t *manu
606
606
* subversion = conn -> bhc_rd_rem_ver_params .subversion ;
607
607
608
608
return 0 ;
609
+ #else
610
+ return BLE_HS_ENOTSUP ;
609
611
#endif
610
612
}
611
613
@@ -2783,6 +2785,7 @@ ble_gap_rx_conn_complete(struct ble_gap_conn_complete *evt, uint8_t instance)
2783
2785
void
2784
2786
ble_gap_event_connect_call (uint16_t conn_handle , int status )
2785
2787
{
2788
+ #if NIMBLE_BLE_CONNECT
2786
2789
struct ble_gap_event event ;
2787
2790
uint16_t handle = le16toh (conn_handle );
2788
2791
@@ -2814,6 +2817,7 @@ ble_gap_event_connect_call(uint16_t conn_handle, int status)
2814
2817
2815
2818
ble_hs_hci_util_set_data_len (le16toh (conn_handle ), BLE_HCI_SUGG_DEF_DATALEN_TX_OCTETS_MAX ,
2816
2819
BLE_HCI_SUGG_DEF_DATALEN_TX_TIME_MAX );
2820
+ #endif
2817
2821
}
2818
2822
2819
2823
void
@@ -8016,6 +8020,7 @@ int
8016
8020
ble_gap_set_data_len (uint16_t conn_handle , uint16_t tx_octets ,
8017
8021
uint16_t tx_time )
8018
8022
{
8023
+ #if NIMBLE_BLE_CONNECT
8019
8024
/* Check if host has triggered Set data len for same parameters
8020
8025
* which are currently set in controller.
8021
8026
* If yes, then just return event to host indicating success
@@ -8040,6 +8045,9 @@ ble_gap_set_data_len(uint16_t conn_handle, uint16_t tx_octets,
8040
8045
}
8041
8046
8042
8047
return ble_hs_hci_util_set_data_len (conn_handle , tx_octets , tx_time );
8048
+ #else
8049
+ return BLE_HS_ENOTSUP ;
8050
+ #endif
8043
8051
}
8044
8052
8045
8053
int
0 commit comments