Pārlūkot izejas kodu

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
Himanshu Batra 5 gadi atpakaļ
vecāks
revīzija
ba2b72b351
2 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 3 3
      wmi/inc/wmi_unified_vdev_tlv.h
  2. 1 1
      wmi/src/wmi_unified_tlv.c

+ 3 - 3
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

+ 1 - 1
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)