[Thread] fix the test util of setNat64EnabledAndWait to apply old config

Bug: 356770473
Change-Id: I6d1e3d6acc9a101b3e783ab4493ed25a3aa732a1
This commit is contained in:
Yang Sun 2024-10-21 08:45:59 +00:00
commit ee4ab96116

View file

@ -220,7 +220,7 @@ public final class ThreadNetworkControllerWrapper {
public void setNat64EnabledAndWait(boolean enabled) throws Exception {
final ThreadConfiguration config = getConfiguration();
final ThreadConfiguration newConfig =
new ThreadConfiguration.Builder().setNat64Enabled(enabled).build();
new ThreadConfiguration.Builder(config).setNat64Enabled(enabled).build();
setConfigurationAndWait(newConfig);
}