Skip to content
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

Do not revert to non-volatile settings when changed by application. #1586

Merged
merged 1 commit into from Apr 13, 2017

Conversation

jwhui
Copy link
Member

@jwhui jwhui commented Apr 12, 2017

  • Invalidate Active and Pending Datasets when configs are changed via APIs.
  • Do not allow client to change network configurations while Thread is enabled.

Resolves #1524.

@jwhui jwhui added this to the 0.01.00 (Initial Official Release) milestone Apr 12, 2017
Copy link
Contributor

@nibanks nibanks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good overall. One minor comment though.

OTCALL
otThreadSetExtendedPanId(
_In_ otInstance *aInstance,
const uint8_t *aExtendedPanId
)
{
if (aInstance) (void)SetIOCTL(aInstance, IOCTL_OTLWF_OT_EXTENDED_PANID, (const otExtendedPanId*)aExtendedPanId);
if (aInstance == nullptr) return kThreadError_InvalidArgs;
return DwordToThreadError(SetIOCTL(aInstance, IOCTL_OTLWF_OT_EXTENDED_PANID, (const otExtendedPanId*)aExtendedPanId));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to also update iocontrol.c to pass the error from OpenThread back; similar to this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing that out. Updated!

@codecov-io
Copy link

codecov-io commented Apr 12, 2017

Codecov Report

Merging #1586 into master will decrease coverage by 1.58%.
The diff coverage is 27.27%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1586      +/-   ##
==========================================
- Coverage   71.34%   69.75%   -1.59%     
==========================================
  Files         154      159       +5     
  Lines       18465    20266    +1801     
  Branches     2259     2481     +222     
==========================================
+ Hits        13173    14137     +964     
- Misses       4475     5223     +748     
- Partials      817      906      +89
Impacted Files Coverage Δ
src/core/api/thread_api.cpp 43.13% <25%> (+14.2%) ⬆️
src/core/api/link_api.cpp 26.53% <33.33%> (+6.53%) ⬆️
src/core/thread/lowpan.hpp 86.84% <0%> (-13.16%) ⬇️
src/core/thread/lowpan.cpp 92.47% <0%> (-1.44%) ⬇️
src/core/thread/topology.hpp 87.8% <0%> (-1.22%) ⬇️
examples/apps/ncp/main.c 100% <0%> (ø)
src/ncp/hdlc.cpp 76.34% <0%> (ø)
src/ncp/ncp_base.hpp 0% <0%> (ø)
src/ncp/ncp_base.cpp 35.28% <0%> (ø)
src/ncp/ncp_uart.cpp 71.6% <0%> (ø)
... and 26 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1733f3b...6e8ccf1. Read the comment docs.

- Invalidate Active and Pending Datasets when configs are changed via APIs.
- Do not allow client to change network configurations while Thread is enabled.
Copy link
Member

@abtink abtink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@librasungirl librasungirl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@jwhui jwhui merged commit 04d3032 into openthread:master Apr 13, 2017
@jwhui jwhui deleted the pr/network-param-config branch April 13, 2017 15:41
vaas-krish pushed a commit to vaas-krish/openthread that referenced this pull request May 23, 2017
…s/github_2017_04_18_8f10a4 to master

* commit '1ca70d8da5672ee9179ced326ebced6109377971':
  prevent from subscribing multicast address twice (openthread#1609)
  print error message on cli failure (openthread#1610)
  Coap fixes (openthread#1606)
  Fix compiler warning and code style. (openthread#1605)
  Restrict 15.4 Beacon transmissions to REEDs/Routers/Leaders. (openthread#1591)
  Remove `extern "C"` from cpp files. (openthread#1595)
  Not include non requested TLV in Child Update Response from parent (openthread#1604)
  THCI: enhancements (openthread#1603)
  `Logging`: Fix the typo in `otLogCrit()` macro argument `aInstance` (openthread#1598)
  Update `otPlatRadioReceiveDone()` description to add `kThreadError_NoBufs` error. (openthread#1597)
  `LinkQualityInfo`: Ensure not to add an invalid/unknown RSS to average. (openthread#1594)
  Revised README / Landing page (openthread#1585)
  `spinel.h`: Adjust spacing and alignments (again...) (openthread#1587)
  Do not revert to non-volatile settings when changed by application. (openthread#1586)
  Refine API for creating CoAP message (openthread#1584)
  Parent keeps restoring children until success or timeout (openthread#1581)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants