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.

Compiler/CC3200: Set WiFi Country in Access Point mode

Part Number: CC3200

Tool/software: TI C/C++ Compiler

Hi,

I'm trying to set the Country Code when CC3200 switches to Access Point mode.

I use this code:

  /* Set AP Country */
  if( sl_WlanSet( SL_WLAN_CFG_GENERAL_PARAM_ID, WLAN_GENERAL_PARAM_OPT_COUNTRY_CODE, strlen(country), (unsigned char *)country ) != 0 )
  {
    UART_PRINT("\n\r Set AP Country FAILED");
    return opResult;
  }

I can only set the "US" country. For example if I try to set "IT" the function returns an error.

What I'm doing wrong?

Thanks