summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wlcore/rx.c
diff options
context:
space:
mode:
authorIgal Chernobelsky <igalc@ti.com>2012-07-29 18:21:12 +0300
committerLuciano Coelho <luca@coelho.fi>2012-09-27 12:13:51 +0300
commit26a309c7586140afd40628a7031993afbaae0f07 (patch)
treeb216441d25225d449150c1978b2342f7508c12d6 /drivers/net/wireless/ti/wlcore/rx.c
parentf1c434df6727ebb3068b67b06eae945a80f07ad3 (diff)
downloadlinux-stable-26a309c7586140afd40628a7031993afbaae0f07.tar.gz
linux-stable-26a309c7586140afd40628a7031993afbaae0f07.tar.bz2
linux-stable-26a309c7586140afd40628a7031993afbaae0f07.zip
wlcore/wl18xx/wl12xx: aggregation buffer size set
Aggregation buffer size is set separately per 18xx/12xx chip family. For 18xx aggragation buffer is set to 13 pages to utilize all the available tx/rx descriptors for aggregation. [Arik - remove redundant parts from the patch] Signed-off-by: Igal Chernobelsky <igalc@ti.com> Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <luca@coelho.fi>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/rx.c')
-rw-r--r--drivers/net/wireless/ti/wlcore/rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/rx.c b/drivers/net/wireless/ti/wlcore/rx.c
index f55e2f9e7ac5..9ee0ec6fd1db 100644
--- a/drivers/net/wireless/ti/wlcore/rx.c
+++ b/drivers/net/wireless/ti/wlcore/rx.c
@@ -221,7 +221,7 @@ int wlcore_rx(struct wl1271 *wl, struct wl_fw_status_1 *status)
pkt_len = wlcore_rx_get_buf_size(wl, des);
align_pkt_len = wlcore_rx_get_align_buf_size(wl,
pkt_len);
- if (buf_size + align_pkt_len > WL1271_AGGR_BUFFER_SIZE)
+ if (buf_size + align_pkt_len > wl->aggr_buf_size)
break;
buf_size += align_pkt_len;
rx_counter++;