From 9a11ede5ff0b61c6f684f5a4fc0007c6ced2c718 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Mon, 4 Sep 2023 17:27:31 +0900 Subject: [PATCH] lte/alt1250: Fix issue that ifconfig does not work Add SIOCGIFFLAGS support for ifconfig command. --- lte/alt1250/alt1250_usockif.c | 1 + lte/alt1250/usock_handlers/alt1250_ioctlhdlr.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lte/alt1250/alt1250_usockif.c b/lte/alt1250/alt1250_usockif.c index 33a91a203..08486a364 100644 --- a/lte/alt1250/alt1250_usockif.c +++ b/lte/alt1250/alt1250_usockif.c @@ -267,6 +267,7 @@ int usockif_readreqioctl(int fd, FAR struct usrsock_request_buff_s *buf) rsize = sizeof(struct lte_ioctl_data_s); break; case SIOCSIFFLAGS: + case SIOCGIFFLAGS: rsize = sizeof(struct ifreq); break; case SIOCDENYINETSOCK: diff --git a/lte/alt1250/usock_handlers/alt1250_ioctlhdlr.c b/lte/alt1250/usock_handlers/alt1250_ioctlhdlr.c index 8861c6643..568d19928 100644 --- a/lte/alt1250/usock_handlers/alt1250_ioctlhdlr.c +++ b/lte/alt1250/usock_handlers/alt1250_ioctlhdlr.c @@ -66,6 +66,7 @@ int usockreq_ioctl(FAR struct alt1250_s *dev, switch (request->cmd) { case FIONBIO: + case SIOCGIFFLAGS: /* ALT1250 doesn't use this command. Only return OK. */