aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorJohann Neuhauser <johann@it-neuhauser.de>2020-06-08 22:01:47 +0200
committerJohn Crispin <john@phrozen.org>2020-06-13 18:31:43 +0200
commitc0ddb85a1d2361fe1d627878d1b05cd5c2bc5c62 (patch)
tree50760541edb03c8001cc89e690d9971e970bd57b /package/network
parentb8ed898f1bb809df1f5a16b34198c812236e9ff2 (diff)
downloadupstream-c0ddb85a1d2361fe1d627878d1b05cd5c2bc5c62.tar.gz
upstream-c0ddb85a1d2361fe1d627878d1b05cd5c2bc5c62.tar.bz2
upstream-c0ddb85a1d2361fe1d627878d1b05cd5c2bc5c62.zip
hostapd: hostapd_set_psk_file: fix defaut value for mac
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software. Bringing up of station vlan fails if the optional mac entry isn't set. The default mac "00:00:00:00:00:00", which should match all stations, is mistakenly set to the non used variable "isolate". This results in a wrong formatted .psk file which has to be "vlan_id mac key". fixes: 5aa2ddd0: hostapd: add support for wifi-station and wifi-vlan sections Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/hostapd/files/hostapd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index c9c0507120..f4e2aa559c 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -283,7 +283,7 @@ hostapd_set_psk_file() {
local vlan_id=""
json_get_vars mac vid key
- set_default isolate "00:00:00:00:00:00"
+ set_default mac "00:00:00:00:00:00"
[ -n "$vid" ] && vlan_id="vlanid=$vid "
echo "${vlan_id} ${mac} ${key}" >> /var/run/hostapd-${ifname}.psk
}