Jelajahi Sumber

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
Bapiraju Alla 3 tahun lalu
induk
melakukan
f80288a690
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      core/hdd/src/wlan_hdd_main.c

+ 2 - 1
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))