diff options
| author | Manjunathappa Prakash <c_pmanju@qca.qualcomm.com> | 2014-11-24 16:09:29 -0800 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2014-11-25 14:29:36 +0530 |
| commit | ed4aef5c81914dfa78d47105dd4cedbea4a6fc5a (patch) | |
| tree | 3881fc889538de864321c57da5ddec5b3e409c4e | |
| parent | d757c493d9160b0e53840c3ef045592bdce08245 (diff) | |
qcacld: Fix compilation error on ether_addr_equal()
When built against kernel older than 3.6 kernel, patch fixes undefined
compilation error on ether_addr_equal().
Change-Id: I1257895657033d16e6010a4bb1bc719c788845d4
CRs-Fixed: 762225
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_tx_rx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_tx_rx.c b/CORE/HDD/src/wlan_hdd_tx_rx.c index 4e028b5d364e..6c6891fa203e 100644 --- a/CORE/HDD/src/wlan_hdd_tx_rx.c +++ b/CORE/HDD/src/wlan_hdd_tx_rx.c @@ -1665,7 +1665,11 @@ bool drop_ip6_mcast(struct sk_buff *skb) eth = eth_hdr(skb); if (unlikely(skb->pkt_type == PACKET_MULTICAST)) { +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0)) if (unlikely(ether_addr_equal(eth->h_source, skb->dev->dev_addr))) +#else + if (unlikely(!compare_ether_addr(eth->h_source, skb->dev->dev_addr))) +#endif return true; } return false; |
