Signed-off-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
assert isset key
fi
+ # Get HT caps
+ local ht_caps="$(wireless_get_ht_caps "${device}")"
+
# Create configuration directory.
local config_dir=$(dirname ${file})
mkdir -p ${HOSTAPD_CONTROL_INTERFACE_DIR} ${config_dir} 2>/dev/null
# WMM
print "wmm_enabled=${wmm}"
+ # Enable HT caps
+ print "ht_capab=${ht_caps}"
+
print
) >> ${file}
return ${EXIT_OK}
}
+
+wireless_get_ht_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-ht-caps "${phy}"
+}