Explorar el Código

qcacmn: Use NO_RX_PKT_HDR_TLV macro for pkt_hdr_tlv APIs

Use NO_RX_PKT_HDR_TLV macro for APIs using pkt_hdr_tlv component.

Change-Id: I62ecd95ef807d153a0b7eb11350eee26ac4d76fb
CRs-Fixed: 3159944
Pavankumar Nandeshwar hace 3 años
padre
commit
90a5ae3aaa
Se han modificado 2 ficheros con 16 adiciones y 0 borrados
  1. 2 0
      hal/wifi3.0/be/hal_be_rx_tlv.h
  2. 14 0
      hal/wifi3.0/qcn9224/hal_9224.c

+ 2 - 0
hal/wifi3.0/be/hal_be_rx_tlv.h

@@ -1703,10 +1703,12 @@ static inline uint32_t hal_rx_mpdu_start_offset_get_generic(void)
 	return RX_PKT_TLV_OFFSET(mpdu_start_tlv);
 }
 
+#ifndef NO_RX_PKT_HDR_TLV
 static inline  uint32_t hal_rx_pkt_tlv_offset_get_generic(void)
 {
 	return RX_PKT_TLV_OFFSET(pkt_hdr_tlv);
 }
+#endif
 
 #ifdef RECEIVE_OFFLOAD
 static inline int

+ 14 - 0
hal/wifi3.0/qcn9224/hal_9224.c

@@ -1430,6 +1430,7 @@ hal_rx_flow_setup_fse_9224(uint8_t *rx_fst, uint32_t table_offset,
 	return fse;
 }
 
+#ifndef NO_RX_PKT_HDR_TLV
 /**
  * hal_rx_dump_pkt_hdr_tlv: dump RX pkt header TLV in hex format
  * @ pkt_hdr_tlv: pointer the pkt_hdr_tlv in pkt.
@@ -1451,6 +1452,19 @@ static inline void hal_rx_dump_pkt_hdr_tlv_9224(struct rx_pkt_tlvs *pkt_tlvs,
 	hal_verbose_hex_dump(pkt_hdr_tlv->rx_pkt_hdr,
 			     sizeof(pkt_hdr_tlv->rx_pkt_hdr));
 }
+#else
+/**
+ * hal_rx_dump_pkt_hdr_tlv: dump RX pkt header TLV in hex format
+ * @ pkt_hdr_tlv: pointer the pkt_hdr_tlv in pkt.
+ * @ dbg_level: log level.
+ *
+ * Return: void
+ */
+static inline void hal_rx_dump_pkt_hdr_tlv_9224(struct rx_pkt_tlvs *pkt_tlvs,
+						uint8_t dbg_level)
+{
+}
+#endif
 
 /*
  * hal_tx_dump_ppe_vp_entry_9224()