1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

nimble_netif: remove l2cap_ping from API

Upstream NimBLE removed the l2cap ping call from its L2CAP API,
as it was not standard conformant, so we can't use it for
nimble_netif...
This commit is contained in:
Hauke Petersen 2021-12-02 10:58:37 +01:00
parent 47d1f72a6c
commit b65c80c37b
2 changed files with 0 additions and 28 deletions

View File

@ -288,24 +288,6 @@ int nimble_netif_update(int handle,
*/
int nimble_netif_used_chanmap(int handle, uint8_t map[5]);
/**
* @brief Trigger a L2CAP ping procedure for the specified connection
*
* This is a convenience wrapper around the NimBLE ble_l2cap_ping() function.
*
* @param[in] handle connection handle
* @param[in] cb callback triggered when the PING_RSP is received,
* executed in the NimBLE host thread context
* @param[in] data payload included in the PING_REQ and PING_RSP
* messages
* @param[in] data_len length of @p data in bytes
*
* @return 0 on success
* @return <0 on error
*/
int nimble_netif_l2cap_ping(int handle, ble_l2cap_ping_fn cb,
const void *data, uint16_t data_len);
#ifdef __cplusplus
}
#endif

View File

@ -740,13 +740,3 @@ int nimble_netif_used_chanmap(int handle, uint8_t map[5])
return 0;
}
int nimble_netif_l2cap_ping(int handle, ble_l2cap_ping_fn cb,
const void *data, uint16_t data_len)
{
nimble_netif_conn_t *conn = nimble_netif_conn_get(handle);
if (conn == NULL) {
return -1;
}
return ble_l2cap_ping(conn->gaphandle, cb, data, data_len);
}