Remove the 6loWPAN PANID IOCTLs they are redundant.

This commit is contained in:
Gregory Nutt
2017-04-21 14:12:46 -06:00
parent c2bdd49421
commit adc1b27051
2 changed files with 2 additions and 28 deletions

View File

@@ -46,12 +46,6 @@
#include <string.h>
#include <errno.h>
#include <netinet/in.h>
#include <net/if.h>
#include <nuttx/net/sixlowpan.h>
#include <nuttx/wireless/wireless.h>
#include "netutils/netlib.h"
#if defined(CONFIG_NET_6LOWPAN) && CONFIG_NSOCKET_DESCRIPTORS > 0
@@ -86,20 +80,13 @@ int netlib_getpanid(FAR const char *ifname, FAR uint16_t *panid)
int sockfd = socket(PF_INET6, NETLIB_SOCK_IOCTL, 0);
if (sockfd >= 0)
{
struct sixlowpan_req_s req;
/* Put the driver name into the request */
strncpy(req.ifr_name, ifname, IFNAMSIZ);
#warning Missing logic
/* Perform the ioctl to get the current PAN ID */
ret = ioctl(sockfd, SIOCGWPANID, (unsigned long)((uintptr_t)&req));
close(sockfd);
/* Reuturn the current PAN ID */
*panid = req.u.panid.panid;
}
}