wifi: Support SAE_TRANSITION when converting to WifiConfiguration

In android R, framework use SoftApConfiguratio to replace
WifiConfiguration. The mapping function between WifiConfiguration and
SoftApConfiguration was desinged to return Null when the type doesn't
support in WifiConfiguration. Likes security type WPA3_SAE_TRANSITION.
But it causes the app crash because unexpected Null config.
Solution:
Add the mapping, SAE_TRANSITION to WPA2, when converting to avoid break
the legacy apps since WPA2 config also works normally when LOHS enabled on
WPA3_SAE_TRANSITION mode.

Bug: 163687359
Test: atest FrameworksWifiTests
Test: atest frameworks/base/wifi/tests/
Test: atest -c android.net.wifi.cts.WifiManagerTest#testStartLocalOnlyHotspotSingleRequestByApps
Change-Id: I6afba22e4081ba58884ffd1b560b81b1e9960132
Merged-In: I6afba22e4081ba58884ffd1b560b81b1e9960132
(cherry picked from commit 69ab0ce03dafffd9ac7a2c300c8cb517beefbdff)
2 files changed
tree: d7661f0f72244f31fb4653d11b947671fda42113
  1. framework/
  2. OsuLogin/
  3. OWNERS