Browse Source

qcacld-3.0: Fix about extended supported rate wrong

After starting SAP on channel 6, then issuing setChanChange
command. Per the sniffer log, the rate list of extended
supported rate is wrong in the beacon and probe response.

It is happens because in wlansap_fill_channel_change_request,
when it copies the extended supported rate list, it uses
parameter sizeof(dot11_cfg.ext_rates.numRates) instead of
dot11_cfg.ext_rates.numRates, so it only copies the first rate.

Change-Id: I7f23254fbd6ce56be69dbea634d9d99f3b611448
CRs-Fixed: 3345554
Paul Zhang 2 years ago
parent
commit
64e62fbb3d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/sap/src/sap_module.c

+ 1 - 1
core/sap/src/sap_module.c

@@ -1875,7 +1875,7 @@ wlansap_fill_channel_change_request(struct sap_context *sap_ctx,
 	if (dot11_cfg.ext_rates.numRates) {
 		qdf_mem_copy(req->ext_rates.rate,
 			     dot11_cfg.ext_rates.rate,
-			     sizeof(dot11_cfg.ext_rates.numRates));
+			     dot11_cfg.ext_rates.numRates);
 		qdf_mem_copy(sap_ctx->sap_bss_cfg.extendedRateSet.rate,
 			     dot11_cfg.ext_rates.rate,
 			     dot11_cfg.ext_rates.numRates);