From acf22bf108934b77e9a704d8fe5f2446df832c71 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Sirasanagandla Date: Tue, 6 Jun 2017 13:27:56 +0530 Subject: [PATCH] qcacmn: Send proper CTL info to fw in world regd Currently, for world regd and some other regds where conformance test limit is NO_CTL, host is sending invalid CTL info to fw instead of NO_CTL (0xff) due to type conversion issues. To fix this, use proper unsigned type for CTL info. Change-Id: I0407d30c6cd6f7f485d767c97bc5381c9c731440 CRs-Fixed: 2056847 --- wmi_unified_api.h | 4 ++-- wmi_unified_priv.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 01dccc77d9..a2892873b0 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -790,8 +790,8 @@ QDF_STATUS wmi_unified_process_ch_avoid_update_cmd(void *wmi_hdl); QDF_STATUS wmi_unified_send_regdomain_info_to_fw_cmd(void *wmi_hdl, uint32_t reg_dmn, uint16_t regdmn2G, - uint16_t regdmn5G, int8_t ctl2G, - int8_t ctl5G); + uint16_t regdmn5G, uint8_t ctl2G, + uint8_t ctl5G); QDF_STATUS wmi_unified_set_tdls_offchan_mode_cmd(void *wmi_hdl, struct tdls_channel_switch_params *chan_switch_params); diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 65dc5bf1c1..86581f4e6a 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -652,8 +652,8 @@ QDF_STATUS (*send_process_ch_avoid_update_cmd)(wmi_unified_t wmi_handle); QDF_STATUS (*send_regdomain_info_to_fw_cmd)(wmi_unified_t wmi_handle, uint32_t reg_dmn, uint16_t regdmn2G, - uint16_t regdmn5G, int8_t ctl2G, - int8_t ctl5G); + uint16_t regdmn5G, uint8_t ctl2G, + uint8_t ctl5G); QDF_STATUS (*send_set_tdls_offchan_mode_cmd)(wmi_unified_t wmi_handle, struct tdls_channel_switch_params *chan_switch_params);