wlcore/wl12xx: move rx_mem_pool_addr element to wl12xx
authorLuciano Coelho <coelho@ti.com>
Thu, 10 May 2012 09:13:45 +0000 (12:13 +0300)
committerLuciano Coelho <coelho@ti.com>
Tue, 5 Jun 2012 12:56:22 +0000 (15:56 +0300)
Only wl127x chips use the rx_mem_pool_addr values, which need to be
given to the firmware as part of the RX path.  Move this from core to
the wl12xx driver.

Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
drivers/net/wireless/ti/wl12xx/main.c
drivers/net/wireless/ti/wl12xx/wl12xx.h
drivers/net/wireless/ti/wlcore/wlcore.h
drivers/net/wireless/ti/wlcore/wlcore_i.h

index 962d85d..0266855 100644 (file)
@@ -596,7 +596,7 @@ static void wl127x_prepare_read(struct wl1271 *wl, u32 rx_desc, u32 len)
 {
        if (wl->chip.id != CHIP_ID_1283_PG20) {
                struct wl1271_acx_mem_map *wl_mem_map = wl->target_mem_map;
-               struct wl1271_rx_mem_pool_addr rx_mem_addr;
+               struct wl127x_rx_mem_pool_addr rx_mem_addr;
 
                /*
                 * Choose the block we want to read
index 0d81c1e..de11324 100644 (file)
 
 #include "conf.h"
 
+struct wl127x_rx_mem_pool_addr {
+       u32 addr;
+       u32 addr_extra;
+};
+
 struct wl12xx_priv {
        struct wl12xx_priv_conf conf;
 
index 89abbce..f62152e 100644 (file)
@@ -213,9 +213,6 @@ struct wl1271 {
        /* FW Rx counter */
        u32 rx_counter;
 
-       /* Rx memory pool address */
-       struct wl1271_rx_mem_pool_addr rx_mem_pool_addr;
-
        /* Intermediate buffer, used for packet aggregation */
        u8 *aggr_buf;
 
index 819c97c..53263a9 100644 (file)
@@ -194,11 +194,6 @@ struct wl_fw_status {
        u8 priv[0];
 } __packed;
 
-struct wl1271_rx_mem_pool_addr {
-       u32 addr;
-       u32 addr_extra;
-};
-
 #define WL1271_MAX_CHANNELS 64
 struct wl1271_scan {
        struct cfg80211_scan_request *req;