Guard driver cfg80211 abort scan implementation with appropriate checks

cfg80211 abort scan implementation is available only from
kernel 4.5 onwards. Hence guard the abort scan driver
implementation with linux version and backport availability
checks in order to prevent any compilation issues with old
kernel versions.

Change-Id: I5956f9daa06225535ae4f10aed4ebe310f7acc7a
CRs-Fixed: 1010982
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index aff7312..2bfb86b 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -19316,6 +19316,8 @@
 }
 #endif
 
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,5,0)) || \
+    defined(CFG80211_ABORT_SCAN)
 /**
  * __wlan_hdd_cfg80211_abort_scan() - cfg80211 abort scan api
  * @wiphy: Pointer to wiphy
@@ -19365,6 +19367,7 @@
 
     return;
 }
+#endif
 
 /* cfg80211_ops */
 static struct cfg80211_ops wlan_hdd_cfg80211_ops =
@@ -19436,6 +19439,9 @@
      .testmode_cmd = wlan_hdd_cfg80211_testmode,
 #endif
      .dump_survey = wlan_hdd_cfg80211_dump_survey,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,5,0)) || \
+    defined(CFG80211_ABORT_SCAN)
      .abort_scan = wlan_hdd_cfg80211_abort_scan,
+#endif
 };