qcacld-3.0: Add ucfg_pmo_psoc_set_caps()
Provide PMO-specific device capabilities to PMO. This allows PMO to do intersections between configuration and device capabilities. Change-Id: If0a199f9be466d16cef900a29b14b73a2a4e52d0 CRs-Fixed: 2197828
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -316,5 +316,21 @@ struct pmo_psoc_cfg {
|
||||
enum pmo_auto_pwr_detect_failure_mode auto_power_save_fail_mode;
|
||||
};
|
||||
|
||||
/**
|
||||
* pmo_device_caps - device capability flags (true if feature is supported)
|
||||
* @apf: Android Packet Filter (aka BPF)
|
||||
* @arp_ns_offload: APR/NS offload
|
||||
* @packet_filter: Legacy "Packet Filter"
|
||||
* @unified_wow: Firmware supports "interface pause" flag in WoW command.
|
||||
* This allows both D0-WoW (bus up) and Non-D0-WoW (bus down) to use one
|
||||
* unified command
|
||||
*/
|
||||
struct pmo_device_caps {
|
||||
bool apf;
|
||||
bool arp_ns_offload;
|
||||
bool packet_filter;
|
||||
bool unified_wow;
|
||||
};
|
||||
|
||||
#endif /* end of _WLAN_PMO_COMMONP_STRUCT_H_ */
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -83,6 +83,16 @@ QDF_STATUS ucfg_pmo_get_psoc_config(struct wlan_objmgr_psoc *psoc,
|
||||
QDF_STATUS ucfg_pmo_update_psoc_config(struct wlan_objmgr_psoc *psoc,
|
||||
struct pmo_psoc_cfg *psoc_cfg);
|
||||
|
||||
/**
|
||||
* ucfg_pmo_psoc_set_caps() - overwrite configured device capability flags
|
||||
* @psoc: the psoc for which the capabilities apply
|
||||
* @caps: the cabability information to configure
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS ucfg_pmo_psoc_set_caps(struct wlan_objmgr_psoc *psoc,
|
||||
struct pmo_device_caps *caps);
|
||||
|
||||
/**
|
||||
* pmo_ucfg_enable_wakeup_event() - enable wow wakeup events
|
||||
* @psoc: objmgr psoc
|
||||
|
Reference in New Issue
Block a user