qcacld-3.0: Split SAP and GO modes ini
Rename existing INI to enable_bus_suspend_in_sap_mode and define a new enable_bus_suspend_in_go_mode. Also define new APIs wma_is_vdev_in_sap_mode and wma_is_vdev_in_go_mode. Change-Id: If38c4db7b3d1f7323df45d9a7d80a02a44e7ca41 CRs-Fixed: 2864596
Tento commit je obsažen v:
@@ -406,19 +406,19 @@
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* enable_bus_suspend_in_beaconing_mode - enable PCIe bus suspend as part of
|
||||
* platform system suspend for SAP/P2PGO/NDP with one or more clients connected
|
||||
* enable_bus_suspend_in_sap_mode - enable PCIe bus suspend as part of
|
||||
* platform system suspend for SAP with one or more clients connected
|
||||
* @Min: 0
|
||||
* @Max: 1
|
||||
* @Default: 0
|
||||
*
|
||||
* This ini is used to PCIe bus suspend as part of platform system suspend for
|
||||
* SAP/P2PGO/NDP with one or more clients connected
|
||||
* SAP with one or more clients connected
|
||||
*
|
||||
* 0: PCIe Bus suspend is not supported in beaconing mode (SAP/P2PGO/NDP) with
|
||||
* one or more clients connected
|
||||
* 1: PCIe Bus suspend is supported in beaconing mode (SAP/P2PGO/NDP) with one
|
||||
* or more clients connected
|
||||
* 0: PCIe Bus suspend is not supported in SAP mode with one or more clients
|
||||
* connected
|
||||
* 1: PCIe Bus suspend is supported in SAP mode with one or more clients
|
||||
* connected
|
||||
* Related: None
|
||||
*
|
||||
* Supported Feature: Power Save
|
||||
@@ -427,10 +427,38 @@
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_ENABLE_BUS_SUSPEND_IN_BEACONING_MODE CFG_INI_BOOL( \
|
||||
"enable_bus_suspend_in_beaconing_mode", \
|
||||
#define CFG_ENABLE_BUS_SUSPEND_IN_SAP_MODE CFG_INI_BOOL( \
|
||||
"enable_bus_suspend_in_sap_mode", \
|
||||
0, \
|
||||
"This ini is used to enable bus suspend in beaconing mode")
|
||||
"This ini is used to enable bus suspend in SAP mode")
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* enable_bus_suspend_in_go_mode - enable PCIe bus suspend as part of
|
||||
* platform system suspend for P2PGO with one or more clients connected
|
||||
* @Min: 0
|
||||
* @Max: 1
|
||||
* @Default: 0
|
||||
*
|
||||
* This ini is used to PCIe bus suspend as part of platform system suspend for
|
||||
* P2PGO with one or more clients connected
|
||||
*
|
||||
* 0: PCIe Bus suspend is not supported in P2PGO mode with one or more clients
|
||||
* connected
|
||||
* 1: PCIe Bus suspend is supported in P2PGO mode with one or more clients
|
||||
* connected
|
||||
* Related: None
|
||||
*
|
||||
* Supported Feature: Power Save
|
||||
*
|
||||
* Usage: Internal
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_ENABLE_BUS_SUSPEND_IN_GO_MODE CFG_INI_BOOL( \
|
||||
"enable_bus_suspend_in_go_mode", \
|
||||
0, \
|
||||
"This ini is used to enable bus suspend in P2PGO mode")
|
||||
|
||||
#define CFG_PMO_COMMON_ALL \
|
||||
CFG(CFG_ENABLE_SAP_SUSPEND) \
|
||||
@@ -449,6 +477,7 @@
|
||||
CFG(CFG_PMO_WOW_DATA_INACTIVITY_TIMEOUT) \
|
||||
CFG(CFG_RA_RATE_LIMIT_INTERVAL) \
|
||||
CFG(CFG_PMO_MOD_DTIM_ON_SYS_SUSPEND) \
|
||||
CFG(CFG_ENABLE_BUS_SUSPEND_IN_BEACONING_MODE)
|
||||
CFG(CFG_ENABLE_BUS_SUSPEND_IN_SAP_MODE) \
|
||||
CFG(CFG_ENABLE_BUS_SUSPEND_IN_GO_MODE)
|
||||
|
||||
#endif /* WLAN_PMO_COMMON_CFG_H__ */
|
||||
|
@@ -390,7 +390,8 @@ struct pmo_psoc_cfg {
|
||||
enum active_apf_mode active_mc_bc_apf_mode;
|
||||
uint8_t ito_repeat_count;
|
||||
bool is_mod_dtim_on_sys_suspend_enabled;
|
||||
bool is_bus_suspend_enabled_in_beaconing_mode;
|
||||
bool is_bus_suspend_enabled_in_sap_mode;
|
||||
bool is_bus_suspend_enabled_in_go_mode;
|
||||
#ifdef WLAN_ENABLE_GPIO_WAKEUP
|
||||
bool enable_gpio_wakeup;
|
||||
uint32_t gpio_wakeup_pin;
|
||||
|
@@ -2029,13 +2029,23 @@ bool
|
||||
ucfg_pmo_get_enable_sap_suspend(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* ucfg_pmo_get_beacoing_mode_bus_suspend() - get PMO config for PCIe bus
|
||||
* suspend in beaconing mode (SAP/P2PGO/NDP) with one or more clients
|
||||
* ucfg_pmo_get_sap_mode_bus_suspend() - get PMO config for PCIe bus
|
||||
* suspend in SAP mode with one or more clients
|
||||
* @psoc: pointer to psoc object
|
||||
*
|
||||
* Return: bool
|
||||
*/
|
||||
bool
|
||||
ucfg_pmo_get_beaconing_mode_bus_suspend(struct wlan_objmgr_psoc *psoc);
|
||||
ucfg_pmo_get_sap_mode_bus_suspend(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* ucfg_pmo_get_go_mode_bus_suspend() - get PMO config for PCIe bus
|
||||
* suspend in P2PGO mode with one or more clients
|
||||
* @psoc: pointer to psoc object
|
||||
*
|
||||
* Return: bool
|
||||
*/
|
||||
bool
|
||||
ucfg_pmo_get_go_mode_bus_suspend(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
#endif /* end of _WLAN_PMO_UCFG_API_H_ */
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele