hostapd: fix setting wps_state to "not configured"
authorLeon M. George <leon@georgemail.eu>
Tue, 12 Jan 2021 09:30:08 +0000 (10:30 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 15 Jan 2021 17:17:45 +0000 (18:17 +0100)
commitd5bbd4975cbb6fbbfb57d183d1e03453d88f923d
tree89c47dbd72c514aaa38daf2691d119b194fe1434
parent218eff5bdbffbb92e222ba0183ae25220d2defe3
hostapd: fix setting wps_state to "not configured"

With encryption disabled, it was intended to set wpa_state=1 (enabled,
not configured) through the 'wps_not_configured' flag.
The flag is set appropriately but the condition using it is broken.
Instead, 'wps_configured' is checked and wpa_state is always 2 (enabled,
configured). Fix it by using the correct variable name.

Fixes: 498d84fc4e00 ("netifd: add wireless configuration support
and port mac80211 to the new framework")

Signed-off-by: Leon M. George <leon@georgemail.eu>
[commit title/message improvements]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
package/network/services/hostapd/Makefile
package/network/services/hostapd/files/hostapd.sh