aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-12-03 09:02:58 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-12-03 09:02:58 +0000
commit48fbe7cd692f99f6afffa63db527cfebf6b3209f (patch)
tree7f42eb735065f1c809afe1a5ff03cb3ccc40bac7 /package
parent9f6dd226eb9d092af0f7bd577dd370c959b6493a (diff)
downloadupstream-48fbe7cd692f99f6afffa63db527cfebf6b3209f.tar.gz
upstream-48fbe7cd692f99f6afffa63db527cfebf6b3209f.tar.bz2
upstream-48fbe7cd692f99f6afffa63db527cfebf6b3209f.zip
hostapd: fix maclist processing with netifd
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38991 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/network/services/hostapd/files/netifd.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh
index 020c41fd03..4879c044b2 100644
--- a/package/network/services/hostapd/files/netifd.sh
+++ b/package/network/services/hostapd/files/netifd.sh
@@ -308,7 +308,7 @@ hostapd_set_bss_options() {
esac
fi
- _macfile="/var/run/hostapd-$phy-$ifname.maclist"
+ _macfile="/var/run/hostapd-$ifname.maclist"
case "$macfilter" in
allow)
append bss_conf "macaddr_acl=1" "$N"
@@ -324,7 +324,8 @@ hostapd_set_bss_options() {
esac
[ -n "$_macfile" ] && {
- json_get_vars macfile maclist
+ json_get_vars macfile
+ json_get_values maclist maclist
rm -f "$_macfile"
(