From fa02225ee656c18b084988246a0ad83fb202c374 Mon Sep 17 00:00:00 2001 From: "Leon M. George" Date: Tue, 12 Jan 2021 09:38:02 +0100 Subject: hostapd: fix key_mgmt typo The key_mgmt variable was mistyped when checking against "WPS", so the if clause was never entered. Fixes: f5753aae233f ("hostapd: add support for WPS pushbutton station") Signed-off-by: Leon M. George [add commit message, bump PKG_RELEASE] Signed-off-by: Adrian Schmutzler --- package/network/services/hostapd/Makefile | 2 +- package/network/services/hostapd/files/hostapd.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'package/network') diff --git a/package/network/services/hostapd/Makefile b/package/network/services/hostapd/Makefile index 53470a2c02..4f740951c0 100644 --- a/package/network/services/hostapd/Makefile +++ b/package/network/services/hostapd/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=hostapd -PKG_RELEASE:=26 +PKG_RELEASE:=27 PKG_SOURCE_URL:=http://w1.fi/hostap.git PKG_SOURCE_PROTO:=git diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh index d9a5332bee..815f22db74 100644 --- a/package/network/services/hostapd/files/hostapd.sh +++ b/package/network/services/hostapd/files/hostapd.sh @@ -1368,7 +1368,7 @@ wpa_supplicant_add_network() { append network_data "mcast_rate=$mc_rate" "$N$T" } - if [ "$key_mgnt" = "WPS" ]; then + if [ "$key_mgmt" = "WPS" ]; then echo "wps_cred_processing=1" >> "$_config" else cat >> "$_config" <