mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
qcacmn: Allocate additional 8 bytes for MIC in PMF case
Last 8 bytes for MIC are allocated in host for Hawkeye. Change-Id: Iab375fdf3115334dba6e1f0b18c31356b8f4ed09
This commit is contained in:
parent
776310a80e
commit
2373e37ffa
1 changed files with 8 additions and 3 deletions
|
|
@ -58,9 +58,14 @@ static QDF_STATUS ccmp_encap(struct wlan_crypto_key *key,
|
|||
if (encapdone) {
|
||||
ivp = (uint8_t *)qdf_nbuf_data(wbuf);
|
||||
} else {
|
||||
ivp = (uint8_t *)qdf_nbuf_push_head(wbuf,
|
||||
cipher_table->header);
|
||||
qdf_mem_move(ivp, ivp + cipher_table->header, hdrlen);
|
||||
uint8_t ivmic_len = cipher_table->header + cipher_table->miclen;
|
||||
ivp = (uint8_t *)qdf_nbuf_push_head(wbuf, ivmic_len);
|
||||
qdf_mem_move(ivp, ivp + ivmic_len, hdrlen);
|
||||
|
||||
qdf_mem_move(ivp + hdrlen + cipher_table->header,
|
||||
ivp + hdrlen + ivmic_len,
|
||||
(qdf_nbuf_len(wbuf) - hdrlen - ivmic_len));
|
||||
|
||||
ivp = (uint8_t *) qdf_nbuf_data(wbuf);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue