From e030f78aef9d309790bcc0873c8e4432a7fa6b2f Mon Sep 17 00:00:00 2001 From: Agrawal Ashish Date: Fri, 27 Jan 2017 17:52:05 +0530 Subject: [PATCH] qcacld-3.0: Add INI template for P2P feature Add INI template for P2P feature for documentation. Change-Id: I7d9fcb2272e0d105fd81bbeea9e387ce40ffa5b5 CRs-Fixed: 1116847 --- core/hdd/inc/wlan_hdd_cfg.h | 116 ++++++++++++++++++++++++++++++++++-- 1 file changed, 111 insertions(+), 5 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h index d6e2b864a830..68ebd4504b5e 100644 --- a/core/hdd/inc/wlan_hdd_cfg.h +++ b/core/hdd/inc/wlan_hdd_cfg.h @@ -4979,6 +4979,24 @@ enum hdd_link_speed_rpt_type { #define CFG_LINK_SPEED_RSSI_LOW_MAX (0) #define CFG_LINK_SPEED_RSSI_LOW_DEFAULT (-80) +/* + * + * isP2pDeviceAddrAdministrated - Enables to derive the P2P MAC address from + * the primary MAC address + * @Min: 0 + * @Max: 1 + * @Default: 1 + * + * This ini is used to enable/disable to derive the P2P MAC address from the + * primary MAC address. + * + * Supported Feature: P2P + * + * Usage: Internal/External + * + * + */ + #define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_NAME "isP2pDeviceAddrAdministrated" #define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_MIN (0) #define CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED_MAX (1) @@ -5333,13 +5351,27 @@ enum hdd_link_speed_rpt_type { #define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_MIN (0) #define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_MAX (1) #define CFG_ENABLE_SKIP_DFS_IN_P2P_SEARCH_DEFAULT (1) - /* - * Ignore Dynamic Dtim in case of P2P - * Options + * + * gIgnoreDynamicDtimInP2pMode - Ignore Dynamic Dtim in case of P2P + * Options. + * @Min: 0 + * @Max: 1 + * @Default: 0 + * + * This ini is used to decide if Dynamic Dtim needs to be consider or + * not in case of P2P. * 0 - Consider Dynamic Dtim incase of P2P * 1 - Ignore Dynamic Dtim incase of P2P + * + * Supported Feature: P2P + * + * + * Usage: Internal/External + * + * */ + #define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_NAME "gIgnoreDynamicDtimInP2pMode" #define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_MIN (0) #define CFG_IGNORE_DYNAMIC_DTIM_IN_P2P_MODE_MAX (1) @@ -6565,9 +6597,20 @@ enum hdd_link_speed_rpt_type { #define CFG_ENABLE_VHT_FOR_24GHZ_DEFAULT (0) /* - * Parameter to control VHT support based on vendor ie in 2.4 GHz band + * gEnableVendorVhtFor24GHzBand:Parameter to control VHT support + * based on vendor ie in 2.4 GHz band + * @Min: 0 + * @Max: 1 + * @Default: 1 + * * This parameter will enable SAP to read VHT capability in vendor ie in Assoc * Req and send VHT caps in Resp to establish connection in VHT Mode. + * Supported Feature: SAP + * + * + * Usage: Internal/External + * + * */ #define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_NAME "gEnableVendorVhtFor24GHzBand" #define CFG_ENABLE_VENDOR_VHT_FOR_24GHZ_MIN (0) @@ -7812,6 +7855,27 @@ enum hdd_link_speed_rpt_type { #define CFG_ENABLE_MAC_ADDR_SPOOFING_MAX (1) #define CFG_ENABLE_MAC_ADDR_SPOOFING_DEFAULT (1) +/* + * + * gP2PListenDeferInterval - Defer Remain on channel for some duration + * @Min: 100 + * @Max: 200 + * @Default: 100 + * + * This ini is used to defer back to back RoC request when sta is + * connected. + * If back to back listen received when sta is connected then fw is + * not getting enough time to spend on home channel so it leading to + * heartbeat failure. + * + * Supported Feature: P2P + * + * + * Usage: Internal/External + * + * + */ + #define CFG_P2P_LISTEN_DEFER_INTERVAL_NAME "gP2PListenDeferInterval" #define CFG_P2P_LISTEN_DEFER_INTERVAL_MIN (100) #define CFG_P2P_LISTEN_DEFER_INTERVAL_MAX (200) @@ -7864,6 +7928,32 @@ enum hdd_link_speed_rpt_type { #define CFG_SAP_MCC_CHANNEL_AVOIDANCE_DEFAULT (0) #endif /* FEATURE_AP_MCC_CH_AVOIDANCE */ +/* + * + * gAP11ACOverride - Override 11AC in driver even if supplicant or hostapd + * configures HT. + * @Min: 0 + * @Max: 1 + * @Default: 1 + * + * This ini is used to enable/disable 11AC override. + * 1. P2P GO or SAP also follows start_bss and since p2p GO or SAP + * could not be configured to setup VHT channel width in + * wpa_supplicant, driver can override 11AC. + * 2. Android UI does not provide advanced configuration options + * for SoftAP + * Default override enabled for android. MDM shall + * disable it in ini + * + * + * Supported Feature: SAP + * + * + * Usage: Internal/External + * + * + */ + #define CFG_SAP_P2P_11AC_OVERRIDE_NAME "gAP11ACOverride" #define CFG_SAP_P2P_11AC_OVERRIDE_MIN (0) #define CFG_SAP_P2P_11AC_OVERRIDE_MAX (1) @@ -8192,10 +8282,26 @@ enum dot11p_mode { #define CFG_DOT11P_MODE_MIN (WLAN_HDD_11P_DISABLED) #define CFG_DOT11P_MODE_MAX (WLAN_HDD_11P_CONCURRENT) -/* When gEnable_go_cts2self_for_sta is +/* + * + * gEnable_go_cts2self_for_sta - Indicate firmware to stop NOA and + * start using cts2self + * @Min: 1 + * @Max: 1 + * @Default: 0 + * + * When gEnable_go_cts2self_for_sta is * enabled then if a legacy client connects to P2P GO, * Host will send a WMI VDEV command to FW to stop using NOA for P2P GO * and start using CTS2SELF. + * + * + * Supported Feature: P2P + * + * + * Usage: Internal/External + * + * */ #define CFG_ENABLE_GO_CTS2SELF_FOR_STA "gEnable_go_cts2self_for_sta" #define CFG_ENABLE_GO_CTS2SELF_FOR_STA_DEFAULT (0)