aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wl12xx
diff options
context:
space:
mode:
authorIgal Chernobelsky <igalc@ti.com>2012-07-29 11:21:12 -0400
committerLuciano Coelho <luca@coelho.fi>2012-09-27 05:13:51 -0400
commit26a309c7586140afd40628a7031993afbaae0f07 (patch)
treeb216441d25225d449150c1978b2342f7508c12d6 /drivers/net/wireless/ti/wl12xx
parentf1c434df6727ebb3068b67b06eae945a80f07ad3 (diff)
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/wl12xx')
-rw-r--r--drivers/net/wireless/ti/wl12xx/main.c2
-rw-r--r--drivers/net/wireless/ti/wl12xx/wl12xx.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wl12xx/main.c b/drivers/net/wireless/ti/wl12xx/main.c
index f38e76942ccc..0a8bc0c7b6cc 100644
--- a/drivers/net/wireless/ti/wl12xx/main.c
+++ b/drivers/net/wireless/ti/wl12xx/main.c
@@ -1630,7 +1630,7 @@ static int __devinit wl12xx_probe(struct platform_device *pdev)
1630 struct ieee80211_hw *hw; 1630 struct ieee80211_hw *hw;
1631 struct wl12xx_priv *priv; 1631 struct wl12xx_priv *priv;
1632 1632
1633 hw = wlcore_alloc_hw(sizeof(*priv)); 1633 hw = wlcore_alloc_hw(sizeof(*priv), WL12XX_AGGR_BUFFER_SIZE);
1634 if (IS_ERR(hw)) { 1634 if (IS_ERR(hw)) {
1635 wl1271_error("can't allocate hw"); 1635 wl1271_error("can't allocate hw");
1636 return PTR_ERR(hw); 1636 return PTR_ERR(hw);
diff --git a/drivers/net/wireless/ti/wl12xx/wl12xx.h b/drivers/net/wireless/ti/wl12xx/wl12xx.h
index c8ff7ec9fd41..9953374a307d 100644
--- a/drivers/net/wireless/ti/wl12xx/wl12xx.h
+++ b/drivers/net/wireless/ti/wl12xx/wl12xx.h
@@ -38,6 +38,8 @@
38#define WL128X_SUBTYPE_VER 2 38#define WL128X_SUBTYPE_VER 2
39#define WL128X_MINOR_VER 115 39#define WL128X_MINOR_VER 115
40 40
41#define WL12XX_AGGR_BUFFER_SIZE (4 * PAGE_SIZE)
42
41#define WL12XX_NUM_TX_DESCRIPTORS 16 43#define WL12XX_NUM_TX_DESCRIPTORS 16
42#define WL12XX_NUM_RX_DESCRIPTORS 8 44#define WL12XX_NUM_RX_DESCRIPTORS 8
43 45