Browse Source

add Wifi 6 (802.11ac) (VHT) support

Depends on `iw`.
TODO: Cannot detect if VHT is actually being used.
b1f6c1c4 5 years ago
parent
commit
2131948855
1 changed files with 4 additions and 0 deletions
  1. 4 0
      neofetch

+ 4 - 0
neofetch

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