]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
hostapd: Fix incorrect variable when detecting the band
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Sep 2025 10:34:14 +0000 (12:34 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Sep 2025 11:46:24 +0000 (11:46 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/packages/hostapd

index 6a5ef54992779aab2a6677a0b1361bde14b1a6a5..6468908bda098a37200469c3d534c35cd6160b69 100644 (file)
@@ -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"
                                ;;