qcacld-3.0: clear sme open session event

In failure scenario sme session id is getting
reset but sme open session flag is not cleared.
Due to this scan rejected from host.

Clear the sme open session event in sme close
failure/timeout scenario.

Change-Id: I2cb91120947c38a25df508c376f0e1377717458f
CRs-Fixed: 1072820
This commit is contained in:
Sandeep Puligilla 2016-09-29 19:31:21 -07:00 • committed by qcabuildsw
commit ada729259f

View file

@ -3417,8 +3417,12 @@ static void hdd_wait_for_sme_close_sesion(hdd_context_t *hdd_ctx,
&adapter->session_close_comp_var,
msecs_to_jiffies
(WLAN_WAIT_TIME_SESSIONOPENCLOSE));
if (!rc)
if (!rc) {
hdd_err("failure waiting for session_close_comp_var");
if (adapter->device_mode == QDF_NDI_MODE)
hdd_ndp_session_end_handler(adapter);
clear_bit(SME_SESSION_OPENED, &adapter->event_flags);
}
}
}