hostapd: fix dynamic_vlan

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2023-11-22 18:37:43 +01:00
parent c8c5f14071
commit 75374d2765
2 changed files with 8 additions and 4 deletions

View File

@@ -823,6 +823,8 @@ mac80211_prepare_vif() {
json_select config
json_get_vars ifname mode ssid wds powersave macaddr enable wpa_psk_file vlan_file
local config_wpa_psk_file="$wpa_psk_file"
local config_vlan_file="$vlan_file"
[ -n "$ifname" ] || {
local prefix;
@@ -904,8 +906,8 @@ mac80211_prepare_vif() {
json_select ..
[ "$mode" == "ap" ] && {
[ -z "$wpa_psk_file" ] && hostapd_set_psk "$ifname"
[ -z "$vlan_file" ] && hostapd_set_vlan "$ifname"
[ -z "$config_wpa_psk_file" ] && hostapd_set_psk "$ifname"
[ -z "$config_vlan_file" ] && hostapd_set_vlan "$ifname"
}
}

View File

@@ -823,6 +823,8 @@ mac80211_prepare_vif() {
json_select config
json_get_vars ifname mode ssid wds powersave macaddr enable wpa_psk_file vlan_file
local config_wpa_psk_file="$wpa_psk_file"
local config_vlan_file="$vlan_file"
[ -n "$ifname" ] || {
local prefix;
@@ -904,8 +906,8 @@ mac80211_prepare_vif() {
json_select ..
[ "$mode" == "ap" ] && {
[ -z "$wpa_psk_file" ] && hostapd_set_psk "$ifname"
[ -z "$vlan_file" ] && hostapd_set_vlan "$ifname"
[ -z "$config_wpa_psk_file" ] && hostapd_set_psk "$ifname"
[ -z "$config_vlan_file" ] && hostapd_set_vlan "$ifname"
}
}