Merge pull request #4429 from OlegHahm/at86rf231_proto_netopt_fix
at86rf2xx: dereference NETOPT_PROTO option
This commit is contained in:
commit
bcb56fd542
@ -659,7 +659,7 @@ static int _set(gnrc_netdev_t *device, netopt_t opt, void *val, size_t len)
|
||||
res = -EINVAL;
|
||||
}
|
||||
else {
|
||||
dev->proto = (gnrc_nettype_t) val;
|
||||
dev->proto = *((gnrc_nettype_t*) val);
|
||||
res = sizeof(gnrc_nettype_t);
|
||||
}
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user