wifi-scripts: fix channels array property parsing in ucode script
authorFelix Fietkau <nbd@nbd.name>
Sun, 8 Dec 2024 14:10:51 +0000 (15:10 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 8 Dec 2024 14:11:28 +0000 (15:11 +0100)
Since the channels array can contain ranges, its type needs to be string, not number.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-device.json

index 65d33989fe636a37e01213aed2860745aebb5ea1..77b7adada891eaf85540586dc92016a8fe877443 100644 (file)
                        "description": "Use specific channels, when channel is in “auto” mode. This option allows hostapd to select one of the provided channels when a channel should be automatically selected. Channels can be provided as range using hyphen ('-') or individual channels can be specified by space (' ') separated values",
                        "type": "array",
                        "items": {
-                               "type": "number"
+                               "type": "string"
                        }
                },
                "country": {