From 4c01c716fc51eb83432e87a80e03b2889c1cecf9 Mon Sep 17 00:00:00 2001 From: "Martine S. Lenders" Date: Thu, 25 Jun 2020 10:55:22 +0200 Subject: [PATCH] cc110x: remove NETOPT_IPV6_IID support This option is handled in the `gnrc_netif`-layer without any access to the driver's option since 7ae90564d91284dd5be63e89e4be1b4c6e8cfdef. --- drivers/cc110x/cc110x_netdev.c | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/drivers/cc110x/cc110x_netdev.c b/drivers/cc110x/cc110x_netdev.c index b42716482b..9d42a48d81 100644 --- a/drivers/cc110x/cc110x_netdev.c +++ b/drivers/cc110x/cc110x_netdev.c @@ -505,26 +505,6 @@ static int cc110x_send(netdev_t *netdev, const iolist_t *iolist) return (int)size; } -/** - * @brief Generate an IPv6 interface identifier for a CC110X transceiver - * - * @param dev Transceiver to create the IPv6 interface identifier (IID) - * @param iid Store the generated IID here - * - * @return Returns the size of @ref eui64_t to confirm with the API - * in @ref netdev_driver_t::get - */ -static int cc110x_get_iid(cc110x_t *dev, eui64_t *iid) -{ - static const eui64_t empty_iid = { - .uint8 = { 0x00, 0x00, 0x00, 0xff, 0xfe, 0x00, 0x00, 0x00 } - }; - - *iid = empty_iid; - iid->uint8[7] = dev->addr; - return sizeof(eui64_t); -} - /** * @brief Checks if the CC110x's address filter is disabled * @param dev Transceiver to check if in promiscuous mode @@ -551,6 +531,7 @@ static int cc110x_get(netdev_t *netdev, netopt_t opt, { cc110x_t *dev = (cc110x_t *)netdev; + (void)max_len; /* only used in assert() */ switch (opt) { case NETOPT_DEVICE_TYPE: assert(max_len == sizeof(uint16_t)); @@ -574,11 +555,6 @@ static int cc110x_get(netdev_t *netdev, netopt_t opt, assert(max_len >= CC1XXX_ADDR_SIZE); *((uint8_t *)val) = dev->addr; return CC1XXX_ADDR_SIZE; - case NETOPT_IPV6_IID: - if (max_len < sizeof(eui64_t)) { - return -EOVERFLOW; - } - return cc110x_get_iid(dev, val); case NETOPT_CHANNEL: assert(max_len == sizeof(uint16_t)); *((uint16_t *)val) = dev->channel;