qcacmn: Drop Action frame in FW config by host

Propagation from qcacld-2.0 to qcacmn.

Several Action frame categories are not processed in host and they
are not forwarded to supplicant either, but they are dropped in host.
These unprocessed action frames are forwarded to host by FW and
wake up host unnecessarily which leads to battery drain. With this fix,
host conveys FW the disallowed action frames list at HDD startup
so that the remaining frames can be dropped in FW itself thereafter
when under WoW mode.

Change-Id: I40b49d42df94085784c8f1d8321de0ee61473ae0
CRs-Fixed: 999114
This commit is contained in:
Paul Zhang
2017-01-04 16:45:42 +08:00
committed by qcabuildsw
parent 42c5771594
commit d19abd8880
3 changed files with 70 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -2213,8 +2213,29 @@ QDF_STATUS wmi_unified_egap_conf_params_cmd(void *wmi_hdl,
return QDF_STATUS_E_FAILURE;
}
#endif
/**
* wmi_unified_action_frame_patterns_cmd() - send wmi cmd of action filter params
* @wmi_handle: wmi handler
* @action_params: pointer to action_params
*
* Return: 0 for success, otherwise appropriate error code
*/
QDF_STATUS wmi_unified_action_frame_patterns_cmd(void *wmi_hdl,
struct action_wakeup_set_param *action_params)
{
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
if (wmi_handle->ops->send_action_frame_patterns_cmd)
return wmi_handle->ops->send_action_frame_patterns_cmd(
wmi_handle,
action_params);
return QDF_STATUS_E_FAILURE;
}
/**
* wmi_unified_fw_profiling_data_cmd() - send FW profiling cmd to WLAN FW
* @wmi_handl: wmi handle