wlan.wpa.wpa_version
wlan.wpa.wpa_version

wlan.wpa.wpa_version

Returns the currently active WPA version.

Getvar

To return the currently active WPA version:
! U1 getvar "wlan.wpa.wpa_version"
Values
"WPA"
indicates WPA being used.
"WPA2"
indicates WPA2 being used.
""
reported if wireless LAN is not connected or WPA is not enabled.