Connect to an SSID/AP(security) with a certain number of connection attempts.