Prechádzať zdrojové kódy

qcacld-3.0: 6 GHz STA profile contains HT and VHT capabilities

6 GHz STA profile contains HT and VHT capabilties in association
request when STA tries to associate 2.4 GHz + 6Ghz MLO connection.

Removed HT and VHT capability population from MLO IE preparation
when MLO connection is 2.4 GHz + 6 GHz.

Change-Id: Ie21723fb1f9c81404015a7de4f787447acbf9e90
CRs-Fixed: 3200099
sandeep puligilla 2 rokov pred
rodič
commit
f23e3d9c45

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

@@ -10302,7 +10302,8 @@ QDF_STATUS populate_dot11f_assoc_req_mlo_ie(struct mac_context *mac_ctx,
 						DOT11F_EID_SUPPRATES;
 		}
 
-		populate_dot11f_ht_caps(mac_ctx, NULL, &ht_caps);
+		if (!WLAN_REG_IS_6GHZ_CHAN_FREQ(chan_freq))
+			populate_dot11f_ht_caps(mac_ctx, NULL, &ht_caps);
 		if ((ht_caps.present && frm->HTCaps.present &&
 		     qdf_mem_cmp(&ht_caps, &frm->HTCaps, sizeof(ht_caps))) ||
 		     (ht_caps.present && !frm->HTCaps.present)) {
@@ -10348,7 +10349,8 @@ QDF_STATUS populate_dot11f_assoc_req_mlo_ie(struct mac_context *mac_ctx,
 			non_inher_ie_lists[non_inher_len++] = DOT11F_EID_EXTCAP;
 		}
 
-		populate_dot11f_vht_caps(mac_ctx, NULL, &vht_caps);
+		if (!WLAN_REG_IS_6GHZ_CHAN_FREQ(chan_freq))
+			populate_dot11f_vht_caps(mac_ctx, NULL, &vht_caps);
 		if ((vht_caps.present && frm->VHTCaps.present &&
 		     qdf_mem_cmp(&vht_caps, &frm->VHTCaps, sizeof(vht_caps))) ||
 		     (vht_caps.present && !frm->VHTCaps.present)) {