소스 검색

qcacld-3.0: Remove check for num of partner links

Remove check for num of partner links before adding
ml ie element and eht capabilities. Single link be
connection should have ml ie element.

Change-Id: Ib88472f551af0971ef7d729f7c953bdc0aa7c89c
CRs-Fixed: 3376377
sandhu 2 년 전
부모
커밋
e0f030a157
1개의 변경된 파일2개의 추가작업 그리고 18개의 파일을 삭제
  1. 2 18
      core/mac/src/pe/lim/lim_send_management_frames.c

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

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2011-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -230,16 +230,6 @@ 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,
@@ -249,12 +239,6 @@ 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
 
 /**
@@ -452,7 +436,7 @@ lim_send_probe_req_mgmt_frame(struct mac_context *mac_ctx,
 				    &pr->he_6ghz_band_cap);
 
 	if (IS_DOT11_MODE_EHT(dot11mode) && pesession &&
-	    lim_check_join_req_and_num_of_partner_link(pesession)) {
+			pesession->lim_join_req) {
 		lim_update_session_eht_capable(mac_ctx, pesession);
 		lim_populate_ml_probe_req(mac_ctx, pesession,
 					  &ml_probe_req_ie,