xiaoxiang781216 commented on code in PR #2647:
URL: https://github.com/apache/nuttx-apps/pull/2647#discussion_r1847755880
##########
lte/alt1250/alt1250_netdev.c:
##########
@@ -60,7 +60,7 @@ void alt1250_netdev_unregister(FAR struct alt1250_s *dev)
void alt1250_netdev_ifdown(FAR struct alt1250_s *dev)
{
- dev->net_dev.d_flags = IFF_DOWN;
+ dev->net_dev.d_flags = ~IFF_UP;
Review Comment:
Yes, it's intended to follow how other POSIX OS turn off netdev. After
IFF_DOWN is removed, ~IFF_UP represent down.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]