Hi;
I am trying to implement the correct error handling in my firmware for cases where the upstream application provides an incorrect passphrase for sl_WlanConnect. What I am seeing using both the CC3100Boost on Windows and on the target custom device is that the CC3100 returns SL_DEVICE_FATAL_ERROR_EVENT with sender SL_ERR_SENDER_WILINK and error code -109 (SL_ERROR_CON_MGMT_STATUS_DISCONNECT_DURING_CONNECT). I would have expected SL_ERROR_CON_MGMT_STATUS_AUTH_REJECT passed to SimpleLinkWlanEventHandler. Also, when I try to reset the device with an sl_Stop()/sl_Start() sequence using a 5s timeout for sl_Stop(), the call to sl_Stop() never returns. What is the correct procedure from recovering from SL_DEVICE_FATAL_ERROR_EVENT?