aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1251_rx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1251_rx.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1251_rx.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_rx.c b/drivers/net/wireless/wl12xx/wl1251_rx.c
index 0dbb483a0973..af8187909c94 100644
--- a/drivers/net/wireless/wl12xx/wl1251_rx.c
+++ b/drivers/net/wireless/wl12xx/wl1251_rx.c
@@ -27,8 +27,9 @@
27 27
28#include "wl1251.h" 28#include "wl1251.h"
29#include "reg.h" 29#include "reg.h"
30#include "wl1251_spi.h" 30#include "wl1251_io.h"
31#include "wl1251_rx.h" 31#include "wl1251_rx.h"
32#include "wl1251_cmd.h"
32#include "wl1251_acx.h" 33#include "wl1251_acx.h"
33 34
34static void wl1251_rx_header(struct wl1251 *wl, 35static void wl1251_rx_header(struct wl1251 *wl,
@@ -40,7 +41,7 @@ static void wl1251_rx_header(struct wl1251 *wl,
40 if (wl->rx_current_buffer) 41 if (wl->rx_current_buffer)
41 rx_packet_ring_addr += wl->data_path->rx_packet_ring_chunk_size; 42 rx_packet_ring_addr += wl->data_path->rx_packet_ring_chunk_size;
42 43
43 wl1251_spi_mem_read(wl, rx_packet_ring_addr, desc, sizeof(*desc)); 44 wl1251_mem_read(wl, rx_packet_ring_addr, desc, sizeof(*desc));
44} 45}
45 46
46static void wl1251_rx_status(struct wl1251 *wl, 47static void wl1251_rx_status(struct wl1251 *wl,
@@ -136,7 +137,7 @@ static void wl1251_rx_body(struct wl1251 *wl,
136 } 137 }
137 138
138 rx_buffer = skb_put(skb, length); 139 rx_buffer = skb_put(skb, length);
139 wl1251_spi_mem_read(wl, rx_packet_ring_addr, rx_buffer, length); 140 wl1251_mem_read(wl, rx_packet_ring_addr, rx_buffer, length);
140 141
141 /* The actual lenght doesn't include the target's alignment */ 142 /* The actual lenght doesn't include the target's alignment */
142 skb->len = desc->length - PLCP_HEADER_LENGTH; 143 skb->len = desc->length - PLCP_HEADER_LENGTH;