Use of macro #define MY_DEFAULT_CHANNEL_LIST

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
Use of macro #define MY_DEFAULT_CHANNEL_LIST

Macro #define MY_DEFAULT_CHANNEL_LIST 

Scanning operation is tied to channel lists (for example, channel 1 to 11 for FCC regional domain). 

For example, you can specify

  • Scanning to be performed in selected channels such as channel 1, 3 and 5.

#define MY_DEFAULT_CHANNEL_LIST {1, 3, 5}

  • Scanning to be performed in all channels.

#define MY_DEFAULT_CHANNEL_LIST {} 

 

An exception to the use of MY_DEFAULT_CHANNEL_LIST is when MRF24W network type is CFG_WF_SOFT_AP. 

MY_DEFAULT_CHANNEL_LIST will instead indicate the channel the MRF24W softAP will reside in. 

For example, MRF24W softAP will reside in social channel 6. 

#define MY_DEFAULT_CHANNEL_LIST {6} 

 

To cater for MRF24W softAP network type, 2 more macros are defined

  • #define MY_DEFAULT_CHANNEL_LIST_PRESCAN

Before MRF24W starts up as softAP, MRF24W will first perform a scanning operation. And MY_DEFAULT_CHANNEL_LIST_PRESCAN will indicate the channel list to be scanned before starting up as softAP.

  • #define MY_DEFAULT_CHANNEL_LIST_POSTSCAN

When MRF24W softAP is redirected to an infrastructure or any non-softAP network types, MY_DEFAULT_CHANNEL_LIST_POSTSCAN is used to indicate the channel list to be scanned in these non-softAP network types.

Module
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.