aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/tx.c
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2011-11-03 02:44:41 -0400
committerLuciano Coelho <coelho@ti.com>2011-11-08 08:36:53 -0500
commitce39defb5c6312a89a0c7be48797d6fb8fe9abad (patch)
treea212a68358bc2ae202ab3df7d7a546fb8cedcfc7 /drivers/net/wireless/wl12xx/tx.c
parent2f8e81ad42cee6e1503462105f540214b1fb3e54 (diff)
wl12xx: change blocksize alignment quirk to negative
SDIO blocksize alignment support is now the rule, not the exception. To simplify the code in patches to come, invert the meaning of the quirk to be negative (ie. the quirk is set if the device does _not_ support blocksize alignment). Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/tx.c')
-rw-r--r--drivers/net/wireless/wl12xx/tx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/wl12xx/tx.c b/drivers/net/wireless/wl12xx/tx.c
index 3a9d2a6b8a09..a07ee8201d6d 100644
--- a/drivers/net/wireless/wl12xx/tx.c
+++ b/drivers/net/wireless/wl12xx/tx.c
@@ -201,10 +201,10 @@ u8 wl12xx_tx_get_hlid(struct wl1271 *wl, struct wl12xx_vif *wlvif,
201static unsigned int wl12xx_calc_packet_alignment(struct wl1271 *wl, 201static unsigned int wl12xx_calc_packet_alignment(struct wl1271 *wl,
202 unsigned int packet_length) 202 unsigned int packet_length)
203{ 203{
204 if (wl->quirks & WL12XX_QUIRK_BLOCKSIZE_ALIGNMENT) 204 if (wl->quirks & WL12XX_QUIRK_NO_BLOCKSIZE_ALIGNMENT)
205 return ALIGN(packet_length, WL12XX_BUS_BLOCK_SIZE);
206 else
207 return ALIGN(packet_length, WL1271_TX_ALIGN_TO); 205 return ALIGN(packet_length, WL1271_TX_ALIGN_TO);
206 else
207 return ALIGN(packet_length, WL12XX_BUS_BLOCK_SIZE);
208} 208}
209 209
210static int wl1271_tx_allocate(struct wl1271 *wl, struct wl12xx_vif *wlvif, 210static int wl1271_tx_allocate(struct wl1271 *wl, struct wl12xx_vif *wlvif,