I read network programmer's guide and see the procedure of starting an AP by sl_WlanSetMode(ROLE_AP), sl_WlanSet().
In sl_WlanSet(), I can customize any name as I want such as: unsigned char Ssid[] = "demoAP"
But whenever I power on CC3235, it always start with another SSID name (mysimplelink-118A20). As I know, 118A20 is a part of MAC address of the device.
Here's my code to start AP mode. Please tell me why it doesn't change SSID as I want and how to make it work as expected.
void WlanAP(void) { //int32_t ret = 0; _i16 Role; _i16 Status; _u8 Ssid[] = "demoAP"; Status = sl_WlanSetMode(ROLE_AP); sl_Stop(0); Role = sl_Start(NULL,NULL,NULL); if (ROLE_AP != Role) { /* Role Error */ sl_WlanSetMode(ROLE_AP); /* Set device role as AP */ //ASSERT_AND_CLEAN_STARTAP(ret, WLAN_ERROR, &StartApParams); } sl_WlanSet(SL_WLAN_CFG_AP_ID, SL_WLAN_AP_OPT_SSID, strlen((const char *)Ssid), (unsigned char*)Ssid); if(Role != ROLE_AP) { if(IS_CONNECTED(Status)) { sl_WlanDisconnect(); } } //return(ret); }