1 /****************************************************************************** 2 * 3 * Copyright(c) 2020 Realtek Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 *****************************************************************************/ 15 #ifndef _PHL_COUNTRY_H_ 16 #define _PHL_COUNTRY_H_ 17 18 #define REGULATION_COUNTRY_VERSION 31 19 20 #define MAX_COUNTRY_NUM 238 21 enum TP_OVERWRITE { 22 TPO_CHILE = 0, 23 TPO_QATAR = 1, 24 TPO_UKRAINE = 2, 25 TPO_CN = 3, 26 TPO_NA = 4 27 }; 28 29 #define COUNTRY_CODE_LEN 2 30 struct country_domain_mapping { 31 u8 domain_code; 32 u8 domain_code_6g; 33 char char2[COUNTRY_CODE_LEN]; 34 u8 tpo; /* tx power overwrite */ 35 36 /* 37 * bit0: accept 11bgn 38 * bit1: accept 11a 39 * bit2: accept 11ac 40 * bit3: accept 11ax 41 */ 42 u8 support; 43 }; 44 45 46 #endif /* _PHL_COUNTRY_H_ */ 47