Prechádzať zdrojové kódy

qcacld-3.0: Add check for join req and num of partner links

If join req, num of partner links is not valid
do not send ML probe request.

Change-Id: I98f328d6fae9154415b7f903ed7d6dc835ce042a
CRs-Fixed: 3319901
sandhu 2 rokov pred
rodič
commit
59adff8583

+ 18 - 1
core/mac/src/pe/lim/lim_send_management_frames.c

@@ -230,6 +230,16 @@ lim_populate_ml_probe_req(struct mac_context *mac,
 
 	return QDF_STATUS_SUCCESS;
 }
+
+static bool
+lim_check_join_req_and_num_of_partner_link(struct pe_session *session)
+{
+	if (session && session->lim_join_req &&
+	    session->lim_join_req->partner_info.num_partner_links)
+		return true;
+
+	return false;
+}
 #else
 static QDF_STATUS
 lim_populate_ml_probe_req(struct mac_context *mac,
@@ -239,6 +249,12 @@ lim_populate_ml_probe_req(struct mac_context *mac,
 {
 	return QDF_STATUS_E_NOSUPPORT;
 }
+
+static bool
+lim_check_join_req_and_num_of_partner_link(struct pe_session *session)
+{
+	return false;
+}
 #endif
 
 /**
@@ -435,7 +451,8 @@ lim_send_probe_req_mgmt_frame(struct mac_context *mac_ctx,
 	populate_dot11f_he_6ghz_cap(mac_ctx, pesession,
 				    &pr->he_6ghz_band_cap);
 
-	if (IS_DOT11_MODE_EHT(dot11mode) && pesession) {
+	if (IS_DOT11_MODE_EHT(dot11mode) && pesession &&
+	    lim_check_join_req_and_num_of_partner_link(pesession)) {
 		lim_update_session_eht_capable(mac_ctx, pesession);
 		lim_populate_ml_probe_req(mac_ctx, pesession,
 					  &ml_probe_req_ie,