hostapd: fix basic rate list handling with netifd
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39431
This commit is contained in:
parent
bb8c34d98c
commit
cfc20090f1
1 changed files with 7 additions and 1 deletions
|
@ -6,6 +6,12 @@ hostapd_add_rate() {
|
||||||
[ $sub -gt 0 ] && append $var "."
|
[ $sub -gt 0 ] && append $var "."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hostapd_add_basic_rate() {
|
||||||
|
local var="$1"
|
||||||
|
local val="$(($2 / 100))"
|
||||||
|
append $var "$val" " "
|
||||||
|
}
|
||||||
|
|
||||||
hostapd_append_wep_key() {
|
hostapd_append_wep_key() {
|
||||||
local var="$1"
|
local var="$1"
|
||||||
|
|
||||||
|
@ -71,7 +77,7 @@ hostapd_prepare_device_config() {
|
||||||
local brlist= br
|
local brlist= br
|
||||||
json_get_values basic_rate_list basic_rate
|
json_get_values basic_rate_list basic_rate
|
||||||
for br in $basic_rate_list; do
|
for br in $basic_rate_list; do
|
||||||
hostapd_add_rate brlist "$br"
|
hostapd_add_basic_rate brlist "$br"
|
||||||
done
|
done
|
||||||
[ -n "$brlist" ] && append base_cfg "basic_rates=$brlist" "$N"
|
[ -n "$brlist" ] && append base_cfg "basic_rates=$brlist" "$N"
|
||||||
[ -n "$beacon_int" ] && append base_cfg "beacon_int=$beacon_int" "$N"
|
[ -n "$beacon_int" ] && append base_cfg "beacon_int=$beacon_int" "$N"
|
||||||
|
|
Loading…
Reference in a new issue