diff --git a/cpu/native/net/linuxradio-drv.c b/cpu/native/net/linuxradio-drv.c index 0b30a5989..9718b4d42 100644 --- a/cpu/native/net/linuxradio-drv.c +++ b/cpu/native/net/linuxradio-drv.c @@ -144,7 +144,7 @@ static void handle_fd(fd_set *rset, fd_set *wset) { if (FD_ISSET(sockfd, rset)) { - int bytes = read(sockfd, sockbuf, 256); + int bytes = read(sockfd, sockbuf, MAX_PACKET_SIZE); buflen = bytes; memcpy(packetbuf_dataptr(), sockbuf, bytes); packetbuf_set_datalen(bytes);