From 8ed432bbaa9c8be8e142fa5d3cb5726e3d7c51dd Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Tue, 18 Sep 2018 12:41:38 +0530 Subject: [PATCH] qcacld-3.0: Cache last connection info correctly Currently copy of the last connection info is done incorrectly inside hdd_save_bss_info api. To address this issue update the memcopy with the correct structure. Change-Id: Ibc604650cd1d39c7b19619057427955ba3e4026f CRs-Fixed: 2307526 --- core/hdd/src/wlan_hdd_assoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index dd841baf850f..9739157d5fcf 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -928,7 +928,7 @@ static void hdd_save_bss_info(struct hdd_adapter *adapter, } /* Cache last connection info */ qdf_mem_copy(&hdd_sta_ctx->cache_conn_info, &hdd_sta_ctx->conn_info, - sizeof(struct connection_info)); + sizeof(struct hdd_connection_info)); } /**