Re: [PATCH 2/3] wifi-scripts: save wpa_psk_file on permanent storage by default

2024-03-04 Thread Eric via openwrt-devel
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.--- Begin Message --- On Monday, March 4th, 2024 at 13:4

[PATCH 3/3] hostapd: restore /etc/hostapd directory on sysupgrade

2024-03-04 Thread Christian Marangi
Restore /etc/hostapd directory on sysupgrade since it does contain per-device PSK handled by hostapd for WPS usage. Signed-off-by: Christian Marangi --- package/network/services/hostapd/Makefile | 40 --- 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/package

[PATCH 1/3] wifi-scripts: permit hostapd to access wpa_psk_file

2024-03-04 Thread Christian Marangi
Hostapd require access to the wpa_psk_file to insert data in the context of WPS usage. >From hostapd.conf documentation: Note: If wpa_psk_file is set, WPS is used to generate random, per-device PSKs that will be appended to the wpa_psk_file. If wpa_psk_file is not set, the default PSK (wpa_p

[PATCH 2/3] wifi-scripts: save wpa_psk_file on permanent storage by default

2024-03-04 Thread Christian Marangi
Save wpa_psk_file on permanent storage by default. Currently it's always created in /var/run with the hostapd files. Any user that would use this option would save this file on permanent storage to declare specific PSK per devices or for each VLAN. The file is also used for WPS to store the per-d

[PATCH 0/3] wifi-scripts: fix WPS usage

2024-03-04 Thread Christian Marangi
This is a long lasting problem (like 4 years)... It was something I notice a looong time ago but never had time to actually bisect this, as I was convinced it was a problem with hostapd due to the fact that it was an insecure option. But then I notice that hostapd have hwsim testing for this feat

Re: [PATCH] base-files: sysupgrade: fix generating backup to stdout

2024-03-04 Thread Rafał Miłecki
On 4.03.2024 08:15, Rafał Miłecki wrote: From: Rafał Miłecki Before recent change "tar" command was called with an "-f" argument which accepts "-" for stdout output. Bring back support for that feature with new code. Fixes: e36cc530927c ("base-files: sysupgrade: use tar helper to include inst

[PATCH] base-files: sysupgrade: handle errors when generating backup

2024-03-04 Thread Rafał Miłecki
From: Rafał Miłecki 1. Return error if any step of generating tar file fails 2. Use pipefail to avoid calling "gzip" if tar failed Fixes: e36cc530927c ("base-files: sysupgrade: use tar helper to include installed_packages.txt") Reported-by: Luiz Angelo Daros de Luca Cc: Luiz Angelo Daros de Lu