Browse Source

qcacld-3.0: Send correct HE caps length

While sending HE caps to FW the length parameter is not
updated, resulting in incorrect value for 2 GHz.
To fix this initialize the HE caps length before sending
WMI_VDEV_SET_IE_PARAM_CMDID.

Change-Id: I2126e02f82f48a0b3110bc7e1dbee887d2f8b0db
CRs-Fixed: 3250116
Amruta Kulkarni 2 years ago
parent
commit
a2014b4353
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/mac/src/pe/lim/lim_utils.c

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

@@ -7811,6 +7811,7 @@ QDF_STATUS lim_send_he_caps_ie(struct mac_context *mac_ctx,
 		pe_err("Unable send HE Cap IE for 5GHZ band, status: %d",
 			status_5g);
 
+	he_caps[1] = SIR_MAC_HE_CAP_MIN_LEN;
 	lim_set_he_caps(mac_ctx, session, he_caps, he_cap_total_len,
 			CDS_BAND_2GHZ);
 	he_cap = (struct he_capability_info *)(&he_caps[2 + HE_CAP_OUI_SIZE]);