hostapd: fix maclist processing with netifd

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38991
lede-17.01
Felix Fietkau 2013-12-03 09:02:58 +00:00
parent 6e0fafd816
commit 603c532eed
1 changed files with 3 additions and 2 deletions

View File

@ -308,7 +308,7 @@ hostapd_set_bss_options() {
esac esac
fi fi
_macfile="/var/run/hostapd-$phy-$ifname.maclist" _macfile="/var/run/hostapd-$ifname.maclist"
case "$macfilter" in case "$macfilter" in
allow) allow)
append bss_conf "macaddr_acl=1" "$N" append bss_conf "macaddr_acl=1" "$N"
@ -324,7 +324,8 @@ hostapd_set_bss_options() {
esac esac
[ -n "$_macfile" ] && { [ -n "$_macfile" ] && {
json_get_vars macfile maclist json_get_vars macfile
json_get_values maclist maclist
rm -f "$_macfile" rm -f "$_macfile"
( (