When trying to read the configuration of a connected wifi network, the value for WifiConfiguration.KeyMgmt obtained is always KeyMgmt: WPA_PSK, although the access point(router) supports WPA2_PSK protocol.
Sample output :
ID: 1 SSID: "password" PROVIDER-NAME: null BSSID: null FQDN: null PRIO: 0 HIDDEN: false
NetworkSelectionStatus NETWORK_SELECTION_ENABLED
hasEverConnected: true
numAssociation 6
validatedInternetAccess
KeyMgmt: WPA_PSK Protocols: WPA RSN
AuthAlgorithms: OPEN
PairwiseCiphers: TKIP CCMP
GroupCiphers: WEP40 WEP104 TKIP CCMP
PSK: *
Enterprise config:
IP config:
IP assignment: DHCP
Proxy settings: NONE
cuid=1000 cname=android.uid.system:1000 luid=1000 lname=android.uid.system:1000 lcuid=1000 userApproved=USER_UNSPECIFIED noInternetAccessExpected=false roamingFailureBlackListTimeMilli: 1000
readOnly: false
autoConnect: 1
simSlot: null isGbkEncoding: false