Parcourir la source

qcacld-3.0: Fix EHT IE missing on sta profile

Populate EHT IE based on band of mlo link. Currently
driver only populate it for 2 GHz AP, extend it to 5 GHz
AP as well.

Change-Id: Ib60d6c4f96546f87ec2ea44780e65cd730169b20
CRs-Fixed: 3298778
Liangwei Dong il y a 2 ans
Parent
commit
6489476382

+ 3 - 0
core/mac/src/pe/lim/lim_utils.c

@@ -8419,6 +8419,9 @@ lim_revise_req_eht_cap_per_band(struct mlme_legacy_priv *mlme_priv,
 	if (wlan_reg_is_24ghz_ch_freq(session->curr_op_freq)) {
 		mlme_priv->eht_config = mac->eht_cap_2g;
 		pe_debug("revise 2G eht cap");
+	} else {
+		mlme_priv->eht_config = mac->eht_cap_5g;
+		pe_debug("revise 5G eht cap");
 	}
 }
 

+ 4 - 0
core/mac/src/sys/legacy/src/utils/src/parser_api.c

@@ -8836,6 +8836,7 @@ populate_dot11f_eht_caps_by_band(struct mac_context *mac_ctx,
 				 bool is_2g,
 				 tDot11fIEeht_cap *eht_cap)
 {
+	pe_debug("is_2g %d", is_2g);
 	if (is_2g)
 		qdf_mem_copy(eht_cap,
 			     &mac_ctx->eht_cap_2g,
@@ -11478,8 +11479,11 @@ QDF_STATUS populate_dot11f_assoc_req_mlo_ie(struct mac_context *mac_ctx,
 				pe_err("malloc failed for eht_cap_ie");
 			}
 		} else if (frm->eht_cap.present && !eht_caps.present) {
+			pe_debug("eht non inher");
 			non_inher_ext_ie_lists[non_inher_ext_len++] =
 						WLAN_EXTN_ELEMID_EHTCAP;
+		} else {
+			pe_debug("eht ie not included");
 		}
 
 		populate_dot11f_non_inheritance(