hostapd: allow vht on 2g

This commit is contained in:
CN_SZTL 2020-04-04 22:43:13 +08:00
parent 99ba92e755
commit 7464314a91
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=hostapd
PKG_RELEASE:=8
PKG_RELEASE:=9
PKG_SOURCE_URL:=http://w1.fi/hostap.git
PKG_SOURCE_PROTO:=git

View File

@ -95,6 +95,7 @@ hostapd_common_add_device_config() {
config_add_int local_pwr_constraint
config_add_string require_mode
config_add_boolean legacy_rates
config_add_boolean vendor_vht
config_add_string acs_chan_bias
config_add_array hostapd_options
@ -110,7 +111,7 @@ hostapd_prepare_device_config() {
local base_cfg=
json_get_vars country country_ie beacon_int:100 dtim_period:2 doth require_mode legacy_rates \
acs_chan_bias local_pwr_constraint spectrum_mgmt_required
acs_chan_bias local_pwr_constraint spectrum_mgmt_required vendor_vht
hostapd_set_log_options base_cfg
@ -145,6 +146,7 @@ hostapd_prepare_device_config() {
[ "$hwmode" = "g" ] && {
[ "$legacy_rates" -eq 0 ] && set_default rate_list "6000 9000 12000 18000 24000 36000 48000 54000"
[ -n "$require_mode" ] && set_default basic_rate_list "6000 12000 24000"
[ -n "$vendor_vht" ] && append base_cfg "vendor_vht=$vendor_vht" "$N"
}
case "$require_mode" in