1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 23:11:19 +01:00

net/ng_nomac: adapted to net[api|dev] changes

This commit is contained in:
Hauke Petersen 2015-03-13 19:41:56 +01:00
parent 8124907f3a
commit 67b1237592

View File

@ -110,6 +110,7 @@ static void *_nomac_thread(void *args)
opt = (ng_netapi_opt_t *)msg.content.ptr;
/* set option for device driver */
res = dev->driver->set(dev, opt->opt, opt->data, opt->data_len);
DEBUG("nomac: response of netdev->set: %i\n", res);
/* send reply to calling thread */
reply.type = NG_NETAPI_MSG_TYPE_ACK;
reply.content.value = (uint32_t)res;
@ -122,8 +123,8 @@ static void *_nomac_thread(void *args)
/* read incoming options */
opt = (ng_netapi_opt_t *)msg.content.ptr;
/* get option from device driver */
res = dev->driver->get(dev, opt->opt, opt->data,
(size_t*)(&(opt->data_len)));
res = dev->driver->get(dev, opt->opt, opt->data, opt->data_len);
DEBUG("nomac: response of netdev->get: %i\n", res);
/* send reply to calling thread */
reply.type = NG_NETAPI_MSG_TYPE_ACK;
reply.content.value = (uint32_t)res;