Эх сурвалжийг харах

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
Amruta Kulkarni 2 жил өмнө
parent
commit
586ea4f8b0

+ 8 - 0
umac/mlo_mgr/src/wlan_mlo_t2lm.c

@@ -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.
 		 */