From 67b1237592c8f70d7761ba22405fc57b30cef97f Mon Sep 17 00:00:00 2001 From: Hauke Petersen <hauke.petersen@fu-berlin.de> Date: Fri, 13 Mar 2015 19:41:56 +0100 Subject: [PATCH] net/ng_nomac: adapted to net[api|dev] changes --- sys/net/link_layer/ng_nomac/ng_nomac.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/net/link_layer/ng_nomac/ng_nomac.c b/sys/net/link_layer/ng_nomac/ng_nomac.c index e20fa77b26..e236093c38 100644 --- a/sys/net/link_layer/ng_nomac/ng_nomac.c +++ b/sys/net/link_layer/ng_nomac/ng_nomac.c @@ -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; -- GitLab