mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
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:
parent
60f61be049
commit
9f58d36f67
2 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue