summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/mac/src/pe/lim/lim_link_monitoring_algo.c4
-rw-r--r--core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c10
2 files changed, 8 insertions, 6 deletions
diff --git a/core/mac/src/pe/lim/lim_link_monitoring_algo.c b/core/mac/src/pe/lim/lim_link_monitoring_algo.c
index 9d7b9fe9d936..57f00e48abd3 100644
--- a/core/mac/src/pe/lim/lim_link_monitoring_algo.c
+++ b/core/mac/src/pe/lim/lim_link_monitoring_algo.c
@@ -491,7 +491,9 @@ void lim_handle_heart_beat_failure(tpAniSirGlobal mac_ctx,
/* for searching AP, we don't include any more IE */
lim_send_probe_req_mgmt_frame(mac_ctx, &session->ssId,
session->bssId, curr_chan, session->selfMacAddr,
- session->dot11mode, 0, NULL);
+ session->dot11mode,
+ session->pLimJoinReq->addIEScan.length,
+ session->pLimJoinReq->addIEScan.addIEdata);
} else {
lim_log(mac_ctx, LOGW,
FL("HB missed from AP on DFS chanel moving to passive"));
diff --git a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c
index bd61bb43c4a0..ed7eb00abe27 100644
--- a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c
+++ b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c
@@ -1372,6 +1372,8 @@ lim_handle_sme_join_result(tpAniSirGlobal mac_ctx,
* to SME
*/
lim_cleanup_rx_path(mac_ctx, sta_ds, session_entry);
+ qdf_mem_free(session_entry->pLimJoinReq);
+ session_entry->pLimJoinReq = NULL;
/* Cleanup if add bss failed */
if (session_entry->add_bss_failed) {
dph_delete_hash_entry(mac_ctx,
@@ -1379,15 +1381,13 @@ lim_handle_sme_join_result(tpAniSirGlobal mac_ctx,
&session_entry->dph.dphHashTable);
goto error;
}
- qdf_mem_free(session_entry->pLimJoinReq);
- session_entry->pLimJoinReq = NULL;
return;
}
+ qdf_mem_free(session_entry->pLimJoinReq);
+ session_entry->pLimJoinReq = NULL;
}
error:
- qdf_mem_free(session_entry->pLimJoinReq);
- session_entry->pLimJoinReq = NULL;
- /* Delete teh session if JOIN failure occurred. */
+ /* Delete the session if JOIN failure occurred. */
if (result_code != eSIR_SME_SUCCESS) {
if (lim_set_link_state
(mac_ctx, eSIR_LINK_DOWN_STATE,