diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_rx.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_rx.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_rx.c b/drivers/net/wireless/wl12xx/wl1271_rx.c index ca645f38109b..6730f5b96e76 100644 --- a/drivers/net/wireless/wl12xx/wl1271_rx.c +++ b/drivers/net/wireless/wl12xx/wl1271_rx.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include "wl1271_reg.h" | 26 | #include "wl1271_reg.h" |
27 | #include "wl1271_rx.h" | 27 | #include "wl1271_rx.h" |
28 | #include "wl1271_spi.h" | 28 | #include "wl1271_spi.h" |
29 | #include "wl1271_io.h" | ||
29 | 30 | ||
30 | static u8 wl1271_rx_get_mem_block(struct wl1271_fw_status *status, | 31 | static u8 wl1271_rx_get_mem_block(struct wl1271_fw_status *status, |
31 | u32 drv_rx_counter) | 32 | u32 drv_rx_counter) |
@@ -166,7 +167,7 @@ static void wl1271_rx_handle_data(struct wl1271 *wl, u32 length) | |||
166 | } | 167 | } |
167 | 168 | ||
168 | buf = skb_put(skb, length); | 169 | buf = skb_put(skb, length); |
169 | wl1271_spi_read(wl, WL1271_SLV_MEM_DATA, buf, length, true); | 170 | wl1271_read(wl, WL1271_SLV_MEM_DATA, buf, length, true); |
170 | 171 | ||
171 | /* the data read starts with the descriptor */ | 172 | /* the data read starts with the descriptor */ |
172 | desc = (struct wl1271_rx_descriptor *) buf; | 173 | desc = (struct wl1271_rx_descriptor *) buf; |
@@ -210,15 +211,13 @@ void wl1271_rx(struct wl1271 *wl, struct wl1271_fw_status *status) | |||
210 | wl->rx_mem_pool_addr.addr + 4; | 211 | wl->rx_mem_pool_addr.addr + 4; |
211 | 212 | ||
212 | /* Choose the block we want to read */ | 213 | /* Choose the block we want to read */ |
213 | wl1271_spi_write(wl, WL1271_SLV_REG_DATA, | 214 | wl1271_write(wl, WL1271_SLV_REG_DATA, &wl->rx_mem_pool_addr, |
214 | &wl->rx_mem_pool_addr, | 215 | sizeof(wl->rx_mem_pool_addr), false); |
215 | sizeof(wl->rx_mem_pool_addr), false); | ||
216 | 216 | ||
217 | wl1271_rx_handle_data(wl, buf_size); | 217 | wl1271_rx_handle_data(wl, buf_size); |
218 | 218 | ||
219 | wl->rx_counter++; | 219 | wl->rx_counter++; |
220 | drv_rx_counter = wl->rx_counter & NUM_RX_PKT_DESC_MOD_MASK; | 220 | drv_rx_counter = wl->rx_counter & NUM_RX_PKT_DESC_MOD_MASK; |
221 | wl1271_write32(wl, RX_DRIVER_COUNTER_ADDRESS, wl->rx_counter); | ||
221 | } | 222 | } |
222 | |||
223 | wl1271_spi_write32(wl, RX_DRIVER_COUNTER_ADDRESS, wl->rx_counter); | ||
224 | } | 223 | } |