drivers: modem: ublox-sara-r4: implement F_GETFL in ioctl

Zephyr sees fnctl as an alias of ioctl, and so the F_GETFL
request should be handled here as well.

Signed-off-by: Emil Lindqvist <emil@lindq.gr>
This commit is contained in:
Emil Lindqvist 2021-05-27 09:21:27 +02:00 committed by Carles Cufí
commit 9b7d9d43b8

View file

@ -16,6 +16,7 @@ LOG_MODULE_REGISTER(modem_ublox_sara_r4, CONFIG_MODEM_LOG_LEVEL);
#include <drivers/gpio.h>
#include <device.h>
#include <init.h>
#include <fcntl.h>
#include <net/net_if.h>
#include <net/net_offload.h>
@ -1671,6 +1672,9 @@ static int offload_ioctl(void *obj, unsigned int request, va_list args)
return offload_poll(fds, nfds, timeout);
}
case F_GETFL:
return 0;
default:
errno = EINVAL;
return -1;