-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[thread-host] add set channel max power api #2551
[thread-host] add set channel max power api #2551
Conversation
b602940
to
fe42357
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2551 +/- ##
==========================================
- Coverage 55.77% 46.13% -9.65%
==========================================
Files 87 104 +17
Lines 6890 12447 +5557
Branches 0 907 +907
==========================================
+ Hits 3843 5742 +1899
- Misses 3047 6394 +3347
- Partials 0 311 +311 ☔ View full report in Codecov by Sentry. |
5159ada
to
d7ac367
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
11b942d
to
345139a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. 👍
One smaller suggestion below (the PR is also fine as is).
otbrLogInfo("Set channel max power: channel=%u, maxPower=%d", static_cast<unsigned int>(channel), | ||
static_cast<int>(maxPower)); | ||
SuccessOrExit(error = otPlatRadioSetChannelTargetPower(mInstance, channel, maxPower), | ||
errorMsg = "Failed to set channel max power"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticed that we allow an optional action
statement in SuccessOrExit()
in ot-br-posix
. Nice... :)
345139a
to
ca4146e
Compare
ca4146e
to
104cacd
Compare
This PR adds the SetChannelMaxPower method to ThreadHost.
The PR implements this method for RcpHost. The implementation for NCP will be added later.