diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2010-03-26 06:53:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-31 14:39:16 -0400 |
commit | c18995540cc4d2c84d130581b8b6720b22ca16b5 (patch) | |
tree | 0acb4eb3863c70bfbffd355b36346aac552f2598 /drivers/net/wireless/wl12xx/wl1271_init.c | |
parent | bfb24c9e16921f0e57fcec5180ffa20929832545 (diff) |
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) | |||
337 | if (ret < 0) | 337 | if (ret < 0) |
338 | goto out_free_memmap; | 338 | goto out_free_memmap; |
339 | 339 | ||
340 | /* disable all keep-alive templates */ | ||
341 | for (i = 0; i < CMD_TEMPL_KLV_IDX_MAX; i++) { | ||
342 | ret = wl1271_acx_keep_alive_config(wl, i, | ||
343 | ACX_KEEP_ALIVE_TPL_INVALID); | ||
344 | if (ret < 0) | ||
345 | goto out_free_memmap; | ||
346 | } | ||
347 | |||
348 | /* disable the keep-alive feature */ | ||
349 | ret = wl1271_acx_keep_alive_mode(wl, false); | ||
350 | if (ret < 0) | ||
351 | goto out_free_memmap; | ||
352 | |||
340 | return 0; | 353 | return 0; |
341 | 354 | ||
342 | out_free_memmap: | 355 | out_free_memmap: |