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/27 04:20:32 UTC

[incubator-nuttx-apps] 02/03: netinit: associate wlan if DRIVERS_IEEE80211 enabled

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-apps.git

commit a1ea7f9df7fd128ea69028276cf25cb75d7f410c
Author: chao an <an...@xiaomi.com>
AuthorDate: Tue Sep 27 02:58:16 2022 +0800

    netinit: associate wlan if DRIVERS_IEEE80211 enabled
    
    Signed-off-by: chao an <an...@xiaomi.com>
---
 netutils/netinit/netinit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/netutils/netinit/netinit.c b/netutils/netinit/netinit.c
index 4bb78e173..5c16ff3c7 100644
--- a/netutils/netinit/netinit.c
+++ b/netutils/netinit/netinit.c
@@ -595,7 +595,7 @@ static void netinit_net_bringup(void)
       return;
     }
 
-#ifdef CONFIG_WIRELESS_WAPI
+#if defined(CONFIG_WIRELESS_WAPI) && defined(CONFIG_DRIVERS_IEEE80211)
   /* Associate the wlan with an access point. */
 
   if (netinit_associate(NET_DEVNAME) < 0)