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: selecting 5GHz channels only

Part Number: CC3235SF

Hello,

I want to configure CC3235SF to 5GHz channels, from the programmers guide I only see enable or disable 5GHz channels.

_u8 Mode = 0; //0 disable 5GHz mode
Status = sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, WLAN_GENERAL_PARAM_OPT_ENABLE_5G, 1, (_u8
*)&Mode);

1. I want to know is it possible to choose only 5GHz without turning on 2.4GHz?

2. How do I configure specific channels to scan for example 38, 46, 54, I can do something like this to scan 1,6 and 11 channels in 2.4GHz from below code snippet, I want to know how to configure selected channels in 5GHz

ScanParamConfig.ChannelsMask = 0x421; /* channels 1,6,11 */

Status = sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, SL_WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS,
sizeof(ScanParamConfig), (_u8* )& ScanParamConfig);

Thank you,

Kris.

  • You can't disable 2.4 (with a command) but you can configure the channels to scan, then get the scan results, and connect (wlanConnect) to 5G network based on BSSID (i believe that you can also disable all the 2.4 channels in the OPT_SCAN_PARAMS and it will have the same effect). 

    For selecting the 5G channels for the scan:

    - SL_WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS_5G:
    \code
    SlWlanScanParam5GCommand_t ScanParamConfig5G;
    _u16 Option = SL_WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS_5G;
    _u16 OptionLen = sizeof(SlWlanScanParam5GCommand_t);
    // 5.0G channels bits order: 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132,
    // 136, 140, 144, 149, 153, 157, 161, 165, 169, 184, 188, 192, 196

    ScanParamConfig5G.ChannelsMask = 0x0000000F; // Select ChannelsMask for channels 36, 40, 44, 48
    ScanParamConfig5G.RssiThershold = -70;
    sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, &Option, &OptionLen, (_u8 *)&ScanParamConfig5G);
    \endcode

    BR,

    Kobi