Browse Source

qcacld-3.0: Code clean up in lim_send_ht40_obss_scanind()

Remove wlan_reg_freq_to_chan() reference in
function lim_send_ht40_obss_scanind()

Change-Id: I776500a9f127b0837f9c1eef65b381cd89845622
CRs-Fixed: 2556403
Amruta Kulkarni 5 years ago
parent
commit
b4a567d28a
1 changed files with 2 additions and 8 deletions
  1. 2 8
      core/mac/src/pe/lim/lim_send_messages.c

+ 2 - 8
core/mac/src/pe/lim/lim_send_messages.c

@@ -473,9 +473,7 @@ QDF_STATUS lim_send_ht40_obss_scanind(struct mac_context *mac_ctx,
 	struct obss_ht40_scanind *ht40_obss_scanind;
 	uint32_t channelnum, chan_freq;
 	struct scheduler_msg msg = {0};
-	uint8_t chan_list[CFG_VALID_CHANNEL_LIST_LEN];
 	uint8_t channel24gnum, count;
-	uint8_t i;
 
 	ht40_obss_scanind = qdf_mem_malloc(sizeof(struct obss_ht40_scanind));
 	if (!ht40_obss_scanind)
@@ -507,17 +505,13 @@ QDF_STATUS lim_send_ht40_obss_scanind(struct mac_context *mac_ctx,
 			mac_ctx->pdev, session->curr_op_freq),
 			session->ch_width);
 	channelnum = mac_ctx->mlme_cfg->reg.valid_channel_list_num;
-	for (i = 0; i < channelnum; i++) {
-		chan_list[i] = wlan_reg_freq_to_chan(mac_ctx->pdev,
-						     mac_ctx->mlme_cfg->reg.valid_channel_freq_list[i]);
-	}
 
 	/* Extract 24G channel list */
 	channel24gnum = 0;
 	for (count = 0; count < channelnum &&
 		(channel24gnum < SIR_ROAM_MAX_CHANNELS); count++) {
-		chan_freq = wlan_reg_chan_to_freq(mac_ctx->pdev,
-						  chan_list[count]);
+		chan_freq =
+			mac_ctx->mlme_cfg->reg.valid_channel_freq_list[count];
 		if (wlan_reg_is_24ghz_ch_freq(chan_freq)) {
 			ht40_obss_scanind->chan_freq_list[channel24gnum] =
 				chan_freq;