This is an old revision of the document!
Download and install the configuration script:
wget https://raw.githubusercontent.com/khadas/fenix/refs/heads/master/archives/filesystem/common/usr/local/bin/khadas_ap.sh sudo chmod 777 khadas_ap.sh sudo mv khadas_ap.sh /usr/local/bin
Noteļ¼ This script will be included in future system images. For now, you can manually download it or rebuild your image to include it.
This guide explains how to configure dual Wi-Fi modes using the khadas_ap.sh script (v1.0). It enables the Edge-2L to operate in one of the following modes simultaneously:
wlan0 acts as a Station (STA) to connect to an existing Wi-Fi network, while wlan1 creates an Access Point (AP) hotspot.eth0 provides an Ethernet uplink while wlan1 creates an AP hotspot.wlan0wlan1Run the script with root privileges:
sudo khadas_ap.sh
You will see the following menu:
======================================== WiFi Configuration Tool v1.0 ======================================== 1. STA+AP Mode 2. ETH+AP Mode 3. Stop All Services 4. Exit ======================================== Please select an option [1-4]:
wlan0 (connected to an existing Wi-Fi) and wlan1 (AP hotspot). Hotspot IP: 192.168.43.1, DHCP range: 192.168.43.2-254.eth0 and wlan1. Note: This mode will not work on Edge-2L as it lacks an eth0 interface.After configuration, verify the interface status:
ifconfig wlan0 && ifconfig wlan1
In STA+AP mode, test internet connectivity from the device:
ping -I wlan0 google.com
To connect to the hotspot from another device:
Edge-2L Device Limitations:
The Edge-2L does not have an Ethernet interface (eth0). Therefore, ETH+AP Mode (Option 2) will not function.Use STA+AP Mode (Option 1) exclusively.
192.168.43.1/24192.168.43.2-2548.8.8.8) via port 5353dnsmasq, hostapd, iptables.wlan1 interface exists.ps aux | grep -E 'hostapd|dnsmasq' iwconfig wlan0iptables -t nat -L -n -v systemctl status dnsmasq