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
This commit is contained in:
Himanshu Batra
2020-03-03 14:29:38 +05:30
committed by nshrivas
parent 9ae1975ec5
commit ba2b72b351
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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)