[openwrt/openwrt] hostapd: fix key_mgmt typo

LEDE Commits lede-commits at lists.infradead.org
Wed Jan 13 21:57:06 EST 2021


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/fa02225ee656c18b084988246a0ad83fb202c374

commit fa02225ee656c18b084988246a0ad83fb202c374
Author: Leon M. George <leon at georgemail.eu>
AuthorDate: Tue Jan 12 09:38:02 2021 +0100

    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 <leon at georgemail.eu>
    [add commit message, bump PKG_RELEASE]
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 package/network/services/hostapd/Makefile         | 2 +-
 package/network/services/hostapd/files/hostapd.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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" <<EOF



More information about the lede-commits mailing list