lte/alt1250: Fix issue that ifconfig does not work

Add SIOCGIFFLAGS support for ifconfig command.
This commit is contained in:
SPRESENSE 2023-09-04 17:27:31 +09:00 committed by Xiang Xiao
parent a8598aa8d2
commit 9a11ede5ff
2 changed files with 2 additions and 0 deletions

View File

@ -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:

View File

@ -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. */