Parcourir la source

qcacld-3.0: Add check for valid t2lm ie direction

When validating t2lm ie, check if the direction is valid.

Change-Id: I5eaa5e67653960647ebb65a57690692dd95ad6f3
CRs-Fixed: 3575491
Amruta Kulkarni il y a 1 an
Parent
commit
b37953bc1c
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      components/umac/mlme/mlo_mgr/src/wlan_t2lm_api.c

+ 3 - 1
components/umac/mlme/mlo_mgr/src/wlan_t2lm_api.c

@@ -87,8 +87,10 @@ bool t2lm_is_valid_t2lm_link_map(struct wlan_objmgr_vdev *vdev,
 		    WLAN_T2LM_INVALID_DIRECTION)
 			continue;
 
-		if (t2lm->t2lm_info[dir].default_link_mapping) {
+		if (t2lm->t2lm_info[dir].default_link_mapping &&
+		    t2lm->t2lm_info[dir].direction == WLAN_T2LM_BIDI_DIRECTION) {
 			is_valid_link_mask = true;
+			*valid_dir = dir;
 			continue;
 		}