Procházet zdrojové kódy

qcacld-3.0: Reject join if MLO link VDEV is in non-11be mode

If for any reason the link VDEV's dot11mode is not 11be then
the peer assoc params for partner VDEV will not be 11be but
the assoc VDEV is 11be which is invalid configuration.

If the intersected dot11mode of link VDEV is not 11be then
reject the connection.

Change-Id: I11abd9566ab5d392a8dba0d3dd34175375d622c9
CRs-Fixed: 3646629
Vinod Kumar Pirla před 1 rokem
rodič
revize
150ec003b0

+ 5 - 1
core/mac/src/pe/lim/lim_process_sme_req_messages.c

@@ -2792,11 +2792,15 @@ lim_fill_dot11_mode(struct mac_context *mac_ctx, struct pe_session *session,
 	if (QDF_IS_STATUS_ERROR(status))
 		return status;
 
-	session->dot11mode = intersected_mode;
 	pe_debug("vdev id %d opmode %d self dot11mode %d bss_dot11 mode %d intersected %d",
 		 session->vdev_id, session->opmode, self_dot11_mode,
 		 bss_dot11_mode, intersected_mode);
 
+	if (wlan_vdev_mlme_is_mlo_link_vdev(session->vdev) &&
+	    !IS_DOT11_MODE_EHT(intersected_mode))
+		return QDF_STATUS_E_INVAL;
+
+	session->dot11mode = intersected_mode;
 	lim_verify_dot11_mode_with_crypto(session);
 
 	return status;