瀏覽代碼

qcacld-3.0: Check sap restart after updated active session

When do re-association, there is obsolete data exists in policy manager
until hdd_association_completion_handler updates the active session.
If check sap restart before this, will access the wrong data.

Change-Id: Ie62f86a5d523e70b6bb81b500bd358b63ae90ea8
CRs-Fixed: 2231675
Frank Liu 7 年之前
父節點
當前提交
064ebd4a01
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      core/hdd/src/wlan_hdd_assoc.c

+ 3 - 4
core/hdd/src/wlan_hdd_assoc.c

@@ -2913,10 +2913,6 @@ hdd_association_completion_handler(struct hdd_adapter *adapter,
 			return QDF_STATUS_E_FAILURE;
 		}
 
-		hdd_debug("check for SAP restart");
-		policy_mgr_check_concurrent_intf_and_restart_sap(
-			hdd_ctx->hdd_psoc);
-
 		DPTRACE(qdf_dp_trace_mgmt_pkt(QDF_DP_TRACE_MGMT_PACKET_RECORD,
 			adapter->session_id,
 			QDF_TRACE_DEFAULT_PDEV_ID,
@@ -3286,6 +3282,9 @@ hdd_association_completion_handler(struct hdd_adapter *adapter,
 		qdf_mem_zero(&adapter->hdd_stats.hdd_pmf_stats,
 			     sizeof(adapter->hdd_stats.hdd_pmf_stats));
 #endif
+		hdd_debug("check for SAP restart");
+		policy_mgr_check_concurrent_intf_and_restart_sap(
+			hdd_ctx->hdd_psoc);
 	} else {
 		bool connect_timeout = false;