mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
netopt: remove deprecated alias NETOPT_LINK_CONNECTED
This commit is contained in:
parent
0bf3a2e279
commit
8dba9a9188
@ -505,7 +505,7 @@ static int nd_get(netdev_t *netdev, netopt_t opt, void *value, size_t max_len)
|
||||
assert(max_len >= ETHERNET_ADDR_LEN);
|
||||
mac_get(dev, (uint8_t *)value);
|
||||
return ETHERNET_ADDR_LEN;
|
||||
case NETOPT_LINK_CONNECTED:
|
||||
case NETOPT_LINK:
|
||||
if (cmd_r_phy(dev, REG_PHY_PHSTAT2) & PHSTAT2_LSTAT) {
|
||||
*((netopt_enable_t *)value) = NETOPT_ENABLE;
|
||||
}
|
||||
|
@ -392,7 +392,7 @@ static int _get(netdev_t *dev, netopt_t opt, void *value, size_t max_len)
|
||||
res = ETHERNET_ADDR_LEN;
|
||||
}
|
||||
break;
|
||||
case NETOPT_LINK_CONNECTED:
|
||||
case NETOPT_LINK:
|
||||
{
|
||||
encx24j600_t * encdev = (encx24j600_t *) dev;
|
||||
lock(encdev);
|
||||
|
@ -37,15 +37,6 @@ extern "C" {
|
||||
*/
|
||||
#define NETOPT_MAX_PACKET_SIZE NETOPT_MAX_PDU_SIZE
|
||||
|
||||
/**
|
||||
* @brief A deprecated alias for @ref NETOPT_LINK
|
||||
*
|
||||
* @deprecated Please use @ref NETOPT_LINK instead of
|
||||
* `NETOPT_LINK_CONNECTED`. It will be removed after the
|
||||
* 2020.07 release at the latest.
|
||||
*/
|
||||
#define NETOPT_LINK_CONNECTED NETOPT_LINK
|
||||
|
||||
/**
|
||||
* @brief Global list of configuration options available throughout the
|
||||
* network stack, e.g. by netdev and netapi
|
||||
|
Loading…
Reference in New Issue
Block a user