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.

CCS/CC3200: WLANAP Mode unable to set password

Part Number: CC3200


Tool/software: Code Composer Studio

Hi, I looked through the forums and found a solution that says to edit common.h file. I tried doing that but it didnt work as well.

Here's what I did in the ConfigureMode() function of the WlanAp sdk example.

    char    pcSsidName[33] = "CC3200 Access Point";
    char    password[33] = "raspberry";
    long    lRetVal = -1;

    UART_PRINT("AP SSID name: %s\n\r", pcSsidName);

    lRetVal = sl_WlanSetMode(ROLE_AP);
    ASSERT_ON_ERROR(lRetVal);

    lRetVal = sl_WlanSet(SL_WLAN_CFG_AP_ID,  SL_SEC_TYPE_WPA_WPA2, NULL, 0);

    lRetVal = sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_SSID, strlen(pcSsidName),
                            (unsigned char*)pcSsidName);

    lRetVal = sl_WlanSet(SL_WLAN_CFG_AP_ID, WLAN_AP_OPT_PASSWORD, strlen(password),
                            (unsigned char*)password);

    ASSERT_ON_ERROR(lRetVal);