qcacld-3.0: Check FW support for FW mem dump

Currently HDD sends a FW memory dump request to firmware without
checking support for this feature. This can lead to a crash as firmware
doesn't send the command response if feature is not supported.
Add a check in HDD so that the request is only sent when FW memory dump
capability is advertised by the firmware.

Change-Id: I73b980f50910e13aa5f2d2434f07b6f985dd5010
CRs-fixed: 1090806
This commit is contained in:
Manjeet Singh
2016-12-20 20:41:10 +05:30
committed by snandini
parent 3b7dccda5a
commit 70d3d931d9
6 changed files with 23 additions and 1 deletions

View File

@@ -1380,6 +1380,7 @@ struct hw_mode_idx_to_mac_cap_idx {
* @saved_chan: saved channel list sent as part of WMI_SCAN_CHAN_LIST_CMDID
* @dfs_cac_offload: dfs and cac timer offload
* @ito_repeat_count: Indicates ito repeated count
* @fw_mem_dump_enabled: Fw memory dump support
*/
typedef struct {
void *wmi_handle;
@@ -1573,6 +1574,7 @@ typedef struct {
bool tx_bfee_8ss_enabled;
bool in_imps;
uint8_t ito_repeat_count;
bool fw_mem_dump_enabled;
} t_wma_handle, *tp_wma_handle;
/**