wifi6-status-check-uci.sh
Network diagnostic script displaying WiFi 6 interface status and client list.
This script uses standard OpenWrt utilities (ifconfig, iwinfo, uci). It is specific to the dual-band (2.4GHz and 5GHz) configuration of the RTL8198D. Ensure the 'iwinfo' package is installed. Interfaces are typically wlan0 (2.4GHz) and wlan1 (5GHz) according to Banana Pi's default UCI configuration.
wifi6-status-check-uci.sh
#!/bin/sh
# Vérification de l'état WiFi 6 sur BPI-RT2
echo "--- Statut Interfaces WiFi ---"
ifconfig | grep -E "wlan0|wlan1" -A 2
echo ""
echo "--- Clients Connectés (STA) ---"
# Utilise iwinfo pour lister les stations
if command -v iwinfo >/dev/null 2>&1; then
for iface in wlan0 wlan1; do
if [ -d "/sys/class/net/$iface" ]; then
echo "Interface: $iface"
iwinfo $iface assoclist
fi
done
else
echo "iwinfo non installé"
fi
echo ""
echo "--- Configuration UCI WiFi ---"
uci show wireless | grep -E "mode|channel|htmode|vhtmode"