From 52ec2326b309841116f40b7dd82b045d31ed622a Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Sun, 22 Oct 2023 11:10:30 +0200 Subject: [PATCH] Documentation: fix esp32-devkitc errors --- .../xtensa/esp32/boards/esp32-devkitc/index.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/index.rst b/Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/index.rst index af51d4fe7c..798cdff5d5 100644 --- a/Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/index.rst +++ b/Documentation/platforms/xtensa/esp32/boards/esp32-devkitc/index.rst @@ -982,7 +982,7 @@ credentials in the menuconfig. You can define your credentials this way:: -> Network initialization (NETUTILS_NETINIT [=y]) -> WAPI Configuration -After compile and flash your board you need to confirm you have two interfaces: +After compile and flash your board you need to confirm you have two interfaces:: nsh> ifconfig wlan0 Link encap:Ethernet HWaddr bc:dd:c2:d4:a9:ec at RUNNING mtu 1504 @@ -991,25 +991,25 @@ After compile and flash your board you need to confirm you have two interfaces: wlan1 Link encap:Ethernet HWaddr bc:dd:c2:d4:a9:ed at DOWN mtu 1504 inet addr:0.0.0.0 DRaddr:0.0.0.0 Mask:0.0.0.0 -Now you need to configure your wlan1 to become a WiFi Access Point: +Now you need to configure your wlan1 to become a WiFi Access Point:: nsh> dhcpd_start wlan1 nsh> wapi psk wlan1 mypasswd 3 nsh> wapi essid wlan1 nuttxap 1 -And you need to make the route to your WiFi Router (i.e. 192.168.0.1) the default route: +And you need to make the route to your WiFi Router (i.e. 192.168.0.1) the default route:: nsh> addroute default 192.168.0.1 wlan0 nsh> route SEQ TARGET NETMASK ROUTER 1. 0.0.0.0 0.0.0.0 192.168.0.1 -Finally we will setup an iptables rule to NAT the wlan0 interface: +Finally we will setup an iptables rule to NAT the wlan0 interface:: nsh> iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE After connectig a client (i.e. Linux computer) to the `nuttxap` Access Point -you can confirm it is working this way: +you can confirm it is working this way:: $ ifconfig lo: flags=73 mtu 65536