{
    "$schema": "http://json-schema.org/draft-06/schema#",
    "description": "Defines a physical Wi-Fi device and its configuration.",
    "type": "object",
    "properties": {
        "channel": {
            "type": "integer",
            "description": "Wi-Fi channel number.",
            "minimum": 1,
            "maximum": 165
        },
        "htmode": {
            "type": "string",
            "enum": [
                null,
                "HT20",
                "HT40+",
                "HT40-",
                "VHT20",
                "VHT40",
                "VHT80"
            ],
            "description": "Enable 802.11n or 802.11ac modes."
        },
        "hwmode": {
            "type": "string",
            "enum": [
                "11b",
                "11g",
                "11a"
            ],
            "description": "Basic operating mode (11b for old hardware, 11g for 2.4 GHz, 11a for 5 GHz)."
        },
        "id": {
            "type": "string",
            "description": "Physical identifier, e.g. pci-wifi-1 or usb-wifi-0."
        },
        "rx_stbc": {
            "type": "integer",
            "description": "Indicates support for receiving frames using STBC.",
            "minimum": 0,
            "maximum": 1
        },
        "short_gi_20": {
            "type": "boolean",
            "description": "Enable short guard interval (higher data rates) in 20 MHz channels, must be supported by device."
        },
        "short_gi_40": {
            "type": "boolean",
            "description": "Enable short guard interval (higher data rates) in 40 MHz channel, must be supported by device."
        },
        "short_gi_80": {
            "type": "boolean",
            "description": "Enable short guard interval (higher data rates) in 80 MHz channel, must be supported by device."
        },
        "tx_stbc": {
            "type": "integer",
            "description": "Indicates support for transmitting frames using STBC.",
            "minimum": 0,
            "maximum": 1
        }
    }
}