mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Fix clang warning implicit conversion enum hdd_wmm_user_mode
warning: implicit conversion from enumeration type 'enum hdd_wmm_user_mode' to different enumeration type 'eCsrRoamWmmUserModeType' [-Wenum-conversion]. Add a utility function to convert enum hdd_wmm_user_mode to eCsrRoamWmmUserModeType. Change-Id: Iefbe7dd55bd51da2e019b528d64f9889abfd4d32 CRs-Fixed: 2055487
This commit is contained in:
parent
bbbecad526
commit
3ea486def5
1 changed files with 23 additions and 1 deletions
|
|
@ -7237,6 +7237,27 @@ QDF_STATUS hdd_set_policy_mgr_user_cfg(hdd_context_t *hdd_ctx)
|
|||
|
||||
return status;
|
||||
}
|
||||
/**
|
||||
* hdd_to_csr_wmm_mode() - Utility function to convert HDD to CSR WMM mode
|
||||
*
|
||||
* @enum hdd_wmm_user_mode - hdd WMM user mode
|
||||
*
|
||||
* Return: CSR WMM mode
|
||||
*/
|
||||
static eCsrRoamWmmUserModeType
|
||||
hdd_to_csr_wmm_mode(enum hdd_wmm_user_mode mode)
|
||||
{
|
||||
switch (mode) {
|
||||
case HDD_WMM_USER_MODE_QBSS_ONLY:
|
||||
return eCsrRoamWmmQbssOnly;
|
||||
case HDD_WMM_USER_MODE_NO_QOS:
|
||||
return eCsrRoamWmmNoQos;
|
||||
case HDD_WMM_USER_MODE_AUTO:
|
||||
default:
|
||||
return eCsrRoamWmmAuto;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* hdd_set_sme_config() -initializes the sme configuration parameters
|
||||
*
|
||||
|
|
@ -7321,7 +7342,8 @@ QDF_STATUS hdd_set_sme_config(hdd_context_t *pHddCtx)
|
|||
|
||||
#endif
|
||||
smeConfig->csrConfig.Is11eSupportEnabled = pConfig->b80211eIsEnabled;
|
||||
smeConfig->csrConfig.WMMSupportMode = pConfig->WmmMode;
|
||||
smeConfig->csrConfig.WMMSupportMode =
|
||||
hdd_to_csr_wmm_mode(pConfig->WmmMode);
|
||||
|
||||
smeConfig->rrmConfig.rrm_enabled = pConfig->fRrmEnable;
|
||||
smeConfig->rrmConfig.max_randn_interval = pConfig->nRrmRandnIntvl;
|
||||
|
|
|
|||
Loading…
Reference in a new issue