mirror of
https://github.com/apache/nuttx.git
synced 2026-09-13 22:20:24 +00:00
drivers: wireless: Add support for ioctl(fd, SIOCGIFADDR, ...) to gs2200m.c
Summary: - This commit adds support for ioctl(fd, SIOCGIFADDR, ...) to gs2200m.c Impact: - Only affects ioctl(fd, SIOCGIFADDR, ...) with gs2200m - Need to update apps/wireless/gs2200m as well Testing: - Tested with spresense:wifi - Tested with dhcpc Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
f12d49076c
commit
df952074eb
1 changed files with 9 additions and 1 deletions
|
|
@ -2674,7 +2674,15 @@ static int gs2200m_ioctl_ifreq(FAR struct gs2200m_dev_s *dev,
|
|||
dev->net_dev.d_mac.ether.ether_addr_octet, 6);
|
||||
break;
|
||||
|
||||
case SIOCSIFADDR:
|
||||
case SIOCGIFADDR:
|
||||
getreq = true;
|
||||
memcpy(&inaddr->sin_addr,
|
||||
&dev->net_dev.d_ipaddr,
|
||||
sizeof(dev->net_dev.d_ipaddr)
|
||||
);
|
||||
break;
|
||||
|
||||
case SIOCSIFADDR:
|
||||
memcpy(&dev->net_dev.d_ipaddr,
|
||||
&inaddr->sin_addr, sizeof(inaddr->sin_addr)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue