From: Gery Kahn Date: Tue, 1 Feb 2011 09:03:08 +0000 (-0600) Subject: wl12xx: update PLT initialization for new firmware X-Git-Tag: v3.0~349^2~16^2~578^2~149^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ec610ebd6390c2b028434144af204c312a68791;p=platform%2Fkernel%2Flinux-amlogic.git wl12xx: update PLT initialization for new firmware In revision > 6.1.3.0.0 the firmware expects memory configuration command as part of boot. This was missing if driver boots in PLT mode. The patch adds the memory configuration command, which fixes PLT commands tx continuous and rx statistics. Signed-off-by: Gery Kahn Signed-off-by: Luciano Coelho --- diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index 61dea73..cf8b3ce 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c @@ -482,6 +482,10 @@ static int wl1271_plt_init(struct wl1271 *wl) if (ret < 0) goto out_free_memmap; + ret = wl1271_acx_sta_mem_cfg(wl); + if (ret < 0) + goto out_free_memmap; + /* Default fragmentation threshold */ ret = wl1271_acx_frag_threshold(wl, wl->conf.tx.frag_threshold); if (ret < 0)