From 30ea188f11d49c81401887d5faf9f1488d735501 Mon Sep 17 00:00:00 2001 From: Manikandan Mohan Date: Wed, 28 Aug 2019 14:42:12 -0700 Subject: [PATCH] qcacmn: Update set pcl handling for channel frequency Due to channel number ambiguity with introduction of 6Ghz support policy manager APIs are updated to use frequency values instead of channel number. Update set pcl WMI handling to adapt for frequency usage. Change-Id: I69bac781036ed9faee8842190d9bf19abca3ec61 CRs-fixed: 2540002 --- wmi/inc/wmi_unified_sta_param.h | 8 ++++---- wmi/src/wmi_unified_sta_tlv.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wmi/inc/wmi_unified_sta_param.h b/wmi/inc/wmi_unified_sta_param.h index 14eca73439..b3efebd753 100644 --- a/wmi/inc/wmi_unified_sta_param.h +++ b/wmi/inc/wmi_unified_sta_param.h @@ -276,9 +276,9 @@ struct flashing_req_params { /** * struct wmi_pcl_chan_weights - Params to get the valid weighed list - * @pcl_list: Preferred channel list already sorted in the order of preference + * @pcl_list: channel freq list sorted in preferred order * @pcl_len: Length of the PCL - * @saved_chan_list: Valid channel list updated as part of + * @saved_chan_list: Valid channel freq list updated as part of * WMA_UPDATE_CHAN_LIST_REQ * @saved_num_chan: Length of the valid channel list * @weighed_valid_list: Weights of the valid channel list. This will have one @@ -287,9 +287,9 @@ struct flashing_req_params { * @weight_list: Weights assigned by policy manager */ struct wmi_pcl_chan_weights { - uint8_t pcl_list[MAX_NUM_CHAN]; + uint32_t pcl_list[MAX_NUM_CHAN]; uint32_t pcl_len; - uint8_t saved_chan_list[MAX_NUM_CHAN]; + uint32_t saved_chan_list[MAX_NUM_CHAN]; uint32_t saved_num_chan; uint8_t weighed_valid_list[MAX_NUM_CHAN]; uint8_t weight_list[MAX_NUM_CHAN]; diff --git a/wmi/src/wmi_unified_sta_tlv.c b/wmi/src/wmi_unified_sta_tlv.c index baa648ee89..f41c32ece4 100644 --- a/wmi/src/wmi_unified_sta_tlv.c +++ b/wmi/src/wmi_unified_sta_tlv.c @@ -1958,7 +1958,7 @@ static QDF_STATUS send_pdev_set_pcl_cmd_tlv(wmi_unified_t wmi_handle, cmd_args = (uint32_t *) (buf_ptr + WMI_TLV_HDR_SIZE); for (i = 0; i < chan_len ; i++) { cmd_args[i] = msg->weighed_valid_list[i]; - WMI_LOGD("%s: chan:%d weight:%d", __func__, + WMI_LOGD("%s: freq:%d weight:%d", __func__, msg->saved_chan_list[i], cmd_args[i]); } wmi_mtrace(WMI_PDEV_SET_PCL_CMDID, NO_SESSION, 0);