fix display of supported modes

This commit is contained in:
Max Fiedler 2025-02-16 12:45:53 +01:00
parent 030fa24210
commit 2b06e8fc7c

2
wpe
View File

@ -25,7 +25,7 @@ fi
echo "[+] Available network interfaces and capabilities:"
iw dev | awk '/Interface/ {iface=$2; print "- Interface: " iface} /type/ {print " Current Mode: "$2}';
echo "[+] Supported modes for each interface:";
iw list | awk '/Wiphy/ {wiphy=$2} /Supported interface modes/ {print " " wiphy; getline; while ($1 ~ /^[ \t]/) {print " "$1; getline}}'
iw list | awk '/Wiphy/ {wiphy=$2} /Supported interface modes:/ {getline; while ($1 ~ /^[ ]/) {print " " wiphy " supports: " $1; getline}}';
# Prompt user for the network card
while true; do