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:
parent
47d1f72a6c
commit
b65c80c37b
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user