Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
netopt: remove deprecated alias NETOPT_LINK_CONNECTED
  • Loading branch information
miri64 committed Jul 10, 2020
1 parent 0bf3a2e commit 8dba9a9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion drivers/enc28j60/enc28j60.c
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/encx24j600/encx24j600.c
Expand Up @@ -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);
Expand Down
9 changes: 0 additions & 9 deletions sys/include/net/netopt.h
Expand Up @@ -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
Expand Down

0 comments on commit 8dba9a9

Please sign in to comment.