1 /* 2 * Copyright (c) 2011-2019 The Linux Foundation. All rights reserved. 3 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for 6 * any purpose with or without fee is hereby granted, provided that the 7 * above copyright notice and this permission notice appear in all 8 * copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 #ifndef __WNICFG_H 21 #define __WNICFG_H 22 23 /* 24 * String parameter lengths 25 */ 26 27 #define WNI_CFG_VALID_CHANNEL_LIST_LEN 100 28 #define WNI_CFG_COUNTRY_CODE_LEN 3 29 #define WNI_CFG_PROBE_RSP_ADDNIE_DATA1_LEN 255 30 #define WNI_CFG_ASSOC_RSP_ADDNIE_DATA_LEN 255 31 #define WNI_CFG_PROBE_RSP_BCN_ADDNIE_DATA_LEN 255 32 #define WNI_CFG_WPS_UUID_LEN 16 33 #define WNI_CFG_HE_PPET_LEN 25 34 35 /* 36 * Integer parameter min/max/default values 37 */ 38 #define WNI_CFG_PHY_MODE_11A 0 39 #define WNI_CFG_PHY_MODE_11B 1 40 #define WNI_CFG_PHY_MODE_11G 2 41 #define WNI_CFG_PHY_MODE_NONE 3 42 43 #define WNI_CFG_CURRENT_CHANNEL_STAMIN 0 44 #define WNI_CFG_CURRENT_CHANNEL_STAMAX 173 45 46 #define WNI_CFG_EDCA_PROFILE_ANI 0 47 #define WNI_CFG_EDCA_PROFILE_WMM 1 48 #define WNI_CFG_EDCA_PROFILE_ETSI_EUROPE 3 49 #define WNI_CFG_EDCA_PROFILE_MAX 4 50 51 #define WNI_CFG_ADMIT_POLICY_ADMIT_ALL 0 52 #define WNI_CFG_ADMIT_POLICY_REJECT_ALL 1 53 #define WNI_CFG_ADMIT_POLICY_BW_FACTOR 2 54 55 #define WNI_CFG_CHANNEL_BONDING_MODE_DISABLE 0 56 #define WNI_CFG_CHANNEL_BONDING_MODE_ENABLE 1 57 58 #define WNI_CFG_BLOCK_ACK_ENABLED_DELAYED 0 59 #define WNI_CFG_BLOCK_ACK_ENABLED_IMMEDIATE 1 60 61 #define WNI_CFG_HT_CAP_INFO_ADVANCE_CODING 0 62 #define WNI_CFG_HT_CAP_INFO_SHORT_GI_20MHZ 5 63 #define WNI_CFG_HT_CAP_INFO_SHORT_GI_40MHZ 6 64 #define WNI_CFG_HT_CAP_INFO_TX_STBC 7 65 #define WNI_CFG_HT_CAP_INFO_RX_STBC 8 66 67 #define WNI_CFG_GREENFIELD_CAPABILITY_DISABLE 0 68 69 /* 70 * WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED_FW_DEF + 1 is 71 * assumed to be the default fw supported BF antennas, if fw 72 * says it supports 8 antennas in rx ready event and if 73 * gTxBFCsnValue INI value is configured above 3, set 74 * the same to WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED. 75 * Otherwise, fall back and set fw default value[3]. 76 */ 77 78 #define WNI_CFG_WPS_ENABLE_AP 1 79 80 #define WNI_CFG_REMOVE_TIME_SYNC_CMD_STAMIN 0 81 #define WNI_CFG_REMOVE_TIME_SYNC_CMD_STAMAX 1 82 #define WNI_CFG_REMOVE_TIME_SYNC_CMD_STADEF 0 83 84 #define CFG_STA_MAGIC_DWORD 0xbeefbeef 85 86 #endif 87