diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2010-03-26 11:53:32 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-31 20:39:16 +0200 |
commit | c18995540cc4d2c84d130581b8b6720b22ca16b5 (patch) | |
tree | 0acb4eb3863c70bfbffd355b36346aac552f2598 /drivers/net/wireless/wl12xx/wl1271_init.c | |
parent | wl1271: Add keep-alive frame template support (diff) | |
download | linux-c18995540cc4d2c84d130581b8b6720b22ca16b5.tar.xz linux-c18995540cc4d2c84d130581b8b6720b22ca16b5.zip |
wl1271: Enable hardware keep alive messages
This patch will enable the hardware keep-alive mode, configure the required
template, configure keep-alive parameters, and re-order JOIN's and ACX_AID
in such a way that the keep-alive is activated.
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_init.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_init.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_init.c b/drivers/net/wireless/wl12xx/wl1271_init.c index 0106663bc45b..8ec94ac84093 100644 --- a/drivers/net/wireless/wl12xx/wl1271_init.c +++ b/drivers/net/wireless/wl12xx/wl1271_init.c @@ -337,6 +337,19 @@ int wl1271_hw_init(struct wl1271 *wl) if (ret < 0) goto out_free_memmap; + /* disable all keep-alive templates */ + for (i = 0; i < CMD_TEMPL_KLV_IDX_MAX; i++) { + ret = wl1271_acx_keep_alive_config(wl, i, + ACX_KEEP_ALIVE_TPL_INVALID); + if (ret < 0) + goto out_free_memmap; + } + + /* disable the keep-alive feature */ + ret = wl1271_acx_keep_alive_mode(wl, false); + if (ret < 0) + goto out_free_memmap; + return 0; out_free_memmap: |