WifiConfigManagerNew: Create copy of internal config for update

Create copy of the internal config when updating networks. This will
ensure that the network updates are atomic (i.e any errors
in |installKeys|, etc after the merge will not modify the
original configuation).

While there,
Make clones of all externally provided config when merging them over.

BUG: 30156343
Change-Id: I543ee5ba14e2451ef77d7d511465cd8c62585491
TEST: Unit tests.
2 files changed
tree: 1efb5e3876580d6fbafe02590df0639f44d32124
  1. libwifi_hal/
  2. libwifi_system/
  3. service/
  4. tests/