1 /* 2 * Copyright (c) 2021 Chipsea Technologies (Shenzhen) Corp., 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 _RWNX_CONFIG_H_ 16 #define _RWNX_CONFIG_H_ 17 18 #define CONFIG_SLEEP_LEVEL 0 19 20 #define NX_DEBUG 0 21 22 /* 23 * if NX_CSI is set to 1, then MUST not use DRAM '0x1A0000 ~ 0x1BFFFF' & set PING=on 24 */ 25 #define NX_CSI 0 26 27 #ifdef CFG_APP_TLS_EXAMPLE 28 #define NX_TLS 1 29 #else /* CFG_APP_TLS_EXAMPLE */ 30 #define NX_TLS 0 31 #endif /* CFG_APP_TLS_EXAMPLE */ 32 #define NX_CRYPTOLIB 1 33 34 #ifdef CFG_SOFTAP 35 #define NX_BEACONING 1 36 #else /* CFG_SOFTAP */ 37 #define NX_BEACONING 0 38 #endif /* CFG_SOFTAP */ 39 40 #ifdef CFG_WPS 41 #define NX_WPS 1 42 #else /* CFG_WPS */ 43 #define NX_WPS 0 44 #endif /* CFG_WPS */ 45 46 /// Maximum size of a beacon frame 47 #define NX_BCNFRAME_LEN 512 48 /** @} Beacon */ 49 50 #define NX_TXQ_CNT 5 51 52 #define NX_REORD 5 53 #define NX_AMPDU_TX 1 54 55 #define RX_MAX_AMSDU_SUBFRAME_LEN 1600 56 57 #ifdef CFG_HS_IPERF 58 #define NX_REORD_BUF_SIZE 32 59 #define NX_TXDESC_CNT0 8 60 #define NX_TXDESC_CNT1 32 61 #define NX_TXDESC_CNT2 32 62 #define NX_TXDESC_CNT3 16 63 #define NX_TXDESC_CNT4 0 64 #else 65 #define NX_REORD_BUF_SIZE 8 66 #define NX_TXDESC_CNT0 8 67 #define NX_TXDESC_CNT1 16 68 #define NX_TXDESC_CNT2 16 69 #define NX_TXDESC_CNT3 16 70 #define NX_TXDESC_CNT4 0 71 #endif 72 73 #define RW_USER_MAX 1 74 75 #define NX_VIRT_DEV_MAX 4 76 #define NX_REMOTE_STA_MAX 10 77 #define INVALID_STA_IDX 0xFF 78 79 80 81 /// uPattern for TX header descriptor. 82 #define TX_HEADER_DESC_PATTERN 0xCAFEBABE 83 /// uPattern for TX buffer descriptor 84 #define TX_PAYLOAD_DESC_PATTERN 0xCAFEFADE 85 /// uPattern for RX header descriptor. 86 #define RX_HEADER_DESC_PATTERN 0xBAADF00D 87 /// uPattern for RX payload descriptor. 88 #define RX_PAYLOAD_DESC_PATTERN 0xC0DEDBAD 89 90 91 92 #define NX_AMSDU_DEAGG 0 93 94 #define NX_VHT 1 95 //#define USE_CX_DMA 96 97 #define NX_SMARTCONFIG 1 98 #define NX_FHOST_MONITOR 1 99 100 #define NX_UF_EN 1 101 102 ////////////////////////////NO warning ///////////////////////////// 103 #define NX_SYS_STAT 0 104 105 #define NX_BCN_AUTONOMOUS_TX 0 106 #define NX_TG 0 107 #define NX_FULLY_HOSTED 0 108 #define NX_HE 1 109 110 #define NX_MULTI_ROLE 0 111 112 #define NX_P2P 0 113 #define NX_CHNL_CTXT 0 114 #define NX_TDLS 0 115 #define NX_POWERSAVE 0 116 #define NX_UAPSD 0 117 #define NX_CONNECTION_MONITOR 0 118 #define NX_UMAC_PRESENT 0 119 #define NX_TD_STA 0 120 #define NX_MAC_HE 0 121 #define RW_UMESH_EN 0 122 123 #define NX_TX_FRAME 0 124 #define RW_MESH_EN 0 125 #define NX_P2P_GO 0 126 127 #define NX_AMSDU_TX 0 128 // Force MFP support if HE is enabled, as it is mandatory for WiFi certification 129 #if NX_HE 130 #define NX_MFP 1 131 #else 132 #define NX_MFP 0 133 #endif 134 #define RW_MUMIMO_TX_EN 0 135 #define NX_BW_LEN_ADAPT 0 136 #define RW_MESH_EN 0 137 #define RW_BFMER_EN 0 138 #define NX_11AX_DRAFT_2_0 0 139 140 /** 141 ******************************************************************************* 142 * @name Radar Configuration 143 ******************************************************************************* 144 */ 145 #define NX_RADAR_DETECT 0 146 #define RW_RADAR_EN 0 147 /** @} Radar */ 148 149 /** 150 ******************************************************************************* 151 * @name Misc 152 ******************************************************************************* 153 */ 154 /// Implement IEEE802.11ax-D2.0 (instead of D3.2) 155 //#define NX_11AX_DRAFT_2_0 0 156 157 /// This macro appears in some generated header files, define it to avoid warning 158 //#define RW_NX_LDPC_DEC 1 159 160 /// This macro appears in some generated header files, define it to avoid warning 161 #define RW_NX_AGC_SNR_EN 1 162 163 /// This macro appears in some generated header files, define it to avoid warning 164 #define RW_NX_IQ_COMP_EN 1 165 166 /// This macro appears in some generated header files, define it to avoid warning 167 #define RW_NX_FIQ_COMP_EN 1 168 169 /// This macro appears in some generated header files, define it to avoid warning 170 #define RW_NX_DERIV_80211B 1 171 172 /// This macro appears in some generated header files, define it to avoid warning 173 //#define RW_KEY_EXTENDED 1 174 /// @} misc 175 176 #endif //_RWNX_CONFIG_H_ 177