mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacld-3.0: Fix compilation issue for ROAM_OFFLOAD feature
Fix compilation issue when ROAM_OFFLOAD is not enabled. There are issues with ROAM_OFFLOAD feature conditional compilation. Change-Id: I068245885ab9f054b4c03307a9ecc0066bc88ebe CRs-fixed: 784982
This commit is contained in:
parent
65b674fb9e
commit
b976119f9b
5 changed files with 30 additions and 23 deletions
|
|
@ -1429,12 +1429,9 @@ static void hdd_send_re_assoc_event(struct net_device *dev,
|
|||
final_req_ie, (ssid_ie_len + reqRsnLength),
|
||||
rspRsnIe, rspRsnLength, GFP_KERNEL);
|
||||
|
||||
if (pHddCtx->config->isRoamOffloadEnabled &&
|
||||
pCsrRoamInfo->roamSynchInProgress)
|
||||
wlan_hdd_send_roam_auth_event(pHddCtx,
|
||||
pCsrRoamInfo->bssid.bytes,
|
||||
reqRsnIe, reqRsnLength, rspRsnIe,
|
||||
rspRsnLength, pCsrRoamInfo);
|
||||
wlan_hdd_send_roam_auth_event(pHddCtx, pCsrRoamInfo->bssid.bytes,
|
||||
reqRsnIe, reqRsnLength, rspRsnIe, rspRsnLength,
|
||||
pCsrRoamInfo);
|
||||
done:
|
||||
sme_roam_free_connect_profile(hal_handle, &roam_profile);
|
||||
if (final_req_ie)
|
||||
|
|
@ -1945,15 +1942,14 @@ defined(FEATURE_WLAN_LFR)
|
|||
pFTAssocRsp,
|
||||
assocRsplen,
|
||||
GFP_KERNEL);
|
||||
if (pRoamInfo->roamSynchInProgress)
|
||||
wlan_hdd_send_roam_auth_event(
|
||||
pHddCtx,
|
||||
pRoamInfo->bssid.bytes,
|
||||
pFTAssocReq,
|
||||
assocReqlen,
|
||||
pFTAssocRsp,
|
||||
assocRsplen,
|
||||
pRoamInfo);
|
||||
wlan_hdd_send_roam_auth_event(
|
||||
pHddCtx,
|
||||
pRoamInfo->bssid.bytes,
|
||||
pFTAssocReq,
|
||||
assocReqlen,
|
||||
pFTAssocRsp,
|
||||
assocRsplen,
|
||||
pRoamInfo);
|
||||
}
|
||||
if (sme_get_ftptk_state
|
||||
(WLAN_HDD_GET_HAL_CTX(pAdapter),
|
||||
|
|
|
|||
|
|
@ -2975,6 +2975,10 @@ int wlan_hdd_send_roam_auth_event(hdd_context_t *hdd_ctx_ptr, uint8_t *bssid,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (!hdd_ctx_ptr->config->isRoamOffloadEnabled ||
|
||||
!roam_info_ptr->roamSynchInProgress)
|
||||
return 0;
|
||||
|
||||
skb = cfg80211_vendor_event_alloc(hdd_ctx_ptr->wiphy,
|
||||
NULL,
|
||||
ETH_ALEN + req_rsn_len + rsp_rsn_len +
|
||||
|
|
@ -3032,7 +3036,7 @@ nla_put_failure:
|
|||
kfree_skb(skb);
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
#endif /* WLAN_FEATURE_ROAM_OFFLOAD */
|
||||
|
||||
static const struct nla_policy
|
||||
wlan_hdd_wifi_config_policy[QCA_WLAN_VENDOR_ATTR_CONFIG_MAX + 1] = {
|
||||
|
|
|
|||
|
|
@ -2253,9 +2253,17 @@ void wlan_hdd_cfg80211_acs_ch_select_evt(hdd_adapter_t *adapter);
|
|||
|
||||
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
||||
int wlan_hdd_send_roam_auth_event(hdd_context_t *hdd_ctx_ptr, uint8_t *bssid,
|
||||
uint8_t *req_rsn_ie, uint32_t req_rsn_length,
|
||||
uint8_t *rsp_rsn_ie, uint32_t rsp_rsn_length,
|
||||
tCsrRoamInfo *roam_info_ptr);
|
||||
uint8_t *req_rsn_ie, uint32_t req_rsn_length, uint8_t
|
||||
*rsp_rsn_ie, uint32_t rsp_rsn_length, tCsrRoamInfo
|
||||
*roam_info_ptr);
|
||||
#else
|
||||
static inline int wlan_hdd_send_roam_auth_event(hdd_context_t *hdd_ctx_ptr,
|
||||
uint8_t *bssid, uint8_t *req_rsn_ie, uint32_t req_rsn_length,
|
||||
uint8_t *rsp_rsn_ie, uint32_t rsp_rsn_length, tCsrRoamInfo
|
||||
*roam_info_ptr)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
int wlan_hdd_cfg80211_update_apies(hdd_adapter_t *adapter);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2011-2014 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2011-2015 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||
*
|
||||
|
|
@ -917,7 +917,6 @@ lim_send_hal_msg_add_ts(tpAniSirGlobal pMac,
|
|||
tSirMsgQ msg;
|
||||
tpAddTsParams pAddTsParam;
|
||||
|
||||
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
||||
tpPESession psessionEntry = pe_find_session_by_session_id(pMac, sessionId);
|
||||
if (psessionEntry == NULL) {
|
||||
lim_log(pMac, LOGP,
|
||||
|
|
@ -925,7 +924,7 @@ lim_send_hal_msg_add_ts(tpAniSirGlobal pMac,
|
|||
sessionId);
|
||||
return eSIR_FAILURE;
|
||||
}
|
||||
#endif
|
||||
|
||||
pAddTsParam = cdf_mem_malloc(sizeof(tAddTsParams));
|
||||
if (NULL == pAddTsParam) {
|
||||
PELOGW(lim_log(pMac, LOGW, FL("AllocateMemory() failed"));)
|
||||
|
|
|
|||
|
|
@ -13514,6 +13514,7 @@ CDF_STATUS sme_update_roam_key_mgmt_offload_enabled(tHalHandle hHal,
|
|||
|
||||
return status;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
\fn sme_get_temperature
|
||||
|
|
@ -13589,7 +13590,6 @@ CDF_STATUS sme_set_scanning_mac_oui(tHalHandle hHal, tSirScanMacOui *pScanMacOui
|
|||
}
|
||||
return status;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef DHCP_SERVER_OFFLOAD
|
||||
/* ---------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue