浏览代码

qcacmn: unregister link switch cb before mlo global ctx deinit

Unregister mlo mgr link switch cb before mlo global ctx deinit
because the cb is maintained by global ctx.

Change-Id: I2bd95e74e9067e19db7448510bc6255c3bd7a1f3
CRs-Fixed: 3604403
Liangwei Dong 1 年之前
父节点
当前提交
cab8f71b14
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      umac/mlo_mgr/src/wlan_mlo_mgr_main.c

+ 2 - 1
umac/mlo_mgr/src/wlan_mlo_mgr_main.c

@@ -416,6 +416,8 @@ QDF_STATUS wlan_mlo_mgr_deinit(void)
 		return QDF_STATUS_E_FAILURE;
 	}
 
+	wlan_mlo_mgr_unregister_link_switch_notifier(WLAN_UMAC_COMP_MLO_MGR);
+
 	mlo_global_ctx_deinit();
 
 	status = wlan_objmgr_unregister_vdev_create_handler(
@@ -430,7 +432,6 @@ QDF_STATUS wlan_mlo_mgr_deinit(void)
 	if (status != QDF_STATUS_SUCCESS)
 		mlo_err("Failed to unregister vdev delete handler");
 
-	wlan_mlo_mgr_unregister_link_switch_notifier(WLAN_UMAC_COMP_MLO_MGR);
 	return status;
 }