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
This commit is contained in:
Frank Liu 2018-05-03 14:22:39 +08:00 • committed by nshrivas
commit 064ebd4a01

View file

@ -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;