diff --git a/core/hdd/src/wlan_hdd_tx_rx.c b/core/hdd/src/wlan_hdd_tx_rx.c index fb482c2b05..bafe181013 100644 --- a/core/hdd/src/wlan_hdd_tx_rx.c +++ b/core/hdd/src/wlan_hdd_tx_rx.c @@ -1949,6 +1949,24 @@ QDF_STATUS hdd_rx_pkt_thread_enqueue_cbk(void *adapter, return dp_rx_enqueue_pkt(cds_get_context(QDF_MODULE_ID_SOC), nbuf_list); } +#ifdef CONFIG_HL_SUPPORT +QDF_STATUS hdd_rx_deliver_to_stack(struct hdd_adapter *adapter, + struct sk_buff *skb) +{ + struct hdd_context *hdd_ctx = adapter->hdd_ctx; + int status = QDF_STATUS_E_FAILURE; + int netif_status; + + adapter->hdd_stats.tx_rx_stats.rx_non_aggregated++; + hdd_ctx->no_rx_offload_pkt_cnt++; + netif_status = netif_rx_ni(skb); + + if (netif_status == NET_RX_SUCCESS) + status = QDF_STATUS_SUCCESS; + + return status; +} +#else QDF_STATUS hdd_rx_deliver_to_stack(struct hdd_adapter *adapter, struct sk_buff *skb) { @@ -2003,6 +2021,7 @@ QDF_STATUS hdd_rx_deliver_to_stack(struct hdd_adapter *adapter, return status; } +#endif #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)) static bool hdd_is_gratuitous_arp_unsolicited_na(struct sk_buff *skb)