wifi: handle updating a config via network id directly

When updating a config via network id directly, it might be
incompatible with the existing config. In this case, security
params list should be replaced.

Bug: 178648789
Test: atest FrameworksWifiTests
Change-Id: I3c02a331856c5f4d5d4cc470ba0bd86b4c0c39bc
2 files changed