The SL_WLAN_GENERAL_PARAM_OPT_ENABLE_5G parameter can be used to disable 5 GHz operation.
Is the a way to disable 2.4 GHz and only operate at 5 GHz mode in Station mode?
Thank you
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.
The SL_WLAN_GENERAL_PARAM_OPT_ENABLE_5G parameter can be used to disable 5 GHz operation.
Is the a way to disable 2.4 GHz and only operate at 5 GHz mode in Station mode?
Thank you
You can disable the scanning on all the channels of the 2.4G band with the SL_WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS.
SlWlanScanParamCommand_t ScanParamConfig; _u16 Option = SL_WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS; _u16 OptionLen = sizeof(ScanParamConfig); // 2.4G channels bits order: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ScanParamConfig.RssiThreshold = -70; ScanParamConfig.ChannelsMask = 0x0; sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, &Option, &OptionLen, (_u8 *)&ScanParamConfig);