1
0

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
Este cometimento está contido em:
Himanshu Batra
2020-03-03 14:29:38 +05:30
cometido por nshrivas
ascendente 9ae1975ec5
cometimento ba2b72b351
2 ficheiros modificados com 4 adições e 4 eliminações

Ver ficheiro

@@ -38,12 +38,12 @@
void wmi_vdev_attach_tlv(struct wmi_unified *wmi_handle); void wmi_vdev_attach_tlv(struct wmi_unified *wmi_handle);
#ifdef WLAN_BCN_RATECODE_ENABLE #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 #else
static inline void wmi_enable_bcn_ratecode(uint32_t cmd_flag) static inline void wmi_enable_bcn_ratecode(uint32_t *cmd_flag)
{ {
} }
#endif #endif

Ver ficheiro

@@ -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; cmd->bcn_tx_rate = req->bcn_tx_rate_code;
if (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->is_restart) {
if (req->pmf_enabled) if (req->pmf_enabled)