diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index c09add45dd11a..133c371eb396b 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -12274,8 +12274,7 @@ QDF_STATUS sme_pdev_set_pcl(struct policy_mgr_pcl_list *msg) sme_debug("Connected STA band %d", req_msg->band); } for (i = 0; i < msg->pcl_len; i++) { - req_msg->chan_weights.pcl_list[i] = wlan_freq_to_chan( - msg->pcl_list[i]); + req_msg->chan_weights.pcl_list[i] = msg->pcl_list[i]; req_msg->chan_weights.weight_list[i] = msg->weight_list[i]; } diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 8e3cded6dbaac..c957b4bfd4d7d 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -9043,8 +9043,7 @@ QDF_STATUS wma_send_pdev_set_pcl_cmd(tp_wma_handle wma_handle, for (i = 0; i < wma_handle->saved_chan.num_channels; i++) { msg->chan_weights.saved_chan_list[i] = - wlan_reg_freq_to_chan(wma_handle->pdev, - wma_handle->saved_chan.ch_freq_list[i]); + wma_handle->saved_chan.ch_freq_list[i]; } msg->chan_weights.saved_num_chan = wma_handle->saved_chan.num_channels; @@ -9068,7 +9067,7 @@ QDF_STATUS wma_send_pdev_set_pcl_cmd(tp_wma_handle wma_handle, msg->chan_weights.saved_chan_list[i])) msg->chan_weights.weighed_valid_list[i] = WEIGHT_OF_DISALLOWED_CHANNELS; - WMA_LOGD("%s: chan:%d weight[%d]=%d", __func__, + WMA_LOGD("%s: freq:%d weight[%d]=%d", __func__, msg->chan_weights.saved_chan_list[i], i, msg->chan_weights.weighed_valid_list[i]); }