SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
The following macro sets the P2P operation and listen channels. The listen channel is used for the discovery state and can be 1, 6, or 11. The device will be in this channel when waiting for P2P probe requests. The operation channel is used only by the GO. The GO will move to this channel after the negotiation phase.
Default: Random between channels 1,6, or 11
API:
sl_WlanSet(SL_WLAN_CFG_P2P_PARAM_ID, WLAN_P2P_OPT_CHANNEL_N_REGS, 4, channels);
Regulator domain class should be 81 in 2.4G.
For example:
unsigned char channels [4];
channels [0] = (unsigned char)11; // listen channel
channels [1] = (unsigned char)81; // listen regulatory class
channels [2] = (unsigned char)6; // oper channel
channels [3] = (unsigned char)81; // oper regulatory class
sl_WlanSet(SL_WLAN_CFG_P2P_PARAM_ID, WLAN_P2P_OPT_CHANNEL_N_REGS, 4, channels);