wlan: Send fatal event logging request to FW only if it is supported

Presently, host sending fatal event logging request to firmware
without checking whether the same is supported in firmware, leading
fatal event request sent by the host to timed-out.

Send fatal event logging request to firmware only if firmware supports
the same.

Change-Id: I68f74af539219bb6f5e95b5df839faf62205a03b
CRs-Fixed: 2049113
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index cf9cf6a..b74e059 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -12675,6 +12675,11 @@
    pHddCtx->is_ap_mode_wow_supported =
               sme_IsFeatureSupportedByFW(SAP_MODE_WOW);
 
+   pHddCtx->is_fatal_event_log_sup =
+      sme_IsFeatureSupportedByFW(FATAL_EVENT_LOGGING);
+   hddLog(VOS_TRACE_LEVEL_INFO, FL("FATAL_EVENT_LOGGING: %d"),
+          pHddCtx->is_fatal_event_log_sup);
+
    hdd_assoc_registerFwdEapolCB(pVosContext);
 
    goto success;