Hi,
Can anyone comment on my below query: -
Is this functions will return this errors and how I can replicate this to test? and please comment that I have handles this errors correctly?
SL_ERROR_ROLE_AP_ERR and SL_ERROR_ROLE_STA_ERR : -
a) status = sl_Start(NULL,NULL,NULL); // Start the device
if ((status == SL_ERROR_ROLE_AP_ERR) || (status == SL_ERROR_ROLE_STA_ERR))
{
scomData.wireless_reg.bit.wifi_error = WIFI_ERROR_MODE;
}
b) Status = sl_WlanSetMode(ROLE_AP); // Set the device mode
if (status == SL_ERROR_ROLE_AP_ERR)
{
scomData.wireless_reg.bit.wifi_error = WIFI_ERROR_MODE;
}
c) Status = sl_WlanSetMode(ROLE_STA); // Set the device mode
if (status == SL_ERROR_ROLE_STA_ERR)
{
scomData.wireless_reg.bit.wifi_error = WIFI_ERROR_MODE;
}