summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wlcore/rx.h
diff options
context:
space:
mode:
authorEyal Shapira <eyal@wizery.com>2012-06-11 17:59:55 +0300
committerLuciano Coelho <coelho@ti.com>2012-06-13 21:44:10 +0300
commit04414e2aa516c7af6aa316562e046c5aca025e33 (patch)
tree619f71898c047535c7ac57afbf84cbfc620e5ab7 /drivers/net/wireless/ti/wlcore/rx.h
parent3e3947fffc2ebe8c52891b3fca195172875dc951 (diff)
wlcore: avoid using NET_IP_ALIGN for RX alignment
NET_IP_ALIGN can be overriden on different architectures and therefore cannot be used in the RX path to account for the 2 bytes added for alignment (either by the FW in the case of 18xx or by the host for 12xx). Instead use an internal define. Signed-off-by: Eyal Shapira <eyal@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/rx.h')
-rw-r--r--drivers/net/wireless/ti/wlcore/rx.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/rx.h b/drivers/net/wireless/ti/wlcore/rx.h
index 9be780179456..4324a427e835 100644
--- a/drivers/net/wireless/ti/wlcore/rx.h
+++ b/drivers/net/wireless/ti/wlcore/rx.h
@@ -103,6 +103,12 @@
/* If set, the buffer was padded by the FW to be 4 bytes aligned */
#define RX_BUF_PADDED_PAYLOAD BIT(30)
+/*
+ * Account for the padding inserted by the FW in case of RX_ALIGNMENT
+ * or for fixing alignment in case the packet wasn't aligned.
+ */
+#define RX_BUF_ALIGN 2
+
/* Describes the alignment state of a Rx buffer */
enum wl_rx_buf_align {
WLCORE_RX_BUF_ALIGNED,