qcacld-3.0: Update ciphers in RSO command from crypto component

Currently driver fills unicast, multicast & auth mode values from
csr session which is not updated after roaming to AP with different
security profile. This causes incorrect values in AP profile command.
Send correct authmode/unicast and multicast ciphers in AP profile
command to firmware.

Also modify the below 2 ini default values as:
candidate_min_rssi_for_beacon_miss=-75
candidate_min_rssi_for_disconnect=-75

Change-Id: I33cc9f516447071e977768f01738eea7a2ecd99c
CRs-Fixed: 2879943
Этот коммит содержится в:
Pragaspathi Thilagaraj
2021-02-17 19:40:22 +05:30
коммит произвёл snandini
родитель b577d7479e
Коммит 1cbfd5f909
6 изменённых файлов: 44 добавлений и 67 удалений

Просмотреть файл

@@ -483,7 +483,7 @@ cm_roam_scan_offload_fill_lfr3_config(struct wlan_objmgr_vdev *vdev,
akm = wlan_crypto_get_param(vdev, WLAN_CRYPTO_PARAM_KEY_MGMT);
rso_config->akm =
cm_crpto_authmode_to_wmi_authmode(authmode, akm, uccipher);
cm_crypto_authmode_to_wmi_authmode(authmode, akm, uccipher);
return QDF_STATUS_SUCCESS;
}
@@ -1066,8 +1066,8 @@ static uint32_t cm_get_wapi_wmi_auth_type(int32_t akm)
return WMI_AUTH_NONE;
}
uint32_t cm_crpto_authmode_to_wmi_authmode(int32_t authmodeset,
int32_t akm, int32_t ucastcipherset)
uint32_t cm_crypto_authmode_to_wmi_authmode(int32_t authmodeset,
int32_t akm, int32_t ucastcipherset)
{
if (!authmodeset || authmodeset < 0)
return WMI_AUTH_OPEN;
@@ -1157,7 +1157,7 @@ cm_roam_scan_offload_ap_profile(struct wlan_objmgr_psoc *psoc,
authmode = wlan_crypto_get_param(vdev, WLAN_CRYPTO_PARAM_AUTH_MODE);
akm = wlan_crypto_get_param(vdev, WLAN_CRYPTO_PARAM_KEY_MGMT);
profile->rsn_authmode =
cm_crpto_authmode_to_wmi_authmode(authmode, akm, uccipher);
cm_crypto_authmode_to_wmi_authmode(authmode, akm, uccipher);
profile->rssi_threshold = rso_cfg->cfg_param.roam_rssi_diff;
profile->bg_rssi_threshold = rso_cfg->cfg_param.bg_rssi_threshold;

Просмотреть файл

@@ -443,8 +443,9 @@ void wlan_cm_init_occupied_ch_freq_list(struct wlan_objmgr_pdev *pdev,
struct wlan_objmgr_psoc *psoc,
uint8_t vdev_id);
uint32_t cm_crpto_authmode_to_wmi_authmode(int32_t authmodeset,
int32_t akm, int32_t ucastcipherset);
uint32_t cm_crypto_authmode_to_wmi_authmode(int32_t authmodeset,
int32_t akm,
int32_t ucastcipherset);
uint8_t *wlan_cm_get_rrm_cap_ie_data(void);
/**