qcacld-3.0: CCX roam fails due to invalid KRK and BTK Keys

Currently the KRK and BTK Keys are not copied from the supplicant
to the buffer in RSO command. Hence the NULL KRK and BTK keys are
generating invalid MIC key in Firmware for CCX roaming. And so
the CCX roam fails.
This fix copies the valid KRK and BTK keys from Session to the
ese structure in the RSO command.

Change-Id: I2f567f75dd74189becb40ec9a1f906ab0d870584
CRs-Fixed: 2958938
This commit is contained in:
Srikanth Marepalli 2021-06-01 14:06:38 +05:30 • committed by Madan Koyyalamudi
commit bb309c2681

View file

@ -18124,6 +18124,17 @@ csr_cm_update_rso_ese_info(struct mac_context *mac,
akm == eCSR_AUTH_TYPE_OPEN_SYSTEM) ||
(csr_is_auth_type_ese(akm));
rso_config->rso_11r_info.is_11r_assoc = roam_info->is11rAssoc;
if (rso_config->rso_ese_info.is_ese_assoc) {
qdf_mem_copy(rso_config->rso_ese_info.krk,
session->eseCckmInfo.krk, WMI_KRK_KEY_LEN);
qdf_mem_copy(rso_config->rso_ese_info.btk,
session->eseCckmInfo.btk, WMI_BTK_KEY_LEN);
rso_config->rso_11i_info.fw_okc = false;
rso_config->rso_11i_info.fw_pmksa_cache = false;
rso_config->rso_11i_info.pmk_len = 0;
qdf_mem_zero(&rso_config->rso_11i_info.psk_pmk[0],
sizeof(rso_config->rso_11i_info.psk_pmk));
}
}
#else
static inline void