Hi @bshannon ,
Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.
In fact, the SDK code already contains both the 5G and 2.4G code.
You can find the related comment:
/**
* Configure ED MAC mode in Wireless Firmware.
*
* \note When ed mac mode is enabled,
* Wireless Firmware will behave following way:
*
* when background noise had reached -70dB or above,
* WiFi chipset/module should hold data transmitting
* until condition is removed.
* It is applicable for both 5GHz and 2.4GHz bands.
*
* \param[in] wlan_ed_mac_ctrl Struct with following parameters
* ed_ctrl_2g 0 - disable EU adaptivity for 2.4GHz band
* 1 - enable EU adaptivity for 2.4GHz band
*
* ed_offset_2g 0 - Default Energy Detect threshold (Default: 0x9)
* offset value range: 0x80 to 0x7F
*
* \note If 5GH enabled then add following parameters
*
* ed_ctrl_5g 0 - disable EU adaptivity for 5GHz band
* 1 - enable EU adaptivity for 5GHz band
*
* ed_offset_5g 0 - Default Energy Detect threshold(Default: 0xC)
* offset value range: 0x80 to 0x7F
*
* \return WM_SUCCESS if the call was successful.
* \return -WM_FAIL if failed.
*
*/
int wlan_set_ed_mac_mode(wlan_ed_mac_ctrl_t wlan_ed_mac_ctrl);
#define WLAN_ED_MAC_CTRL \
{ \
.ed_ctrl_2g = 0x1, .ed_offset_2g = 0x9, .ed_ctrl_5g = 0x1, .ed_offset_5g = 0xC \
}
wlan_ed_mac_ctrl_t wlan_ed_mac_ctrl = WLAN_ED_MAC_CTRL;
wlan_set_ed_mac_mode(wlan_ed_mac_ctrl);
Then, it is how to enable the 5G.
Please check the app_config.h, you can find the WIFI_88W8987_BOARD_AW_CM358_USD is also the 8987 chip.

#elif defined(WIFI_88W8987_BOARD_AW_CM358_USD)
#define WIFI_BT_TX_PWR_LIMITS "wlan_txpwrlimit_cfg_WW.h"
#define SD8987
#define SDMMCHOST_OPERATION_VOLTAGE_1V8
#define SD_TIMING_MAX kSD_TimingDDR50Mode
#define WIFI_BT_USE_USD_INTERFACE
#define WLAN_ED_MAC_CTRL \
{ \
.ed_ctrl_2g = 0x1, .ed_offset_2g = 0x9, .ed_ctrl_5g = 0x1, .ed_offset_5g = 0xC \
}
Then in the wifi_config.h, you can find :
#define CONFIG_5GHz_SUPPORT 1
wlan_txpwrlimit_cfg_WW.h, you can find the 5g cfg code:
#ifdef CONFIG_5GHz_SUPPORT
static wlan_chanlist_t chanlist_5g_cfg = {
.num_chans = 8,
.chan_info[0] =
{
.chan_num = 36,
.chan_freq = 5180,
.passive_scan_or_radar_detect = false,
},
.chan_info[1] =
{
.chan_num = 40,
.chan_freq = 5200,
.passive_scan_or_radar_detect = false,
},
.chan_info[2] =
{
.chan_num = 44,
.chan_freq = 5220,
.passive_scan_or_radar_detect = false,
},
.chan_info[3] =
{
.chan_num = 48,
.chan_freq = 5240,
.passive_scan_or_radar_detect = false,
},
.chan_info[4] =
{
.chan_num = 52,
.chan_freq = 5260,
.passive_scan_or_radar_detect = true,
},
.chan_info[5] =
{
.chan_num = 56,
.chan_freq = 5280,
.passive_scan_or_radar_detect = true,
},
.chan_info[6] =
{
.chan_num = 100,
.chan_freq = 5500,
.passive_scan_or_radar_detect = true,
},
.chan_info[7] =
{
.chan_num = 144,
.chan_freq = 5720,
.passive_scan_or_radar_detect = true,
},
};
#endif
So, my understanding is, if you enable the 5G symbol:
#define CONFIG_5GHz_SUPPORT 1
Then, you will can make the 5G works, as 8987 can support both 2.4G and 5G.
You need to include the related header file.
Wish it helps you!
Best Regards,
Kerry