You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/09/07 03:21:26 UTC

[incubator-nuttx] branch master updated: drivers: wireless: Add SIOCGIFFLAGS support to gs2200m.c

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 22a5cc0973 drivers: wireless: Add SIOCGIFFLAGS support to gs2200m.c
22a5cc0973 is described below

commit 22a5cc097399d864fec369e2b9c5a56e3bd30d41
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Wed Sep 7 10:02:50 2022 +0900

    drivers: wireless: Add SIOCGIFFLAGS support to gs2200m.c
    
    Summary:
    - I noticed that the latest ifconfig command shows nothing
    - Finally, I found that gs2200m.c needs to handle SIOCGIFFLAGS
    - This commit fixes this issue
    
    Impact:
    - gs2200m only
    
    Testing:
    - Tested with spresense:wifi
    - NOTE: gs2200m_main.c will be updated later
    
    Signed-off-by: Masayuki Ishikawa <Ma...@jp.sony.com>
---
 drivers/wireless/gs2200m.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/wireless/gs2200m.c b/drivers/wireless/gs2200m.c
index 9e9739ec3b..9e650a86f4 100644
--- a/drivers/wireless/gs2200m.c
+++ b/drivers/wireless/gs2200m.c
@@ -2896,6 +2896,11 @@ static int gs2200m_ioctl_ifreq(FAR struct gs2200m_dev_s *dev,
 
   switch (msg->cmd)
     {
+      case SIOCGIFFLAGS:
+        getreq = true;
+        msg->ifr.ifr_flags = dev->net_dev.d_flags;
+        break;
+
       case SIOCGIFHWADDR:
         getreq = true;
         memcpy(&msg->ifr.ifr_hwaddr.sa_data,