Browse Source

qcacmn: Fix compilation issue for Hamiltion

Avoid setting TCL_R0_CMN_CONFIG register if this is
not defined in HW headers

Change-Id: I8fec6a5637deca8545da00fc8c631c0e26ba9a1e
Chaithanya Garrepalli 3 years ago
parent
commit
7387592290
1 changed files with 8 additions and 0 deletions
  1. 8 0
      hal/wifi3.0/be/hal_be_tx.h

+ 8 - 0
hal/wifi3.0/be/hal_be_tx.h

@@ -725,6 +725,7 @@ hal_tx_vdev_mcast_ctrl_set(hal_soc_handle_t hal_soc_hdl,
  *
  * Return: void
  */
+#ifdef HWIO_TCL_R0_CMN_CONFIG_VDEVID_MISMATCH_EXCEPTION_BMSK
 static inline void
 hal_tx_vdev_mismatch_routing_set(hal_soc_handle_t hal_soc_hdl,
 				 enum hal_tx_vdev_mismatch_notify config)
@@ -746,4 +747,11 @@ hal_tx_vdev_mismatch_routing_set(hal_soc_handle_t hal_soc_hdl,
 
 	HAL_REG_WRITE(hal_soc, reg_addr, reg_val);
 }
+#else
+static inline void
+hal_tx_vdev_mismatch_routing_set(hal_soc_handle_t hal_soc_hdl,
+				 enum hal_tx_vdev_mismatch_notify config)
+{
+}
+#endif
 #endif /* _HAL_BE_TX_H_ */