]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
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 962d85d625de3d5ebb0f8a27cea016747b99bcd8..02668557fef0fb9ec4a473392a9a580e41faec86 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 0d81c1e00b4ab213065da76e2a6407c36c54652d..de1132410876b976aa31e72b4412ac3a9b166465 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 89abbced7baeda515ff2c8fa7a922fa2688425aa..f62152e35f3cd46407ed28507679eb1c1d45a007 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 819c97cdc162f6078b8d22252467bbb91ad2ca8d..53263a978a75a9434550d6fd51632c4a2d926a09 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;