summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeshwanth Sriram Guntuka <ysriramg@codeaurora.org>2021-02-01 19:51:31 +0530
committerHsiu Chang Chen <hsiuchangchen@google.com>2021-03-25 06:38:25 +0000
commit217aa58e8e4d4ea68eb9b8da48f84ceb291401c3 (patch)
tree79a7a6894fd7f29cd085bd14cbfff80543e0a0bf
parentd571f8445318a78b28b5c4b9cb3ae54f31c69a1f (diff)
downloadqcacld-217aa58e8e4d4ea68eb9b8da48f84ceb291401c3.tar.gz
qcacld-3.0: Flush frags for peer on add key request
Fragments are not flushed as part of rekey which could result in fragments encrypted under different keys to be reassembled. Fix is to flush fragments for the peer for which add key request is received. Bug: 182958222 Change-Id: I0c018ff7375272125c62aaea7b8ad4df9e842508 CRs-Fixed: 2875950 Signed-off-by: Hsiu-Chang Chen <hsiuchangchen@google.com>
-rw-r--r--core/hdd/src/wlan_hdd_cfg80211.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c
index c35867e2be..de5d602fe7 100644
--- a/core/hdd/src/wlan_hdd_cfg80211.c
+++ b/core/hdd/src/wlan_hdd_cfg80211.c
@@ -16498,6 +16498,10 @@ static int __wlan_hdd_cfg80211_add_key(struct wiphy *wiphy,
mac_handle = hdd_ctx->mac_handle;
+ cdp_peer_flush_frags(cds_get_context(QDF_MODULE_ID_SOC),
+ cds_get_context(QDF_MODULE_ID_TXRX),
+ adapter->vdev_id, set_key.peerMac.bytes);
+
switch (params->cipher) {
case WLAN_CIPHER_SUITE_WEP40:
set_key.encType = eCSR_ENCRYPT_TYPE_WEP40_STATICKEY;