浏览代码

qcacld-3.0: reset crypto params for vdev when disconnect from AP

Reset crypto params for vdev when disconnect from AP in STA mode,
otherwise, the params may be used in the next connection, which
may result in unexpected behaviors.

Change-Id: I144f360dc53f6717ad7a2b99ed3ae7c5574557df
CRs-Fixed: 2831488
Yu Wang 4 年之前
父节点
当前提交
a79e0ec623
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      core/hdd/src/wlan_hdd_assoc.c

+ 1 - 0
core/hdd/src/wlan_hdd_assoc.c

@@ -2021,6 +2021,7 @@ static QDF_STATUS hdd_dis_connect_handler(struct hdd_adapter *adapter,
 		vdev = hdd_objmgr_get_vdev_by_user(adapter, WLAN_OSIF_ID);
 		if (vdev) {
 			wlan_crypto_free_vdev_key(vdev);
+			wlan_crypto_reset_vdev_params(vdev);
 			hdd_objmgr_put_vdev_by_user(vdev, WLAN_OSIF_ID);
 		}
 	}