This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3135MOD: Cannot connect in AP mode

Part Number: CC3135MOD
Other Parts Discussed in Thread: CC3135, UNIFLASH

After putting the device in AP mode and when I try to connect with it, it is not connecting, from the client side(ubuntu machine), the output is as follows:

[  301.180717] wlp1s0: authenticate with 4c:24:98:d3:40:5b
[  301.195695] wlp1s0: send auth to 4c:24:98:d3:40:5b (try 1/3)
[  301.202343] wlp1s0: authenticated
[  301.202584] iwlwifi 0000:01:00.0 wlp1s0: disabling HT as WMM/QoS is not supported by the AP
[  301.202586] iwlwifi 0000:01:00.0 wlp1s0: disabling VHT as WMM/QoS is not supported by the AP
[  301.206052] wlp1s0: associate with 4c:24:98:d3:40:5b (try 1/3)
[  301.208535] wlp1s0: RX AssocResp from 4c:24:98:d3:40:5b (capab=0x431 status=0 aid=1)
[  301.211260] wlp1s0: associated
[  301.299138] IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready
[ 1267.296106] wlp1s0: deauthenticating from 4c:24:98:d3:40:5b by local choice (Reason: 3=DEAUTH_LEAVING)

Tried with mobile also, it is struck in getting ip address for some time and disconnects:

The code for configuring the device in AP mode is as follows:

slStartRetVal = sl_Start(0, 0, 0);
if (slStartRetVal != static_cast<_u8>(ROLE_AP))
{
int16_t Status = sl_WlanSetMode(ROLE_AP);
slStartRetVal = sl_Start(0, 0, 0);
}

retVal = sl_WlanSet(SL_WLAN_CFG_AP_ID, SL_WLAN_AP_OPT_SSID,
strlen(Ssid), (const _u8 *)Ssid);

retVal = sl_WlanSet(SL_WLAN_CFG_AP_ID,
SL_WLAN_AP_OPT_SECURITY_TYPE, 1, (const _u8 *)&val);

retVal = sl_WlanSet(SL_WLAN_CFG_AP_ID, SL_WLAN_AP_OPT_CHANNEL, 1,
(_u8 *)&channel);

retVal = sl_WlanSet(SL_WLAN_CFG_AP_ID, SL_WLAN_AP_OPT_PASSWORD,
strlen(password), (const _u8 *)password);


/* Check if sl_Start is already started or no error*/

if ((slStartRetVal >= 0) || (slStartRetVal == SL_RET_CODE_DEV_ALREADY_STARTED))
{
retVal = sl_Stop(SL_STOP_TIMEOUT);
slStartRetVal = sl_Start(0, 0, 0);
}