qcacld-3.0: Enable D0WOW for pcie

Enable FEATURE_WLAN_DOWOW for pcie.
This is for backward compatible with rome fw.

Change-Id: Ia2107ff6939666b4a0bd19d57149d17814f2dfb5
CRs-Fixed: 2070426
This commit is contained in:
Will Huang
2017-11-17 13:16:56 +08:00
committed by snandini
父節點 5a62a82f0f
當前提交 3cd2b7c566
共有 14 個文件被更改,包括 181 次插入2 次删除

查看文件

@@ -271,6 +271,7 @@ enum pmo_auto_pwr_detect_failure_mode {
* @enable_mc_list: true if psoc supports mc addr list else false
* @active_mode_offload: true if psoc supports active mode offload else false
* @ap_arpns_support: true if psoc supports arp ns for ap mode
* @d0_wow_supported: true if psoc supports D0 wow command
* @max_wow_filters: maximum number of wow filter supported
* @ra_ratelimit_enable: true when ra filtering ins eanbled else false
* @ra_ratelimit_interval: ra packets interval
@@ -298,6 +299,7 @@ struct pmo_psoc_cfg {
bool enable_mc_list;
bool active_mode_offload;
bool ap_arpns_support;
bool d0_wow_supported;
uint8_t max_wow_filters;
bool ra_ratelimit_enable;
uint16_t ra_ratelimit_interval;

查看文件

@@ -102,6 +102,8 @@ int (*pmo_pld_auto_resume_cb)(void);
* @psoc_get_runtime_pm_in_progress: fp to get runtime pm is in progress status
* @psoc_send_host_wakeup_ind: fp tp send host wake indication to fwr
* @psoc_send_target_resume_req: fp to send target resume request
* @psoc_send_d0wow_enable_req: fp to send D0 WOW enable request
* @psoc_send_d0wow_disable_req: fp to send D0 WOW disable request
*/
struct wlan_pmo_tx_ops {
QDF_STATUS (*send_arp_offload_req)(struct wlan_objmgr_vdev *vdev,
@@ -196,6 +198,10 @@ struct wlan_pmo_tx_ops {
QDF_STATUS (*psoc_send_host_wakeup_ind)(struct wlan_objmgr_psoc *psoc);
QDF_STATUS (*psoc_send_target_resume_req)(
struct wlan_objmgr_psoc *psoc);
QDF_STATUS (*psoc_send_d0wow_enable_req)(
struct wlan_objmgr_psoc *psoc);
QDF_STATUS (*psoc_send_d0wow_disable_req)(
struct wlan_objmgr_psoc *psoc);
};

查看文件

@@ -173,11 +173,26 @@ enum pmo_wow_action_wakeup_opertion {
pmo_action_wakeup_del_set,
};
/**
* enum pmo_wow_state: enumeration of wow state
* @pmo_wow_state_none: not in wow state
* @pmo_wow_state_legacy_d0: in d0 wow state trigger by legacy d0 wow command
* @pmo_wow_state_unified_d0: in d0 wow state trigger by unified wow command
* @pmo_wow_state_unified_d3: in d3 wow state trigger by unified wow command
*/
enum pmo_wow_state {
pmo_wow_state_none = 0,
pmo_wow_state_legacy_d0,
pmo_wow_state_unified_d0,
pmo_wow_state_unified_d3,
};
/**
* struct pmo_wow - store wow patterns
* @wow_enable: wow enable/disable
* @wow_enable_cmd_sent: is wow enable command sent to fw
* @is_wow_bus_suspended: true if bus is suspended
* @wow_state: state of wow
* @target_suspend: target suspend event
* @target_resume: target resume event
* @wow_nack: wow negative ack flag
@@ -197,6 +212,7 @@ struct pmo_wow {
bool wow_enable;
bool wow_enable_cmd_sent;
bool is_wow_bus_suspended;
enum pmo_wow_state wow_state;
qdf_event_t target_suspend;
qdf_event_t target_resume;
int wow_nack;