netifd: fix hwmode for 60g band
authorDaniel Golle <daniel@makrotopia.org>
Sun, 3 Apr 2022 12:02:22 +0000 (13:02 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 23 May 2022 13:36:31 +0000 (14:36 +0100)
hwmode should be set to 'ad' for 60g band.

Reported-by: herman@zeilsteenfilm.nl
Fixes: 62e3cb5 ("scripts/netifd-wireless.sh: add support for specifying the operating band")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
scripts/netifd-wireless.sh

index 80fbf7561b97f1d66d33e1b84b269a8231523f11..0e3293ce439e76f5d3dfe156b3898bfd62826c0c 100644 (file)
@@ -70,7 +70,8 @@ _wdev_prepare_channel() {
 
        case "$band" in
                2g) hwmode=g;;
-               5g|6g|60g) hwmode=a;;
+               5g|6g) hwmode=a;;
+               60g) hwmode=ad;;
                *)
                        case "$hwmode" in
                                *a) band=5g;;