mirror of
https://github.com/espressif/openthread.git
synced 2026-09-15 13:40:06 +00:00
[radio] remove transmit power config from core (#2352)
Thread (and OpenThread) does not employ any form of transmit power control. As a result, while OpenThread provides APIs to control transmit power, it simply buffers and passes the transmit power value straight through to the radio. Currently, the transmit power APIs allow specifying an int8_t in units of dBm. This is overly constraining for platforms that have more advanced ways of configuring the transmit power. This commit removes the transmit power configuration from the core. This provides better flexibility in platform-specific ways to configure transmit power.
This commit is contained in:
@@ -465,7 +465,7 @@ The frame metadata field consists of the following fields:
|
||||
|
||||
Field | Description | Type | Len | Default
|
||||
:--------|:-----------------------------|:-----------|-------|----------
|
||||
MD_POWER | (dBm) RSSI/TX-Power | `c` int8 | 1 | -128
|
||||
MD_RSSI | (dBm) RSSI | `c` int8 | 1 | -128
|
||||
MD_NOISE | (dBm) Noise floor | `c` int8 | 1 | -128
|
||||
MD_FLAG | Flags (defined below) | `S` uint16 | 2 |
|
||||
MD_PHY | PHY-specific data | `d` data | >=2 |
|
||||
@@ -477,11 +477,6 @@ the host:
|
||||
* MD_NOISE
|
||||
* MD_FLAG
|
||||
|
||||
When specifying `MD_POWER` for a packet to be transmitted, the actual
|
||||
transmit power is never larger than the current value of `PROP_PHY_TX_POWER`
|
||||
((#prop-phy-tx-power)). When left unspecified (or set to the value -128),
|
||||
an appropriate transmit power will be chosen by the NCP.
|
||||
|
||||
The bit values in `MD_FLAG` are defined as follows:
|
||||
|
||||
Bit | Mask | Name | Description if set
|
||||
|
||||
Reference in New Issue
Block a user