wifi6-status-check-uci.sh

Banana Pi BPI-RT2: AX3000 WiFi 6 Router Board · File : wifi6-status-check-uci.sh · Language : Bash · Use case : Vérifier l'état du module WiFi 6 et les clients connectés via les outils UCI/OpenWrt.

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"

← Back to the board