set mode and group on eap conf