Forráskód Böngészése

qcacld-3.0: update sap_ctx->ch_params after channel is selected

Old ch_width is set as invalid after radar detection, and can't be
used anymore. Update sap_ctx->ch_params after channel is selected.

Change-Id: I9e068785312d7072eeaeaa4b1aae4bd82d62d36f
CRs-Fixed: 2178586
bings 7 éve
szülő
commit
1f55b66040
1 módosított fájl, 5 hozzáadás és 2 törlés
  1. 5 2
      core/sap/src/sap_fsm.c

+ 5 - 2
core/sap/src/sap_fsm.c

@@ -972,8 +972,11 @@ static uint8_t sap_random_channel_sel(struct sap_context *sap_ctx)
 				(void *)eSAP_STATUS_SUCCESS);
 		return 0;
 	}
-	mac_ctx->sap.SapDfsInfo.new_chanWidth = ch_wd;
-
+	mac_ctx->sap.SapDfsInfo.new_chanWidth = ch_params->ch_width;
+	sap_ctx->ch_params.ch_width = ch_params->ch_width;
+	sap_ctx->ch_params.sec_ch_offset = ch_params->sec_ch_offset;
+	sap_ctx->ch_params.center_freq_seg0 = ch_params->center_freq_seg0;
+	sap_ctx->ch_params.center_freq_seg1 = ch_params->center_freq_seg1;
 	return ch;
 }