wifi: check the candidate security params in the network comparison am: 01df633533

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Wifi/+/15475652

Change-Id: Ie548a327b0f26d3fa3fe4dd3e45b1d358ae546a4