1 /* 2 * Copyright (c) 2021 Bestechnic (Shanghai) Co., Ltd. All rights reserved. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef WIFI_DEF_H 16 #define WIFI_DEF_H 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 #include "plat_addr_map.h" 22 #include CHIP_SPECIFIC_HDR(wifi_def) 23 24 /******** enum ***********************/ 25 enum ENUM_WIFI_RUN_MODE{ 26 WIFI_RUN_NORMAL_MODE = 0, //signaling 27 WIFI_RUN_TEST_MODE = 1, //nonsignaling 28 WIFI_RUN_RESET_MODE = 2, //wifi reset 29 WIFI_RUN_MODE_MAX, 30 }; 31 32 enum ENUM_WIFI_BAND{ 33 BAND_2G4 = 0, 34 BAND_5G, 35 DUAL_BAND 36 }; 37 38 enum ENUM_WIFI_BAND_WIDTH{ 39 BAND_WIDTH_20M = 0, 40 BAND_WIDTH_40M, 41 BAND_WIDTH_MAX 42 }; 43 44 #ifndef ETH_ALEN 45 #define ETH_ALEN 6 46 #endif 47 48 #ifndef DPD_CALI_BY_CHANNEL 49 #define DPD_CALI_BY_CHANNEL 1 //wifi dpd cali by channel (signal mode) 50 #endif 51 52 #ifndef SUP_WIDTH_20_40 53 #define SUP_WIDTH_20_40 1 //HT20/40 support 54 #endif 55 56 //fem select 57 #ifndef WIFI_OUT_FEM 58 #define WIFI_OUT_FEM 0 //0: default; 1: outside fem, dpd no table calibration 59 #endif 60 61 #ifdef __cplusplus 62 } 63 #endif 64 65 #endif /* WIFI_DEF_H */ 66