diff options
| author | Gupta, Kapil <kapgupta@qti.qualcomm.com> | 2016-06-16 18:19:20 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-06-17 12:17:28 +0530 |
| commit | 849fed458afd263d7b36a26e7ada615fdb7a29de (patch) | |
| tree | f630f1f6991092ee2f06148524cd841b95226e7c | |
| parent | b0a0b793c37c0d2b6046419f6629586e48a2af10 (diff) | |
qcacld-2.0: Correct compilation error for dhcp proto trace changes
vos_pkt_trace_buf_update() is not available in case
QCA_PKT_PROTO_TRACE is not defined.
Add dummy defination for hdd_dhcp_pkt_trace_buf_update() api to
correct this.
CRs-Fixed: 1029971
Change-Id: Id49390b21185c57878d1bf08d5db07230a0abd54
| -rw-r--r-- | CORE/HDD/inc/wlan_hdd_tx_rx.h | 8 | ||||
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_tx_rx.c | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/CORE/HDD/inc/wlan_hdd_tx_rx.h b/CORE/HDD/inc/wlan_hdd_tx_rx.h index ecff8e20c566..5d6a83e97baf 100644 --- a/CORE/HDD/inc/wlan_hdd_tx_rx.h +++ b/CORE/HDD/inc/wlan_hdd_tx_rx.h @@ -265,6 +265,14 @@ const char *hdd_action_type_to_string(enum netif_action_type action); void wlan_hdd_netif_queue_control(hdd_adapter_t *adapter, enum netif_action_type action, enum netif_reason_type reason); +#ifdef QCA_PKT_PROTO_TRACE void hdd_dhcp_pkt_trace_buf_update(struct sk_buff *skb, int is_transmission, int is_sta); +#else +static inline void hdd_dhcp_pkt_trace_buf_update(struct sk_buff *skb, + int is_transmission, int is_sta) +{ + return; +} +#endif #endif // end #if !defined( WLAN_HDD_TX_RX_H ) diff --git a/CORE/HDD/src/wlan_hdd_tx_rx.c b/CORE/HDD/src/wlan_hdd_tx_rx.c index 9a8e0298b008..e7138c51e0ac 100644 --- a/CORE/HDD/src/wlan_hdd_tx_rx.c +++ b/CORE/HDD/src/wlan_hdd_tx_rx.c @@ -1544,6 +1544,7 @@ void wlan_hdd_netif_queue_control(hdd_adapter_t *adapter, } +#ifdef QCA_PKT_PROTO_TRACE /** * hdd_dhcp_pkt_trace_buf_update() - Update protocol trace buffer with DHCP * packet info. @@ -1622,3 +1623,4 @@ void hdd_dhcp_pkt_trace_buf_update (struct sk_buff *skb, int is_transmission, FL("%s"), tbuf); } } +#endif |
