Explorar o código

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 <[email protected]>
Felix Fietkau hai 1 ano
pai
achega
cf1909a024

+ 1 - 1
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": {