hotspot2: use updated PasspointConfiguration APIs

PasspointConfiguration APIs are updated to use private variables
with public accessor methods based on the API guideline.  So update
the callsite to use accessor methods instead of using the variables
directly.

While there, refactor the test a bit to reduce code duplications.

Bug: 34627062
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I96ce7c3bdb3b6a6dce1715f29e5e1e019dbeeb5e
4 files changed
tree: c4fbcaefa013759d03b9201a3e14b7d28f37ca59
  1. libwifi_hal/
  2. libwifi_system/
  3. service/
  4. tests/
  5. PREUPLOAD.cfg