From 4371ee48f43eb62e1486dfaffe20babfd3e51704 Mon Sep 17 00:00:00 2001 From: Vinod Kumar Pirla Date: Fri, 24 Feb 2023 02:55:24 -0800 Subject: [PATCH] qcacld-3.0: Use link info pointer to cleanup prev bcn info To cleanup the beacon information of previous beacon per each link, change the function argument of following API. hdd_cleanup_prev_ap_bcn_ie(). Existing references are changed to deflink. Change-Id: I1cfb1562dd45696093417e2e2b8a018090810a18 CRs-Fixed: 3462479 --- core/hdd/src/wlan_hdd_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 8d33f1160f..45d56258b6 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -7332,20 +7332,20 @@ static inline void hdd_cleanup_he_operation_info(struct hdd_adapter *adapter) /** * hdd_cleanup_prev_ap_bcn_ie() - cleanup previous ap beacon ie - * @adapter: Adapter structure + * @link_info: pointer to link_info struct in adapter * * This function destroys previous ap beacon information * * Return: none */ -static void hdd_cleanup_prev_ap_bcn_ie(struct hdd_adapter *adapter) +static void hdd_cleanup_prev_ap_bcn_ie(struct wlan_hdd_link_info *link_info) { struct hdd_station_ctx *hdd_sta_ctx; struct element_info *bcn_ie; hdd_debug("cleanup previous ap bcn ie"); - hdd_sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter->deflink); + hdd_sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(link_info); bcn_ie = &hdd_sta_ctx->conn_info.prev_ap_bcn_ie; if (bcn_ie->ptr) { @@ -7358,7 +7358,7 @@ static void hdd_cleanup_prev_ap_bcn_ie(struct hdd_adapter *adapter) void hdd_cleanup_conn_info(struct hdd_adapter *adapter) { hdd_cleanup_he_operation_info(adapter); - hdd_cleanup_prev_ap_bcn_ie(adapter); + hdd_cleanup_prev_ap_bcn_ie(adapter->deflink); } /**