diff options
author | Igal Chernobelsky <igalc@ti.com> | 2012-07-31 07:48:46 -0400 |
---|---|---|
committer | Luciano Coelho <luca@coelho.fi> | 2012-09-27 05:13:51 -0400 |
commit | f1c434df6727ebb3068b67b06eae945a80f07ad3 (patch) | |
tree | 2e1b08b862859bdae002d65ff327f1f94ac68903 /drivers/net/wireless/ti/wl12xx | |
parent | f83e54134a6d38437ddee0fda96692a6b0c33b0e (diff) |
wl18xx/wl12xx: defines for Tx/Rx descriptors num
Use defines for number of Tx/Rx descriptors.
Signed-off-by: Igal Chernobelsky <igalc@ti.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.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ti/wl12xx/wl12xx.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wl12xx/main.c b/drivers/net/wireless/ti/wl12xx/main.c index 9ab85c0a3fb8..f38e76942ccc 100644 --- a/drivers/net/wireless/ti/wl12xx/main.c +++ b/drivers/net/wireless/ti/wl12xx/main.c | |||
@@ -1641,8 +1641,8 @@ static int __devinit wl12xx_probe(struct platform_device *pdev) | |||
1641 | wl->ops = &wl12xx_ops; | 1641 | wl->ops = &wl12xx_ops; |
1642 | wl->ptable = wl12xx_ptable; | 1642 | wl->ptable = wl12xx_ptable; |
1643 | wl->rtable = wl12xx_rtable; | 1643 | wl->rtable = wl12xx_rtable; |
1644 | wl->num_tx_desc = 16; | 1644 | wl->num_tx_desc = WL12XX_NUM_TX_DESCRIPTORS; |
1645 | wl->num_rx_desc = 8; | 1645 | wl->num_rx_desc = WL12XX_NUM_RX_DESCRIPTORS; |
1646 | wl->band_rate_to_idx = wl12xx_band_rate_to_idx; | 1646 | wl->band_rate_to_idx = wl12xx_band_rate_to_idx; |
1647 | wl->hw_tx_rate_tbl_size = WL12XX_CONF_HW_RXTX_RATE_MAX; | 1647 | wl->hw_tx_rate_tbl_size = WL12XX_CONF_HW_RXTX_RATE_MAX; |
1648 | wl->hw_min_ht_rate = WL12XX_CONF_HW_RXTX_RATE_MCS0; | 1648 | wl->hw_min_ht_rate = WL12XX_CONF_HW_RXTX_RATE_MCS0; |
diff --git a/drivers/net/wireless/ti/wl12xx/wl12xx.h b/drivers/net/wireless/ti/wl12xx/wl12xx.h index 26990fb4edea..c8ff7ec9fd41 100644 --- a/drivers/net/wireless/ti/wl12xx/wl12xx.h +++ b/drivers/net/wireless/ti/wl12xx/wl12xx.h | |||
@@ -38,6 +38,9 @@ | |||
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_NUM_TX_DESCRIPTORS 16 | ||
42 | #define WL12XX_NUM_RX_DESCRIPTORS 8 | ||
43 | |||
41 | struct wl127x_rx_mem_pool_addr { | 44 | struct wl127x_rx_mem_pool_addr { |
42 | u32 addr; | 45 | u32 addr; |
43 | u32 addr_extra; | 46 | u32 addr_extra; |