diff options
author | Yair Shapira <yair.shapira@ti.com> | 2012-11-28 04:42:39 -0500 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-12-11 03:26:24 -0500 |
commit | c91ec5f3ada86807ea4857fc5793a4efe99c9de3 (patch) | |
tree | d9fecdfebe54c2072bf188831af5c9112248a466 /drivers/net/wireless/ti | |
parent | c23280eb1436edd30814e5e40e4c46ae4cdb3cf4 (diff) |
wl18xx: fix a bug in wl->num_rx_desc initialization
wl->num_rx_desc was mistakenly initialized with WL18XX_NUM_TX_DESCRIPTORS
but it should use WL18XX_NUM_RX_DESCRIPTORS instead.
This bug was passed unnoticed because currently both RX and TX descriptors
are initialized to the same value (32).
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti')
-rw-r--r-- | drivers/net/wireless/ti/wl18xx/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c index 62f431a2ed34..a35eba2b8d8b 100644 --- a/drivers/net/wireless/ti/wl18xx/main.c +++ b/drivers/net/wireless/ti/wl18xx/main.c | |||
@@ -1501,7 +1501,7 @@ static int wl18xx_setup(struct wl1271 *wl) | |||
1501 | 1501 | ||
1502 | wl->rtable = wl18xx_rtable; | 1502 | wl->rtable = wl18xx_rtable; |
1503 | wl->num_tx_desc = WL18XX_NUM_TX_DESCRIPTORS; | 1503 | wl->num_tx_desc = WL18XX_NUM_TX_DESCRIPTORS; |
1504 | wl->num_rx_desc = WL18XX_NUM_TX_DESCRIPTORS; | 1504 | wl->num_rx_desc = WL18XX_NUM_RX_DESCRIPTORS; |
1505 | wl->num_channels = 2; | 1505 | wl->num_channels = 2; |
1506 | wl->num_mac_addr = WL18XX_NUM_MAC_ADDRESSES; | 1506 | wl->num_mac_addr = WL18XX_NUM_MAC_ADDRESSES; |
1507 | wl->band_rate_to_idx = wl18xx_band_rate_to_idx; | 1507 | wl->band_rate_to_idx = wl18xx_band_rate_to_idx; |