From e8e4d97c7f3ece7a94f93f9f7e4b2f8398632353 Mon Sep 17 00:00:00 2001 From: Utkarsh Bhatnagar Date: Wed, 3 Mar 2021 20:01:42 +0530 Subject: [PATCH] qcacld-3.0: Reset RSN IE for every connect Reset RSN IE for every Connect. This RSN IE will be overwritten with RSN IE if present. If we don't reset then connect will use PMF capability in RSN IE from previous connection and will expect Deauth frame to be protected even if connection is open. Change-Id: I626ceb831556d17cd185a050b28d8d7a19344e68 CRs-Fixed: 2890563 --- core/hdd/src/wlan_hdd_cfg80211.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 1eba2c5b683a..35537fbb79d5 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -19720,6 +19720,9 @@ static void hdd_populate_crypto_params(struct wlan_objmgr_vdev *vdev, { uint32_t set_val = 0; + /* Resetting the RSN caps for every connection */ + wlan_crypto_set_vdev_param(vdev, WLAN_CRYPTO_PARAM_RSN_CAP, set_val); + if (req->crypto.n_akm_suites) { hdd_populate_crypto_akm_type(vdev, req->crypto.akm_suites[0]); } else {