소스 검색

qcacld-3.0: Initialize the MIC work for link adapters as well

Currently MIC work/spinlock are getting registered for the MLO
adapter only, during interface down driver is trying to flush
an uninitialized work acquiring uninitialized spinlock this will
result in system instability.

Initialize the MIC work for the link adapters.

CRs-Fixed: 3177796
Change-Id: I975bbe2e57e6b5988b78c1c91107b8a1f2bcbe8a
Arun Kumar Khandavalli 3 년 전
부모
커밋
93d9a32c30
1개의 변경된 파일9개의 추가작업 그리고 11개의 파일을 삭제
  1. 9 11
      core/hdd/src/wlan_hdd_main.c

+ 9 - 11
core/hdd/src/wlan_hdd_main.c

@@ -7282,20 +7282,18 @@ struct hdd_adapter *hdd_open_adapter(struct hdd_context *hdd_ctx,
 #endif
 		if (params->only_wdev_register) {
 			hdd_register_wdev(sta_adapter, adapter, params);
-			break;
-		}
-
-		status = hdd_register_interface(adapter, rtnl_held, params);
-		if (QDF_STATUS_SUCCESS != status)
-			goto err_destroy_dp_intf;
-
-		/* Stop the Interface TX queue. */
-		hdd_debug("Disabling queues");
-		wlan_hdd_netif_queue_control(adapter,
+		} else {
+			status = hdd_register_interface(adapter, rtnl_held,
+							params);
+			if (QDF_STATUS_SUCCESS != status)
+				goto err_destroy_dp_intf;
+			/* Stop the Interface TX queue. */
+			hdd_debug("Disabling queues");
+			wlan_hdd_netif_queue_control(adapter,
 					WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER,
 					WLAN_CONTROL_PATH);
+		}
 		break;
-
 	case QDF_P2P_GO_MODE:
 	case QDF_SAP_MODE:
 		adapter = hdd_wlan_create_ap_dev(hdd_ctx, mac_addr,