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.

Change-Id: I5ab88fd1bc5936e2aa0910f859fa222873d4e295
CVE-Fixed: CVE-2020-24587
Mot-CRs-fixed: (CR)
CRs-Fixed: 2875950
Reviewed-on: https://gerrit.mot.com/1929642
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Bin Liu <liubin7@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Yeshwanth Sriram Guntuka 2021-02-01 19:51:31 +05:30 • committed by panyq6
commit e95eba2bdd

View file

@ -18753,6 +18753,9 @@ static int __wlan_hdd_cfg80211_add_key(struct wiphy *wiphy,
cdp_peer_flush_frags(cds_get_context(QDF_MODULE_ID_SOC),
wlan_vdev_get_id(vdev), mac_address.bytes);
cdp_peer_flush_frags(cds_get_context(QDF_MODULE_ID_SOC),
wlan_vdev_get_id(vdev), mac_address.bytes);
switch (adapter->device_mode) {
case QDF_SAP_MODE:
case QDF_P2P_GO_MODE: