Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
assert isset key
fi
+ # Get VHT caps
+ local vht_caps="$(wireless_get_vht_caps "${device}")"
+
# Get HT caps
local ht_caps="$(wireless_get_ht_caps "${device}")"
# WMM
print "wmm_enabled=${wmm}"
+ # Enable VHT caps
+ if isset vht_caps; then
+ print "vht_capab=${vht_caps}"
+ fi
+
# Enable HT caps
print "ht_capab=${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}"
+}