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.

CC3235SF: How to modify the frequency band to 5G?

Part Number: CC3235SF

Hi team,

Here's the request from the customer:

As the title says, customer wants to modify the frequency band to 5G. The example is Out of Box. He didn't find where to modify the source code.

He would like to ask how to change the AP mode switched by SW2 to 5G frequency band based on the example is Out of Box.?

Could you help check this case? Thanks.

Best Regards,                                                       

Nick    

  • It can be done by adding the AP channel configuration (it will require an NWP reset to activate the new configuration):

            _u8  val = channel; /* 2.4G: 1-13, 5G: 36,40,44,48 */
            sl_WlanSet(SL_WLAN_CFG_AP_ID, SL_WLAN_AP_OPT_CHANNEL, 1, (_u8 *)&val);

    It can be done for example in ConfigureSimpleLinkToDefaultState() in "provisioning_task.c".

  • Hi Kobl,

    There are some further questions from customer:

    1. Why doesn't it work for configuring the SL_WLAN_GENERAL_PARAM_OPT_ENABLE_5G and SL_WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS_5G?
    2. If I use 5G in AP mode, can custoemr just configure SL_WLAN_AP_OPT_CHANNEL to the 5G frequency band?
  • 1. SL_WLAN_GENERAL_PARAM_OPT_ENABLE_5G - this is the general 5G enabling parameter. It is ON by default. the 5G channels will not be allowed if this parameters will be off. 

    SL_WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS_5G is for station - deciding which channels to use when scanning. It is not relevant for AP where you only select the operational channel.

    2. I'm not sure i understand the the question. SL_WLAN_AP_OPT_CHANNEL is for setting the operational channel for AP mode ?(it can be used to select a channel on 2.4.or 5G -see the definition in my previous response) .