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


The following commit(s) were added to refs/heads/master by this push:
     new a3390417f netutils/iperf: add more default device name
a3390417f is described below

commit a3390417f7c0c106902415bde077e83fc4c71315
Author: chao an <anc...@xiaomi.com>
AuthorDate: Sun Nov 20 17:27:13 2022 +0800

    netutils/iperf: add more default device name
    
    Signed-off-by: chao an <anc...@xiaomi.com>
---
 netutils/iperf/Kconfig | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/netutils/iperf/Kconfig b/netutils/iperf/Kconfig
index 7d310198d..ec9738c15 100644
--- a/netutils/iperf/Kconfig
+++ b/netutils/iperf/Kconfig
@@ -32,6 +32,12 @@ config NETUTILS_IPERF_STACKSIZE
 
 config NETUTILS_IPERFTEST_DEVNAME
        string "iperf Network device"
-       default "wlan0"
+       default "wlan0" if DRIVERS_IEEE80211
+       default "wpan0" if NET_6LOWPAN
+       default "sl0"   if NET_SLIP
+       default "tun0"  if NET_TUN
+       default "can0"  if NET_CAN
+       default "eth0"  if NET_ETHERNET
+       default "lo" # if NET_LOOPBACK
 
 endif

Reply via email to