diff options
| author | Edhar, Mahesh Kumar <c_medhar@qti.qualcomm.com> | 2015-10-07 15:45:09 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2015-10-09 14:46:45 +0530 |
| commit | ebf9435f62548edec98357e476459b2a459cd48d (patch) | |
| tree | 03b06ea36c103c5ff20d74ceb07bb5ecd5898585 | |
| parent | d6d91186a28abde5a971327ade41d2e1d845cb7c (diff) | |
qcacld-2.0: honor bssid hint if backport support is present
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
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_cfg80211.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index 43aebb354721..418efa229cf7 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -17080,11 +17080,13 @@ static int __wlan_hdd_cfg80211_connect( struct wiphy *wiphy, { 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; #endif + hdd_adapter_t *pAdapter = WLAN_HDD_GET_PRIV_PTR( ndev ); VOS_STATUS exitbmpsStatus = VOS_STATUS_E_INVAL; hdd_context_t *pHddCtx; |
