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)
committerJohn Crispin <john@phrozen.org>
Fri, 13 Dec 2024 14:29:03 +0000 (15:29 +0100)
commit76fabd909e64fe2f6e56e28ded90053d1293b242
treef14013040fe97a1dba648d8cc79edc4704b2c217
parentfb17914f65a430555b908929682d8b36d6e31b12
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>
Link: https://github.com/openwrt/openwrt/pull/17197
Signed-off-by: John Crispin <john@phrozen.org>
package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh