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