Procházet zdrojové kódy

qcacld-3.0: Fix gEnableVhtFor24GHzBand reference comment

In lim_send_probe_req_mgmt_frame() there is logic to change the
dot11mode from 11ac to 11n when operating in 2.4GHz unless VHT
operation in 2.4GHz has been enabled in the INI. However the
associated comment has a typo, referring to enableVhtFor24GHz instead
of the correct name, gEnableVhtFor24GHzBand, so fix the comment.

Change-Id: I56c569d85cac7e00347bea522d2f6f133e276cfb
CRs-Fixed: 2382130
Jeff Johnson před 6 roky
rodič
revize
919f2c3a82

+ 7 - 4
core/mac/src/pe/lim/lim_send_management_frames.c

@@ -172,7 +172,8 @@ lim_send_probe_req_mgmt_frame(struct mac_context *mac_ctx,
 			      uint8_t channel,
 			      tSirMacAddr self_macaddr,
 			      uint32_t dot11mode,
-			      uint16_t *additional_ielen, uint8_t *additional_ie)
+			      uint16_t *additional_ielen,
+			      uint8_t *additional_ie)
 {
 	tDot11fProbeRequest pr;
 	uint32_t status, bytes, payload;
@@ -195,9 +196,11 @@ lim_send_probe_req_mgmt_frame(struct mac_context *mac_ctx,
 	if (additional_ielen)
 		addn_ielen = *additional_ielen;
 
-	/* The probe req should not send 11ac capabilieties if band is 2.4GHz,
-	 * unless enableVhtFor24GHz is enabled in INI. So if enableVhtFor24GHz
-	 * is false and dot11mode is 11ac set it to 11n.
+	/*
+	 * The probe req should not send 11ac capabilities if band is
+	 * 2.4GHz, unless gEnableVhtFor24GHzBand is enabled in INI. So
+	 * if gEnableVhtFor24GHzBand is false and dot11mode is 11ac
+	 * set it to 11n.
 	 */
 	if (channel <= SIR_11B_CHANNEL_END &&
 	    !mac_ctx->mlme_cfg->vht_caps.vht_cap_info.b24ghz_band &&