Skip to content

Commit

Permalink
[Telink] Remove custom RF power config
Browse files Browse the repository at this point in the history
It replaces custom config for setting RF power with
CONFIG_OPENTHREAD_DEFAULT_TX_POWER added into zephyr.

Signed-off-by: Krystian Jankowski <[email protected]>
  • Loading branch information
TelinkKrystian authored and s07641069 committed May 19, 2023
1 parent 79da7fb commit 515bd8e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/bridge-app/telink/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ CONFIG_PM=n

# Custom RF power values
CONFIG_B91_BLE_CTRL_RF_POWER_P9P11DBM=y
CONFIG_CHIP_OPENTHREAD_TX_POWER=9
CONFIG_OPENTHREAD_DEFAULT_TX_POWER=9
2 changes: 1 addition & 1 deletion examples/lighting-app/telink/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ CONFIG_PM=n

# Custom RF power values
CONFIG_B91_BLE_CTRL_RF_POWER_P9P11DBM=y
CONFIG_CHIP_OPENTHREAD_TX_POWER=9
CONFIG_OPENTHREAD_DEFAULT_TX_POWER=9
2 changes: 1 addition & 1 deletion examples/temperature-measurement-app/telink/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ CONFIG_PM=y

# Custom RF power values
CONFIG_B91_BLE_CTRL_RF_POWER_P9P11DBM=y
CONFIG_CHIP_OPENTHREAD_TX_POWER=9
CONFIG_OPENTHREAD_DEFAULT_TX_POWER=9
2 changes: 1 addition & 1 deletion examples/window-app/telink/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ CONFIG_PM=y

# Custom RF power values
CONFIG_B91_BLE_CTRL_RF_POWER_P9P11DBM=y
CONFIG_CHIP_OPENTHREAD_TX_POWER=9
CONFIG_OPENTHREAD_DEFAULT_TX_POWER=9
7 changes: 0 additions & 7 deletions src/platform/telink/ThreadStackManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@ CHIP_ERROR ThreadStackManagerImpl::_InitThreadStack()
otInstance * const instance = openthread_get_default_instance();

ReturnErrorOnFailure(GenericThreadStackManagerImpl_OpenThread<ThreadStackManagerImpl>::DoInit(instance));
#ifdef CONFIG_CHIP_OPENTHREAD_TX_POWER
/* On Zephyr platform otPlatRadioSetTransmitPower does not touch radio HW */
if (otPlatRadioSetTransmitPower(OTInstance(), CONFIG_CHIP_OPENTHREAD_TX_POWER) != OT_ERROR_NONE)
{
ChipLogError(DeviceLayer, "Can't set OpenThread TX power");
}
#endif /* CONFIG_CHIP_OPENTHREAD_TX_POWER */

UDPEndPointImplSockets::SetJoinMulticastGroupHandler([](InterfaceId, const IPAddress & address) {
const otIp6Address otAddress = ToOpenThreadIP6Address(address);
Expand Down

0 comments on commit 515bd8e

Please sign in to comment.