Other Parts Discussed in Thread: CC3135, , UNIFLASH, CC31XXEMUBOOST
When I make a call to sl_WlanSet() to set the device type (for a P2P connection), the call succeeds, but after a restart (sl_Stop(), sl_Start()), the device returns a -4115 error.
At this point, I have to reset the device to factory configurations.
BTW, This is my chip firmware info:
Chip ID = 31100000
FW ver = 3.1.0.5
NWP ver = 4.1.0.1B
PHY ver = 3.1.0.11
ROM ver = 2222
Here is the code I'm calling:
// setup the CC3135 as a P2P group owner
void P2P_setup_as_GO(void)
{
unsigned char ucP2PParam[4];
char devtype[16];
u8_t policy;
i32_t err;
policy = SL_WLAN_P2P_POLICY(SL_WLAN_P2P_ROLE_GROUP_OWNER,SL_WLAN_P2P_NEG_INITIATOR_RAND_BACKOFF);
err = sl_WlanPolicySet(SL_WLAN_POLICY_P2P,policy,NULL,0);
assert(err==0);
// Set P2P device type
sprintf(devtype,"BLKBOX");
err = sl_WlanSet(SL_WLAN_CFG_P2P_PARAM_ID, SL_WLAN_P2P_OPT_DEV_TYPE, strlen(devtype), &devtype);
assert(err==0);
}
What am I doing wrong?
Thanks!