summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wlcore/rx.c
diff options
context:
space:
mode:
authorArik Nemtsov2012-05-10 11:13:28 +0200
committerLuciano Coelho2012-06-05 14:55:23 +0200
commit169da04f523bafee46993b1efbddb913641aad56 (patch)
tree999b7a797dd977f2665556ab9ec433e2a46b4fbd /drivers/net/wireless/ti/wlcore/rx.c
parentwlcore/wl18xx: add hw op for setting Tx HW checksum (diff)
downloadkernel-qcow2-linux-169da04f523bafee46993b1efbddb913641aad56.tar.gz
kernel-qcow2-linux-169da04f523bafee46993b1efbddb913641aad56.tar.xz
kernel-qcow2-linux-169da04f523bafee46993b1efbddb913641aad56.zip
wlcore/wl18xx: add hw op for Rx HW checksum
Some chip families can checksum certain classes of Rx packets in FW. Implement the Rx-checksum feature as a HW-op. For the 18xx chip-family, set Rx-checsum according to indication from FW. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/rx.c')
-rw-r--r--drivers/net/wireless/ti/wlcore/rx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/rx.c b/drivers/net/wireless/ti/wlcore/rx.c
index d6a3c6b07827..2672b1d16cef 100644
--- a/drivers/net/wireless/ti/wlcore/rx.c
+++ b/drivers/net/wireless/ti/wlcore/rx.c
@@ -186,6 +186,7 @@ static int wl1271_rx_handle_data(struct wl1271 *wl, u8 *data, u32 length,
is_data = 1;
wl1271_rx_status(wl, desc, IEEE80211_SKB_RXCB(skb), beacon);
+ wlcore_hw_set_rx_csum(wl, desc, skb);
seq_num = (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
wl1271_debug(DEBUG_RX, "rx skb 0x%p: %d B %s seq %d hlid %d", skb,