From f80288a690eb2d9c59769445cc02fdb14b489151 Mon Sep 17 00:00:00 2001 From: Bapiraju Alla Date: Fri, 25 Feb 2022 15:28:19 +0530 Subject: [PATCH] qcacld-3.0: Unregister MLO interfaces for both STA and SAP modes Currently, unregister MLO interfaces is being called only for STA mode. This may cause issue when there is a change interface in between from STA to SAP and driver unload after that. In this case STA MLO interfaces won't be unregistered. To resolve this, unregister MLO interfaces both for STA and SAP modes. Change-Id: Ia1020f08873edc6e29ae20df7368da10535a9de5 CRs-Fixed: 3137421 --- core/hdd/src/wlan_hdd_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index c66d2739bf..3e58316855 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -7852,7 +7852,8 @@ void hdd_close_all_adapters(struct hdd_context *hdd_ctx, bool rtnl_held) while (QDF_IS_STATUS_SUCCESS(hdd_get_front_adapter( hdd_ctx, &adapter))) { /* If MLO is enabled unregister the link wdev's */ - if (adapter->device_mode == QDF_STA_MODE) { + if (adapter->device_mode == QDF_STA_MODE || + adapter->device_mode == QDF_SAP_MODE) { qdf_status = hdd_wlan_unregister_mlo_interfaces(adapter, rtnl_held); if (QDF_IS_STATUS_ERROR(qdf_status))