add Wifi 6 (802.11ac) (VHT) support

Depends on `iw`.
TODO: Cannot detect if VHT is actually being used.
This commit is contained in:
b1f6c1c4 2020-07-24 00:44:06 -04:00
parent 3643275e44
commit 2131948855
No known key found for this signature in database
GPG key ID: B733A45639BA98FF

View file

@ -2659,6 +2659,8 @@ get_network() {
networks+="$(cat "$i/speed")"
else
networks+="Wifi"
phy="$(cat "$i/phy80211/name")"
(iw "$phy" info | grep -qF 'VHT Capabilities') && networks+='6'
fi
networks+=$'\n'
fi
@ -2670,6 +2672,8 @@ get_network() {
[ "$n" -gt 1 ] && network+="${n}x "
if [ "$i" = "Wifi" ]; then
network+="Wifi; "
elif [ "$i" = "Wifi6" ]; then
network+="Wifi6; "
elif [ "$i" = "-1" ]; then
network+="Unknown; "
elif [ "${i%000}" = "$i" ]; then