Dear all,
I am working with transceiver AT86RF233 on a board with Variscite i.MX 6 SOM.
I'm using IEEE802154 sockets in the following test code:
#include<errno.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <string.h>
#include <net/if.h>
int main () {
int socketfd = 0;
struct ifreq ifr;
static const char *wpandevs[] = {"wpan0"};
int ret;
socketfd = socket(PF_IEEE802154, SOCK_RAW, 0);
strncpy(ifr.ifr_name, wpandevs[0], IF_NAMESIZE);
printf("d0\n");
ret = ioctl(socketfd, SIOCGIFADDR, &ifr);
printf("d1\n");
if (ret < 0) {
fprintf(stderr,"ioctl: SIOCGIFADDR error\n");
return;
}
printf("d2\n");
return 0;
}
But when I execute this code, kernel says to me following error messages:
RTNL: assertion failed at net/mac802154/iface.c (65)
CPU: 1 PID: 2023 Comm: main Not tainted 4.1.15-224528-gc28c3ac-dirty #3
Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[<8001691c>] (unwind_backtrace) from [<80012748>] (show_stack+0x10/0x14)
[<80012748>] (show_stack) from [<807577a8>] (dump_stack+0x84/0xc4)
[<807577a8>] (dump_stack) from [<8074e41c>] (mac802154_wpan_ioctl+0xf0/0x154)
[<8074e41c>] (mac802154_wpan_ioctl) from [<7f039744>]
(ieee802154_sock_ioctl+0x184/0x1f0 [ieee802154_socket])
[<7f039744>] (ieee802154_sock_ioctl [ieee802154_socket]) from
[<805fcbf4>] (sock_ioctl+0x1c0/0x294)
[<805fcbf4>] (sock_ioctl) from [<800f9dd0>] (do_vfs_ioctl+0x40c/0x5fc)
[<800f9dd0>] (do_vfs_ioctl) from [<800f9ff4>] (SyS_ioctl+0x34/0x5c)
[<800f9ff4>] (SyS_ioctl) from [<8000f480>] (ret_fast_syscall+0x0/0x3c)
Do you have some tips to solve the problem?
I'm using Debian Jessie (downloaded here
http://www.variwiki.com/index.php?title=VAR-SOM-MX6_Debian_R2) with
kernel 4.1.15-224528-gc28c3ac-dirty.
Best,
Luca Di Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html