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:
parent
91177eebc1
commit
9b7d9d43b8
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue