[openwrt/openwrt] wifi-scripts: fix channels array property parsing in ucode script
LEDE Commits
lede-commits at lists.infradead.org
Sun Dec 8 06:11:38 PST 2024
nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/cf1909a024a7db28a43dd799dea09358d0ecee87
commit cf1909a024a7db28a43dd799dea09358d0ecee87
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sun Dec 8 15:10:51 2024 +0100
wifi-scripts: fix channels array property parsing in ucode script
Since the channels array can contain ranges, its type needs to be string, not number.
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
.../wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-device.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-device.json b/package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-device.json
index 65d33989fe..77b7adada8 100644
--- a/package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-device.json
+++ b/package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-device.json
@@ -115,7 +115,7 @@
"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": {
More information about the lede-commits
mailing list