wangchen61698 opened a new pull request, #12167:
URL: https://github.com/apache/nuttx/pull/12167
## Summary
The first patch is to close the nuttx0 node when executing the clean
command(sudo ./tools/simwifi/sim_wifi.sh clean eno1)
The second patch is to solve the problem of not being able to find the
simwifi script for non native compiled versions
## Impact
simwifi
## Testing
**The first patch test case**:
wangchen@wangchen-OptiPlex-7080:~/complie/vela_dev_0415/nuttx$ sudo
./tools/simwifi/sim_wifi.sh init eno1 hwsim
init env
start bridge to eno1
[set_state] new state:SW_INIT
state:SW_INIT wlan_if:, br_if:nuttx0 wan_if:eno1
wangchen@wangchen-OptiPlex-7080:~/complie/vela_dev_0415/nuttx$ ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.221.99.130 netmask 255.255.224.0 broadcast 10.221.127.255
inet6 fe80::862:7440:ebaa:de33 prefixlen 64 scopeid 0x20<link>
ether b0:7b:25:25:67:44 txqueuelen 1000 (以太网)
RX packets 135763003 bytes 183390753362 (183.3 GB)
RX errors 0 dropped 18 overruns 0 frame 0
TX packets 9776540 bytes 2750072233 (2.7 GB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0x91200000-91220000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (本地环回)
RX packets 769964 bytes 114887513 (114.8 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 769964 bytes 114887513 (114.8 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
nuttx0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 10.0.1.1 netmask 255.255.255.0 broadcast 0.0.0.0
inet6 fc00::1 prefixlen 112 scopeid 0x0<global>
inet6 fe80::821:4fff:fe73:1d34 prefixlen 64 scopeid 0x20<link>
ether 3e:65:b1:26:a7:11 txqueuelen 1000 (以太网)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=-28669<UP,BROADCAST,MULTICAST,DYNAMIC> mtu 1500
ether 02:00:00:00:00:00 txqueuelen 1000 (以太网)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan1: flags=-28669<UP,BROADCAST,MULTICAST,DYNAMIC> mtu 1500
ether 02:00:00:00:01:00 txqueuelen 1000 (以太网)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wangchen@wangchen-OptiPlex-7080:~/complie/vela_dev_0415/nuttx$ sudo
./tools/simwifi/sim_wifi.sh clean eno1
[recovery_to_init] cur_s:SW_INIT
stop bridge to eno1
Warning: The nuttx0 will be deleted!
wangchen@wangchen-OptiPlex-7080:~/complie/vela_dev_0415/nuttx$ ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.221.99.130 netmask 255.255.224.0 broadcast 10.221.127.255
inet6 fe80::862:7440:ebaa:de33 prefixlen 64 scopeid 0x20<link>
ether b0:7b:25:25:67:44 txqueuelen 1000 (以太网)
RX packets 135765156 bytes 183391402375 (183.3 GB)
RX errors 0 dropped 18 overruns 0 frame 0
TX packets 9777331 bytes 2750390258 (2.7 GB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0x91200000-91220000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (本地环回)
RX packets 770105 bytes 114909481 (114.9 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 770105 bytes 114909481 (114.9 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wangchen@wangchen-OptiPlex-7080:~/complie/vela_dev_0415/nuttx$
**The second patch test case**
before

after

--
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]