/***************************************************************************/ /** * @file ******************************************************************************* * # License * Copyright 2024 Silicon Laboratories Inc. www.silabs.com ******************************************************************************* * * SPDX-License-Identifier: Zlib * * The licensor of this software is Silicon Laboratories Inc. * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. * ******************************************************************************/ #pragma once // Define default region-specific configurations for 2.4GHz and 5GHz bands const sl_si91x_set_region_ap_request_t default_US_region_2_4GHZ_configurations = { .set_region_code_from_user_cmd = SET_REGION_CODE_FROM_USER, .country_code = "US ", .no_of_rules = 1, .channel_info[0] = { .first_channel = 1, .no_of_channels = 11, .max_tx_power = 27 } }; const sl_si91x_set_region_ap_request_t default_US_region_5GHZ_configurations = { .set_region_code_from_user_cmd = SET_REGION_CODE_FROM_USER, .country_code = "US ", .no_of_rules = 5, .channel_info[0] = { .first_channel = 36, .no_of_channels = 4, .max_tx_power = 16 }, .channel_info[1] = { .first_channel = 52, .no_of_channels = 4, .max_tx_power = 23 }, .channel_info[2] = { .first_channel = 100, .no_of_channels = 5, .max_tx_power = 23 }, .channel_info[3] = { .first_channel = 132, .no_of_channels = 3, .max_tx_power = 23 }, .channel_info[4] = { .first_channel = 149, .no_of_channels = 5, .max_tx_power = 29 } }; // Define default configurations for the European region for 2.4GHz and 5GHz bands const sl_si91x_set_region_ap_request_t default_EU_region_2_4GHZ_configurations = { .set_region_code_from_user_cmd = SET_REGION_CODE_FROM_USER, .country_code = "EU ", .no_of_rules = 1, .channel_info[0] = { .first_channel = 1, .no_of_channels = 13, .max_tx_power = 20 } }; const sl_si91x_set_region_ap_request_t default_EU_region_5GHZ_configurations = { .set_region_code_from_user_cmd = SET_REGION_CODE_FROM_USER, .country_code = "EU ", .no_of_rules = 3, .channel_info[0] = { .first_channel = 36, .no_of_channels = 4, .max_tx_power = 23 }, .channel_info[1] = { .first_channel = 52, .no_of_channels = 4, .max_tx_power = 23 }, .channel_info[2] = { .first_channel = 100, .no_of_channels = 11, .max_tx_power = 30 } }; // Define default configurations for the Japanese region for 2.4GHz and 5GHz bands const sl_si91x_set_region_ap_request_t default_JP_region_2_4GHZ_configurations = { .set_region_code_from_user_cmd = SET_REGION_CODE_FROM_USER, .country_code = "JP ", .no_of_rules = 1, .channel_info[0] = { .first_channel = 1, .no_of_channels = 14, .max_tx_power = 20 } }; const sl_si91x_set_region_ap_request_t default_JP_region_5GHZ_configurations = { .set_region_code_from_user_cmd = SET_REGION_CODE_FROM_USER, .country_code = "JP ", .no_of_rules = 3, .channel_info[0] = { .first_channel = 36, .no_of_channels = 4, .max_tx_power = 20 }, .channel_info[1] = { .first_channel = 52, .no_of_channels = 4, .max_tx_power = 20 }, .channel_info[2] = { .first_channel = 100, .no_of_channels = 11, .max_tx_power = 30 } }; // Define default configurations for the Korean region for 2.4GHz and 5GHz bands const sl_si91x_set_region_ap_request_t default_KR_region_2_4GHZ_configurations = { .set_region_code_from_user_cmd = SET_REGION_CODE_FROM_USER, .country_code = "KR ", .no_of_rules = 1, .channel_info[0] = { .first_channel = 1, .no_of_channels = 13, .max_tx_power = 23 } }; const sl_si91x_set_region_ap_request_t default_KR_region_5GHZ_configurations = { .set_region_code_from_user_cmd = SET_REGION_CODE_FROM_USER, .country_code = "KR ", .no_of_rules = 4, .channel_info[0] = { .first_channel = 36, .no_of_channels = 4, .max_tx_power = 23 }, .channel_info[1] = { .first_channel = 52, .no_of_channels = 4, .max_tx_power = 20 }, .channel_info[2] = { .first_channel = 100, .no_of_channels = 11, .max_tx_power = 20 }, .channel_info[3] = { .first_channel = 149, .no_of_channels = 5, .max_tx_power = 23 } }; // Define default configurations for the Singapore region for 2.4GHz and 5GHz bands const sl_si91x_set_region_ap_request_t default_SG_region_2_4GHZ_configurations = { .set_region_code_from_user_cmd = SET_REGION_CODE_FROM_USER, .country_code = "SG ", .no_of_rules = 1, .channel_info[0] = { .first_channel = 1, .no_of_channels = 13, .max_tx_power = 27 } }; const sl_si91x_set_region_ap_request_t default_SG_region_5GHZ_configurations = { .set_region_code_from_user_cmd = SET_REGION_CODE_FROM_USER, .country_code = "SG ", .no_of_rules = 5, .channel_info[0] = { .first_channel = 36, .no_of_channels = 4, .max_tx_power = 16 }, .channel_info[1] = { .first_channel = 52, .no_of_channels = 4, .max_tx_power = 23 }, .channel_info[2] = { .first_channel = 100, .no_of_channels = 5, .max_tx_power = 23 }, .channel_info[3] = { .first_channel = 132, .no_of_channels = 3, .max_tx_power = 23 }, .channel_info[4] = { .first_channel = 149, .no_of_channels = 4, .max_tx_power = 29 } }; // Define default configurations for the China region for 2.4GHz and 5GHz bands const sl_si91x_set_region_ap_request_t default_CN_region_2_4GHZ_configurations = { .set_region_code_from_user_cmd = SET_REGION_CODE_FROM_USER, .country_code = "CN ", .no_of_rules = 1, .channel_info[0] = { .first_channel = 1, .no_of_channels = 13, .max_tx_power = 20 } }; const sl_si91x_set_region_ap_request_t default_CN_region_5GHZ_configurations = { .set_region_code_from_user_cmd = SET_REGION_CODE_FROM_USER, .country_code = "CN ", .no_of_rules = 2, .channel_info[0] = { .first_channel = 36, .no_of_channels = 9, .max_tx_power = 20 }, .channel_info[4] = { .first_channel = 149, .no_of_channels = 5, .max_tx_power = 33 } }; #if defined(__GNUC__) // Restore GCC diagnostics #pragma GCC diagnostic pop #endif