wlan: Making prima driver compatible with kernel older than 3.4.0

Adding check so that 3.4.0 system calls are not used when prima driver
is compiled for an older kernel (e.g. 3.0.31). This is because some of
the cfg80211 apis used in the prima driver are not present in the
kernels older than 3.4.0
While using the prima driver for older kernels, we would need to disable
the WLAN_FEATURE_11AC_HIGH_TP feature  since the support for api
set_wake_up_idle is not present in older kernels (e.g. 3.0.31)

Change-Id: If4fe3adce33702cea97a874752a247af4dac6a4b
CR-Fixed: NA
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 59ffa97..5b07459 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -457,12 +457,12 @@
 
     wiphy->mgmt_stypes = wlan_hdd_txrx_stypes;
 
-    wiphy->flags |=   WIPHY_FLAG_HAVE_AP_SME 
-                    | WIPHY_FLAG_AP_PROBE_RESP_OFFLOAD
-                    | WIPHY_FLAG_CUSTOM_REGULATORY;
+    wiphy->flags |=   WIPHY_FLAG_CUSTOM_REGULATORY;
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
-    wiphy->flags |=   WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL 
+    wiphy->flags |= WIPHY_FLAG_HAVE_AP_SME
+                 |  WIPHY_FLAG_AP_PROBE_RESP_OFFLOAD
+                 |  WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL
                     | WIPHY_FLAG_OFFCHAN_TX;
 #endif
     /* even with WIPHY_FLAG_CUSTOM_REGULATORY,
@@ -3484,7 +3484,7 @@
         hddLog(VOS_TRACE_LEVEL_INFO, "\n"); \
     }
 
-#ifdef FEATURE_WLAN_LFR
+#if defined(FEATURE_WLAN_LFR) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
 /*
  * FUNCTION: wlan_hdd_cfg80211_pmksa_candidate_notify
  * This function is used to notify the supplicant of a new PMKSA candidate.