hostapd: recognize option "key" as alias for "auth_secret"
authorJo-Philipp Wich <jo@mein.io>
Fri, 7 Aug 2020 19:19:29 +0000 (21:19 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 7 Aug 2020 19:19:29 +0000 (21:19 +0200)
commitbc1c9fdc2075a5f93046be74782be024c4f3fb3f
treee17ce346fb7dec1eb6b35f221f22dc96b05b90d4
parent321503dbf3d8ac0da8c1693a94a334f8072c72ac
hostapd: recognize option "key" as alias for "auth_secret"

The hostapd configuration logic is supposed to accept "option key" as
legacy alias for "option auth_secret". This particular fallback option
failed to work though because "key" was not a registered configuration
variable.

Fix this issue by registering the "key" option as well, similar to the
existing "server" nad "port" options.

Ref: https://github.com/openwrt/openwrt/pull/3282
Suggested-by: Michael Jones <mike@meshplusplus.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
package/network/services/hostapd/Makefile
package/network/services/hostapd/files/hostapd.sh