Skip to content
Snippets Groups Projects
wifi.radio.md 18.1 KiB
Newer Older
  • Learn to ignore specific revisions
  • Jakob Olsson's avatar
    Jakob Olsson committed
    
    - is **required**
    - type: reference
    
    ##### tx_packets Type
    
    `integer`
    
    - minimum value: `0`
    
    ### Output Example
    
    ```json
    {
    
      "tx_bytes": 52256666,
      "tx_packets": 56412375,
      "tx_error_packets": 92922995,
      "tx_dropped_packets": 12851167,
      "rx_bytes": 7731111,
      "rx_packets": 56612816,
      "rx_error_packets": 8626017,
      "rx_dropped_packets": 57740274,
      "rx_fcs_error_packets": 73453141
    
    Jakob Olsson's avatar
    Jakob Olsson committed
    }
    ```
    
    ## status
    
    `status`
    
    - type: `Method`
    
    ### status Type
    
    `object` with following properties:
    
    | Property | Type   | Required |
    | -------- | ------ | -------- |
    | `input`  | object | Optional |
    | `output` | object | Optional |
    
    #### input
    
    `input`
    
    - is optional
    - type: `object`
    
    ##### input Type
    
    `object` with following properties:
    
    | Property | Type | Required |
    | -------- | ---- | -------- |
    | None     | None | None     |
    
    ### Ubus CLI Example
    
    ```
    ubus call wifi.radio.<name> status {}
    ```
    
    ### JSONRPC Example
    
    ```json
    { "jsonrpc": "2.0", "id": 0, "method": "call", "params": ["<SID>", "wifi.radio.<name>", "status", {}] }
    ```
    
    #### output
    
    ##### wifi.radio.iface
    
    Radio status
    
    `output`
    
    - is optional
    - type: `object`
    
    ##### output Type
    
    `object` with following properties:
    
    | Property            | Type    | Required     | Default |
    | ------------------- | ------- | ------------ | ------- |
    | `band`              | string  | **Required** |         |
    | `beacon_int`        | integer | **Required** | `100`   |
    | `dtim_period`       | integer | **Required** | `1`     |
    | `frag_threshold`    | integer | **Required** | `2346`  |
    | `isup`              | boolean | **Required** |         |
    | `long_retry_limit`  | integer | **Required** |         |
    | `maxrate`           | integer | **Required** |         |
    | `noise`             | integer | **Required** |         |
    | `radio`             | string  | **Required** |         |
    | `rts_threshold`     | integer | **Required** | `2347`  |
    | `short_retry_limit` | integer | **Required** |         |
    
    #### band
    
    ##### WiFi Band
    
    `band`
    
    - is **required**
    - type: reference
    
    ##### band Type
    
    `string`
    
    The value of this property **must** be equal to one of the [known values below](#status-known-values).
    
    ##### band Known Values
    
    | Value |
    | ----- |
    | 2GHz  |
    | 5GHz  |
    
    #### beacon_int
    
    `beacon_int`
    
    - is **required**
    - type: `integer`
    - default: `100`
    
    ##### beacon_int Type
    
    `integer`
    
    - minimum value: `1`
    - maximum value: `65535`
    
    #### dtim_period
    
    `dtim_period`
    
    - is **required**
    - type: `integer`
    - default: `1`
    
    ##### dtim_period Type
    
    `integer`
    
    - minimum value: `1`
    - maximum value: `255`
    
    #### frag_threshold
    
    `frag_threshold`
    
    - is **required**
    - type: `integer`
    - default: `2346`
    
    ##### frag_threshold Type
    
    `integer`
    
    - minimum value: `256`
    - maximum value: `65535`
    
    #### isup
    
    `isup`
    
    - is **required**
    - type: `boolean`
    
    ##### isup Type
    
    `boolean`
    
    #### long_retry_limit
    
    `long_retry_limit`
    
    - is **required**
    - type: `integer`
    
    ##### long_retry_limit Type
    
    `integer`
    
    - minimum value: `1`
    - maximum value: `255`
    
    #### maxrate
    
    `maxrate`
    
    - is **required**
    - type: `integer`
    
    ##### maxrate Type
    
    `integer`
    
    - minimum value: `0`
    
    #### noise
    
    ##### Noise
    
    `noise`
    
    - is **required**
    - type: reference
    
    ##### noise Type
    
    `integer`
    
    - minimum value: `-127`
    - maximum value: `0`
    
    #### radio
    
    ##### Interface
    
    `radio`
    
    - is **required**
    - type: reference
    
    ##### radio Type
    
    `string`
    
    - minimum length: 1 characters
    - maximum length: 16 characters
    
    #### rts_threshold
    
    `rts_threshold`
    
    - is **required**
    - type: `integer`
    - default: `2347`
    
    ##### rts_threshold Type
    
    `integer`
    
    - minimum value: `0`
    - maximum value: `65535`
    
    #### short_retry_limit
    
    `short_retry_limit`
    
    - is **required**
    - type: `integer`
    
    ##### short_retry_limit Type
    
    `integer`
    
    - minimum value: `1`
    - maximum value: `255`
    
    ### Output Example
    
    ```json
    {
    
    Jakob Olsson's avatar
    Jakob Olsson committed
      "band": "5GHz",
    
      "noise": -68,
      "maxrate": 66569043,
      "beacon_int": 55864,
      "dtim_period": 104,
      "short_retry_limit": 244,
      "long_retry_limit": 188,
      "frag_threshold": 43689,
      "rts_threshold": 47804,
      "channel": "culpa",
      "bandwidth": false