diff options
| author | Srinivas Girigowda <sgirigow@codeaurora.org> | 2017-07-17 17:07:20 -0700 |
|---|---|---|
| committer | snandini <snandini@codeaurora.org> | 2017-08-04 13:38:57 -0700 |
| commit | f2eae9dc27544d78f81316705f36aebd7ec34c55 (patch) | |
| tree | 542e334dce72052158c7dc9abee58e8df05fb3b3 | |
| parent | ae4c58d13167d977247cb731a588a8c8e5dc4baf (diff) | |
qcacld-3.0: Properly advertise mem_dump feature support
Currently, mem_dump feature support is advertized just based
on the compile macro, if the firmware does not support this
feature, still code ends up sending true to the user space.
Fix this by properly advertising the mem_dump feature support
based on the the FW support.
Change-Id: I4d601f764c6598c51c48d43e24e15fb6c35875bd
CRs-Fixed: 2077931
| -rw-r--r-- | core/hdd/inc/wlan_hdd_main.h | 6 | ||||
| -rw-r--r-- | core/hdd/src/wlan_hdd_cfg80211.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 9cb9a0820f33..4763ff2188a3 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -2260,12 +2260,12 @@ void hdd_get_fw_version(hdd_context_t *hdd_ctx, * * Return: true if supported and false otherwise */ -static inline bool hdd_is_memdump_supported(void) +static inline bool hdd_is_memdump_supported(hdd_context_t *hdd_ctx) { - return true; + return hdd_ctx->fw_mem_dump_enabled; } #else -static inline bool hdd_is_memdump_supported(void) +static inline bool hdd_is_memdump_supported(hdd_context_t *hdd_ctx) { return false; } diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 815f6347770d..0efb1867433e 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -4467,7 +4467,7 @@ __wlan_hdd_cfg80211_get_logger_supp_feature(struct wiphy *wiphy, features = 0; - if (hdd_is_memdump_supported()) + if (hdd_is_memdump_supported(hdd_ctx)) features |= WIFI_LOGGER_MEMORY_DUMP_SUPPORTED; features |= WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED; features |= WIFI_LOGGER_CONNECT_EVENT_SUPPORTED; |
