qcacld-3.0: Differentiate pattern id for legacy firmware
The Wow pattern id should be identified unique for different vdevs of legacy firmware, and latest firmware accept same Wow pattern id on different vdevs. This change is to differentiate this behavior using WMI_SERVICE_UNIFIED_WOW_CAPABILITY flag, and supply a set of APIs to manipulate pattern id. Change-Id: I5fe7623a309a0c3baa14fb7312107c057e994462 CRs-Fixed: 2103017
This commit is contained in:
@@ -242,6 +242,7 @@ enum pmo_offload_trigger {
|
||||
/**
|
||||
* struct pmo_psoc_cfg - user configuration required for pmo
|
||||
* @ptrn_match_enable_all_vdev: true when pattern match is enable for all vdev
|
||||
* @ptrn_id_per_vdev: true when pattern id can be same for different vdev
|
||||
* @bpf_enable: true if psoc supports bpf else false
|
||||
* @arp_offload_enable: true if arp offload is supported for psoc else false
|
||||
* @hw_filter_mode: which mode the hardware filter should use during DTIM
|
||||
@@ -269,6 +270,7 @@ enum pmo_offload_trigger {
|
||||
*/
|
||||
struct pmo_psoc_cfg {
|
||||
bool ptrn_match_enable_all_vdev;
|
||||
bool ptrn_id_per_vdev;
|
||||
bool bpf_enable;
|
||||
bool arp_offload_enable;
|
||||
enum pmo_hw_filter_mode hw_filter_mode;
|
||||
|
@@ -185,6 +185,8 @@ enum pmo_wow_action_wakeup_opertion {
|
||||
* @lphb_cb_ctx: callback context for lphb, kept as void* as
|
||||
* osif structures are opaque to pmo.
|
||||
* @pmo_lphb_callback: registered os if calllback function
|
||||
* @ptrn_id_def: default pattern id counter for legacy firmware
|
||||
* @ptrn_id_usr: user pattern id counter for legacy firmware
|
||||
*
|
||||
* This structure stores wow patterns and
|
||||
* wow related parameters in host.
|
||||
@@ -205,6 +207,9 @@ struct pmo_wow {
|
||||
struct pmo_lphb_req lphb_cache[2];
|
||||
void *lphb_cb_ctx;
|
||||
pmo_lphb_callback lphb_cb;
|
||||
|
||||
uint8_t ptrn_id_def;
|
||||
uint8_t ptrn_id_usr;
|
||||
};
|
||||
|
||||
/* WOW related structures */
|
||||
|
Fai riferimento in un nuovo problema
Block a user