Skip to content

Commit

Permalink
drivers: modem: ublox-sara-r4: implement F_GETFL in ioctl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
emillindq authored and carlescufi committed May 27, 2021
1 parent 91177ee commit 9b7d9d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/modem/ublox-sara-r4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9b7d9d4

Please sign in to comment.