add WEP configuration. Choose WPA or WEP in code