mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Fix compilation error if we disable LFR3 featurization
If we disable LFR3 featurization (CONFIG_QCACLD_WLAN_LFR3=n), Driver does not able to compile due to change present in Change-Id: I4c91cac6bad400c8fa58b2a6ba2b282a3b7f1620. Fix is to include change I4c91cac6bad400c8fa58b2a6ba2b282a3b7f1620 under WLAN_FEATURE_ROAM_OFFLOAD feature flag. Change-Id: I9dcf3bbcd5564c08b0ba52cfebfb2118fd50fee8 CRs-Fixed: 2268764
This commit is contained in:
parent
65086f32e4
commit
7830d9c023
4 changed files with 12 additions and 3 deletions
|
|
@ -423,6 +423,7 @@ QDF_STATUS sme_roam_set_pmkid_cache(tHalHandle hHal, uint8_t sessionId,
|
|||
uint32_t numItems,
|
||||
bool update_entire_cache);
|
||||
|
||||
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
||||
/**
|
||||
* sme_get_pmk_info(): A wrapper function to request CSR to save PMK
|
||||
* @hal: Global structure
|
||||
|
|
@ -434,7 +435,6 @@ QDF_STATUS sme_roam_set_pmkid_cache(tHalHandle hHal, uint8_t sessionId,
|
|||
void sme_get_pmk_info(tHalHandle hal, uint8_t session_id,
|
||||
tPmkidCacheInfo *pmk_cache);
|
||||
|
||||
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
||||
QDF_STATUS sme_roam_set_psk_pmk(tHalHandle hHal, uint8_t sessionId,
|
||||
uint8_t *pPSK_PMK, size_t pmk_len);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -3569,6 +3569,7 @@ QDF_STATUS sme_roam_del_pmkid_from_cache(tHalHandle hHal, uint8_t sessionId,
|
|||
return status;
|
||||
}
|
||||
|
||||
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
||||
void sme_get_pmk_info(tHalHandle hal, uint8_t session_id,
|
||||
tPmkidCacheInfo *pmk_cache)
|
||||
{
|
||||
|
|
@ -3581,6 +3582,13 @@ void sme_get_pmk_info(tHalHandle hal, uint8_t session_id,
|
|||
sme_release_global_lock(&mac_ctx->sme);
|
||||
}
|
||||
}
|
||||
#else
|
||||
static inline
|
||||
void sme_get_pmk_info(tHalHandle hal, uint8_t session_id,
|
||||
tPmkidCacheInfo *pmk_cache)
|
||||
{}
|
||||
#endif
|
||||
|
||||
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
||||
/*
|
||||
* \fn sme_roam_set_psk_pmk
|
||||
|
|
|
|||
|
|
@ -14558,6 +14558,7 @@ static void csr_roam_update_connected_profile_from_new_bss(tpAniSirGlobal pMac,
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
||||
void csr_get_pmk_info(tpAniSirGlobal mac_ctx, uint8_t session_id,
|
||||
tPmkidCacheInfo *pmk_cache)
|
||||
{
|
||||
|
|
@ -14576,7 +14577,7 @@ void csr_get_pmk_info(tpAniSirGlobal mac_ctx, uint8_t session_id,
|
|||
sizeof(session->psk_pmk));
|
||||
pmk_cache->pmk_len = session->pmk_len;
|
||||
}
|
||||
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
||||
|
||||
QDF_STATUS csr_roam_set_psk_pmk(tpAniSirGlobal pMac, uint32_t sessionId,
|
||||
uint8_t *pPSK_PMK, size_t pmk_len)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -733,6 +733,7 @@ QDF_STATUS csr_roam_set_pmkid_cache(tpAniSirGlobal pMac, uint32_t sessionId,
|
|||
tPmkidCacheInfo *pPMKIDCache,
|
||||
uint32_t numItems, bool update_entire_cache);
|
||||
|
||||
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
||||
/*
|
||||
* csr_get_pmk_info(): store PMK in pmk_cache
|
||||
* @mac_ctx: pointer to global structure for MAC
|
||||
|
|
@ -747,7 +748,6 @@ QDF_STATUS csr_roam_set_pmkid_cache(tpAniSirGlobal pMac, uint32_t sessionId,
|
|||
void csr_get_pmk_info(tpAniSirGlobal mac_ctx, uint8_t session_id,
|
||||
tPmkidCacheInfo *pmk_cache);
|
||||
|
||||
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
||||
/*
|
||||
* csr_roam_set_psk_pmk() -
|
||||
* store PSK/PMK
|
||||
|
|
|
|||
Loading…
Reference in a new issue