wlan: Honor bssid hint if backport support is present
qcacld-2.0 to prima propagation
currently bssid hint in connect parameter is considered only
if the kernel version is greater than 3.14 but the bssid hint
support is already backported to kernel version 3.10 therefore
change made to consider bssid hint also based on backport support.
Change-Id: I79a88584a8dcda964835ff24a0fece5dffc3f7dc
CRs-Fixed: 919601
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 9c8af82..e674027 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -14473,7 +14473,8 @@
{
int status;
u16 channel;
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0)) || \
+ defined(CFG80211_BSSID_HINT_BACKPORT)
const u8 *bssid_hint = req->bssid_hint;
#else
const u8 *bssid_hint = NULL;