]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/functions/functions.wireless
hostapd: Write VHT capabilities to configuration
[people/ms/network.git] / src / functions / functions.wireless
index bf09a50935351766daf3c7310cf9b65b637f8308..ba4cd472043b413696c93cf1bec010bd73a2ee5c 100644 (file)
@@ -458,3 +458,16 @@ wireless_get_ht_caps() {
 
        network-phy-list-ht-caps "${phy}"
 }
+
+wireless_get_vht_caps() {
+       local device="${1}"
+       assert isset device
+
+       local phy="$(device_get_phy "${device}")"
+       if ! isset phy; then
+               log ERROR "Could not determine PHY for ${device}"
+               return ${EXIT_ERROR}
+       fi
+
+       network-phy-list-vht-caps "${phy}"
+}