aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TEST_MAPPING7
-rw-r--r--src/android/openthread-android-config.h5
-rw-r--r--src/core/meshcop/dataset_manager.cpp9
3 files changed, 15 insertions, 6 deletions
diff --git a/TEST_MAPPING b/TEST_MAPPING
new file mode 100644
index 000000000..9bafe2943
--- /dev/null
+++ b/TEST_MAPPING
@@ -0,0 +1,7 @@
+{
+ "imports": [
+ {
+ "path": "external/ot-br-posix"
+ }
+ ]
+}
diff --git a/src/android/openthread-android-config.h b/src/android/openthread-android-config.h
index 2aa291565..e61482d3a 100644
--- a/src/android/openthread-android-config.h
+++ b/src/android/openthread-android-config.h
@@ -45,10 +45,9 @@
#define OPENTHREAD_CONFIG_CLI_UART_RX_BUFFER_SIZE 3500
/**
- * Disables the default posix infrastructure interface implementation
- * so that we can can use the Android specific implementation.
+ * Enables the default posix infrastructure interface implementation.
*/
-#define OPENTHREAD_POSIX_CONFIG_INFRA_IF_ENABLE 0
+#define OPENTHREAD_POSIX_CONFIG_INFRA_IF_ENABLE 1
/**
* Disables the default posix TUN interface implementation
diff --git a/src/core/meshcop/dataset_manager.cpp b/src/core/meshcop/dataset_manager.cpp
index 043f88c2a..e236fcc57 100644
--- a/src/core/meshcop/dataset_manager.cpp
+++ b/src/core/meshcop/dataset_manager.cpp
@@ -312,15 +312,18 @@ void DatasetManager::HandleMgmtSetResponse(Coap::Message *aMessage, const Ip6::M
OT_UNUSED_VARIABLE(aMessageInfo);
Error error;
- uint8_t state;
+ uint8_t state = StateTlv::kPending;
SuccessOrExit(error = aError);
VerifyOrExit(Tlv::Find<StateTlv>(*aMessage, state) == kErrorNone && state != StateTlv::kPending,
error = kErrorParse);
+ if (state == StateTlv::kReject)
+ {
+ error = kErrorRejected;
+ }
exit:
- LogInfo("MGMT_SET finished: %s",
- error == kErrorNone ? StateTlv::StateToString(static_cast<StateTlv::State>(state)) : ErrorToString(error));
+ LogInfo("MGMT_SET finished: %s", error == kErrorNone ? "Accepted" : ErrorToString(error));
mMgmtPending = false;