according to this document:
it needs to do “wifi client setsecurityproto”.
Have you tried this command first and see if it can connect wifi client?
If it needs this command, I believe you also need to set
config set dataConnectionService:/wifi/secProtocol 3
For the definition of enum, you can see here: