mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-01 10:57:47 +00:00
hostapd: fix dynamic_vlan
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -823,6 +823,8 @@ mac80211_prepare_vif() {
|
|||||||
json_select config
|
json_select config
|
||||||
|
|
||||||
json_get_vars ifname mode ssid wds powersave macaddr enable wpa_psk_file vlan_file
|
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" ] || {
|
[ -n "$ifname" ] || {
|
||||||
local prefix;
|
local prefix;
|
||||||
@@ -904,8 +906,8 @@ mac80211_prepare_vif() {
|
|||||||
json_select ..
|
json_select ..
|
||||||
|
|
||||||
[ "$mode" == "ap" ] && {
|
[ "$mode" == "ap" ] && {
|
||||||
[ -z "$wpa_psk_file" ] && hostapd_set_psk "$ifname"
|
[ -z "$config_wpa_psk_file" ] && hostapd_set_psk "$ifname"
|
||||||
[ -z "$vlan_file" ] && hostapd_set_vlan "$ifname"
|
[ -z "$config_vlan_file" ] && hostapd_set_vlan "$ifname"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -823,6 +823,8 @@ mac80211_prepare_vif() {
|
|||||||
json_select config
|
json_select config
|
||||||
|
|
||||||
json_get_vars ifname mode ssid wds powersave macaddr enable wpa_psk_file vlan_file
|
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" ] || {
|
[ -n "$ifname" ] || {
|
||||||
local prefix;
|
local prefix;
|
||||||
@@ -904,8 +906,8 @@ mac80211_prepare_vif() {
|
|||||||
json_select ..
|
json_select ..
|
||||||
|
|
||||||
[ "$mode" == "ap" ] && {
|
[ "$mode" == "ap" ] && {
|
||||||
[ -z "$wpa_psk_file" ] && hostapd_set_psk "$ifname"
|
[ -z "$config_wpa_psk_file" ] && hostapd_set_psk "$ifname"
|
||||||
[ -z "$vlan_file" ] && hostapd_set_vlan "$ifname"
|
[ -z "$config_vlan_file" ] && hostapd_set_vlan "$ifname"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user