wifi-scripts: don't fail on unset PSK
authorDavid Bauer <mail@david-bauer.net>
Sat, 7 Dec 2024 13:47:29 +0000 (14:47 +0100)
committerDavid Bauer <mail@david-bauer.net>
Fri, 20 Dec 2024 00:20:00 +0000 (01:20 +0100)
commit5289460fd0281f653cb3701e777b6be3fcd43ca4
tree25f03156d64b285810fb94a47ef1e8de747aa463
parent9f76cda3781e06e3a59c70f35b6cc6f81da6ce5f
wifi-scripts: don't fail on unset PSK

Don't fail wireless interface bringup on empty PSK set. This is a valid
configuration, resulting in a PSK network which can't be connected to.
It does not fail the bringup of the hostapd process.

Keep failing the interface setup in case a password with invalid length
is used.

This is also beneficial when intending to configure a PPSK network. It
allows to create a network where no PPSK is yet set.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 17a71f0c154cebd2e52cd8407531a9a88c931474)
package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh