wifi: Catch exception when convert from WifiConfiguration

The valid check in SoftApConfiguration will throw IllegalArgumentException when
WifiCongfiguration is invalid. Catch exception in convert util function
to avoid break old API since previous invalid WifiConfiguration doesn't
throew the IllegalArgumentException. Keep previous design, let function
failure for invalid parametet.

Bug: 147818106
Test: atest frameworks/opt/net/wifi/tests/wifitests/
Change-Id: Ice68ba27b8973bde0e23815656e2227e709fde73
3 files changed
tree: 494db54d65edf6b2a2f2dc419d284f0b2e8b1e4c
  1. apex/
  2. service/
  3. PREUPLOAD.cfg