Преглед на файлове

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 <[email protected]>
Johann Neuhauser преди 5 години
родител
ревизия
c0ddb85a1d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      package/network/services/hostapd/files/hostapd.sh

+ 1 - 1
package/network/services/hostapd/files/hostapd.sh

@@ -283,7 +283,7 @@ hostapd_set_psk_file() {
 	local vlan_id=""
 	local vlan_id=""
 
 
 	json_get_vars mac vid key
 	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 "
 	[ -n "$vid" ] && vlan_id="vlanid=$vid "
 	echo "${vlan_id} ${mac} ${key}" >> /var/run/hostapd-${ifname}.psk
 	echo "${vlan_id} ${mac} ${key}" >> /var/run/hostapd-${ifname}.psk
 }
 }