Prechádzať zdrojové kódy

qcacmn: Pass WOW enable flags to FW

For WOW Enable, firmware accepts a bitmap of flags, but passing them
to firmware is not exposed by WMI. Modify WMI to allow passing WOW
Enable flags to firmware.

Change-Id: I458b01bc6a4e5b14b2a1dfee928136daeb70ebe9
CRs-Fixed: 1092068
Dustin Brown 8 rokov pred
rodič
commit
72e658b87a
2 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 1 0
      wmi/inc/wmi_unified_param.h
  2. 1 0
      wmi/src/wmi_unified_tlv.c

+ 1 - 0
wmi/inc/wmi_unified_param.h

@@ -695,6 +695,7 @@ struct wow_cmd_params {
 	bool enable;
 	bool can_suspend_link;
 	uint8_t pause_iface_config;
+	uint32_t flags;
 };
 
 /**

+ 1 - 0
wmi/src/wmi_unified_tlv.c

@@ -1120,6 +1120,7 @@ QDF_STATUS send_wow_enable_cmd_tlv(wmi_unified_t wmi_handle,
 		cmd->pause_iface_config = WOW_IFACE_PAUSE_ENABLED;
 	else
 		cmd->pause_iface_config = WOW_IFACE_PAUSE_DISABLED;
+	cmd->flags = param->flags;
 
 	WMI_LOGI("suspend type: %s",
 		cmd->pause_iface_config == WOW_IFACE_PAUSE_ENABLED ?