From: Michael Tremer Date: Mon, 22 Sep 2025 10:34:14 +0000 (+0200) Subject: hostapd: Fix incorrect variable when detecting the band X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f78583594da17ca223caf46166af6db8dee39203;p=ipfire-2.x.git hostapd: Fix incorrect variable when detecting the band Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/packages/hostapd b/src/initscripts/packages/hostapd index 6a5ef5499..6468908bd 100644 --- a/src/initscripts/packages/hostapd +++ b/src/initscripts/packages/hostapd @@ -321,7 +321,7 @@ write_config() { # Set some default BAND if none is set if [ -z "${BAND}" ]; then # Use 2.4 GHz for 802.11g/n and assume 5 GHz for anything else - case "${MODE}" in + case "${HW_MODE}" in gn) BAND="2g" ;;