qcacmn: Fix to not send T2LM info multiple times

Currently host is sending t2lm info to firmware multiple
times when mapping switch time expires.
Fix is to check if new beacon/prb response has updated
mapping before sending the t2lm information.

Change-Id: I10182652bf77ede2dd94bedbc1c3a76a6bc3a7ff
CRs-Fixed: 3438997
This commit is contained in:
Amruta Kulkarni
2023-04-17 10:45:52 -07:00
committed by Madan Koyyalamudi
vanhempi 5e217e2980
commit 586ea4f8b0

Näytä tiedosto

@@ -1192,6 +1192,14 @@ static QDF_STATUS wlan_update_mapping_switch_time_expected_dur(
}
} else if (rx_t2lm->established_t2lm.t2lm.expected_duration_present &&
!rx_t2lm->established_t2lm.t2lm.mapping_switch_time_present) {
if (!qdf_mem_cmp(t2lm_ctx->established_t2lm.t2lm.ieee_link_map_tid,
rx_t2lm->upcoming_t2lm.t2lm.ieee_link_map_tid,
sizeof(uint16_t) * T2LM_MAX_NUM_TIDS)) {
t2lm_debug("T2LM mapping is already configured");
t2lm_dev_lock_release(t2lm_ctx);
return QDF_STATUS_E_ALREADY;
}
/* Mapping switch time is already expired when STA receives the
* T2LM IE from beacon/probe response frame.
*/