qcacld-3.0: clear obsolete keys before connect start

Freeing keys in scheduler thread may cause race condition,
to avoid that, clear the obsolete keys before starting a
new connection in wpa_supplicant context.

Change-Id: Ibeecadb117bca8f88ce5dc052bcebe92423ace22
CRs-Fixed: 2872831
This commit is contained in:
Yu Wang 2021-02-10 07:51:15 +08:00 • committed by snandini
commit 9f58d36f67
2 changed files with 1 additions and 1 deletions

View file

@ -2043,7 +2043,6 @@ static QDF_STATUS hdd_dis_connect_handler(struct hdd_adapter *adapter,
if (adapter->device_mode == QDF_STA_MODE) {
vdev = hdd_objmgr_get_vdev(adapter);
if (vdev) {
wlan_crypto_free_vdev_key(vdev);
wlan_crypto_reset_vdev_params(vdev);
hdd_objmgr_put_vdev(vdev);
}

View file

@ -19835,6 +19835,7 @@ static void hdd_populate_crypto_params(struct wlan_objmgr_vdev *vdev,
}
hdd_populate_crypto_auth_type(vdev, req);
wlan_crypto_free_vdev_key(vdev);
}
#ifdef FEATURE_WLAN_WAPI