diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 27cbc65c5b06..8524984fbc4c 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -2179,12 +2179,12 @@ void hdd_switch_sap_channel(struct hdd_adapter *adapter, uint8_t channel); * * Return: true if supported and false otherwise */ -static inline bool hdd_is_memdump_supported(void) +static inline bool hdd_is_memdump_supported(struct hdd_context *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(struct hdd_context *hdd_ctx) { return false; } diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index d2977b594c21..e531dd5a8528 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -5190,7 +5190,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;