mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: Use correct struct type tSetBssKeyParams
When CRYPTO_SET_KEY_CONVERGED enabled, the set bss key will use tSetBssKeyParams in wma_send_set_key_rsp. Change-Id: Ief0c822c637ac06dc241a682c060f19bb946fea2 CRs-Fixed: 2402889
This commit is contained in:
parent
a44d55b68a
commit
271784b734
1 changed files with 7 additions and 0 deletions
|
|
@ -2941,6 +2941,10 @@ void lim_process_mlm_set_bss_key_rsp(struct mac_context *mac_ctx,
|
|||
result_status =
|
||||
(uint16_t)(((tpSetBssKeyParams)msg->bodyptr)->status);
|
||||
key_len = ((tpSetBssKeyParams)msg->bodyptr)->key[0].keyLength;
|
||||
} else if (lim_is_set_key_req_converged()) {
|
||||
result_status =
|
||||
(uint16_t)(((tpSetBssKeyParams)msg->bodyptr)->status);
|
||||
key_len = ((tpSetBssKeyParams)msg->bodyptr)->key[0].keyLength;
|
||||
} else {
|
||||
/*
|
||||
* BCAST key also uses tpSetStaKeyParams.
|
||||
|
|
@ -2951,6 +2955,9 @@ void lim_process_mlm_set_bss_key_rsp(struct mac_context *mac_ctx,
|
|||
key_len = ((tpSetStaKeyParams)msg->bodyptr)->key[0].keyLength;
|
||||
}
|
||||
|
||||
pe_debug("limMlmState %d status %d key_len %d",
|
||||
session_entry->limMlmState, result_status, key_len);
|
||||
|
||||
if (result_status == eSIR_SME_SUCCESS && key_len)
|
||||
set_key_cnf.key_len_nonzero = true;
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue