From ba2b72b3513e44bda45967e0d76bbdae83dca2b8 Mon Sep 17 00:00:00 2001 From: Himanshu Batra Date: Tue, 3 Mar 2020 14:29:38 +0530 Subject: [PATCH] qcacmn: Update the wmi flags for bcn rate code In the current implementation the wmi cmd flags to enable bcn rate code n start req are not getting updated as the flag param is passed to the API by value and not by reference. Update the API argumets to pass the wmi cmd flag param by reference. Change-Id: I8bca4ce78ce68f7b0d05af871641a86bf6622607 CRs-Fixed: 2633704 --- wmi/inc/wmi_unified_vdev_tlv.h | 6 +++--- wmi/src/wmi_unified_tlv.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wmi/inc/wmi_unified_vdev_tlv.h b/wmi/inc/wmi_unified_vdev_tlv.h index 546d54f231..57305a157c 100644 --- a/wmi/inc/wmi_unified_vdev_tlv.h +++ b/wmi/inc/wmi_unified_vdev_tlv.h @@ -38,12 +38,12 @@ void wmi_vdev_attach_tlv(struct wmi_unified *wmi_handle); #ifdef WLAN_BCN_RATECODE_ENABLE -static inline void wmi_enable_bcn_ratecode(uint32_t cmd_flag) +static inline void wmi_enable_bcn_ratecode(uint32_t *cmd_flag) { - cmd_flag |= WMI_UNIFIED_VDEV_START_BCN_TX_RATE_PRESENT; + *cmd_flag |= WMI_UNIFIED_VDEV_START_BCN_TX_RATE_PRESENT; } #else -static inline void wmi_enable_bcn_ratecode(uint32_t cmd_flag) +static inline void wmi_enable_bcn_ratecode(uint32_t *cmd_flag) { } #endif diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 986f61972f..125971ad81 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -1009,7 +1009,7 @@ static QDF_STATUS send_vdev_start_cmd_tlv(wmi_unified_t wmi_handle, cmd->bcn_tx_rate = req->bcn_tx_rate_code; if (req->bcn_tx_rate_code) - wmi_enable_bcn_ratecode(cmd->flags); + wmi_enable_bcn_ratecode(&cmd->flags); if (!req->is_restart) { if (req->pmf_enabled)