diff --git a/netutils/netlib/netlib_getpanid.c b/netutils/netlib/netlib_getpanid.c index cd0a5ba67..9325b8395 100644 --- a/netutils/netlib/netlib_getpanid.c +++ b/netutils/netlib/netlib_getpanid.c @@ -46,12 +46,6 @@ #include #include -#include -#include - -#include -#include - #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; } } diff --git a/netutils/netlib/netlib_setpanid.c b/netutils/netlib/netlib_setpanid.c index 9ec7e988a..a227c7a19 100644 --- a/netutils/netlib/netlib_setpanid.c +++ b/netutils/netlib/netlib_setpanid.c @@ -46,12 +46,6 @@ #include #include -#include -#include - -#include -#include - #include "netutils/netlib.h" #if defined(CONFIG_NET_6LOWPAN) && CONFIG_NSOCKET_DESCRIPTORS > 0 @@ -86,19 +80,12 @@ int netlib_setpanid(FAR const char *ifname, 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 /* Put the new PAN ID into the request */ - req.u.panid.panid = panid; - /* Perform the ioctl to set the new PAN ID */ - ret = ioctl(sockfd, SIOCSWPANID, (unsigned long)((uintptr_t)&req)); close(sockfd); } }