aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_acx.c
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2009-10-08 14:56:33 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-27 16:47:53 -0400
commit344152361e6d14ade61d7f43678db7418cb445db (patch)
treebd887b29b38639cf390ee8b011f0d2a8b346c30b /drivers/net/wireless/wl12xx/wl1271_acx.c
parent1fba49741dc50d13d2fe6cf04f5a547e6c5c81f6 (diff)
wl1271: Add connection monitoring configuration
Add configuration for connection monitor (number of allowed beacons, and timeout after last received beacon.) 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_acx.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_acx.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_acx.c b/drivers/net/wireless/wl12xx/wl1271_acx.c
index a457123442a7..4b5fd94921c9 100644
--- a/drivers/net/wireless/wl12xx/wl1271_acx.c
+++ b/drivers/net/wireless/wl12xx/wl1271_acx.c
@@ -442,6 +442,36 @@ out:
442 return ret; 442 return ret;
443} 443}
444 444
445int wl1271_acx_conn_monit_params(struct wl1271 *wl)
446{
447 struct acx_conn_monit_params *acx;
448 int ret;
449
450 wl1271_debug(DEBUG_ACX, "acx connection monitor parameters");
451
452 acx = kzalloc(sizeof(*acx), GFP_KERNEL);
453 if (!acx) {
454 ret = -ENOMEM;
455 goto out;
456 }
457
458 acx->synch_fail_thold = SYNCH_FAIL_DEFAULT_THRESHOLD;
459 acx->bss_lose_timeout = NO_BEACON_DEFAULT_TIMEOUT;
460
461 ret = wl1271_cmd_configure(wl, ACX_CONN_MONIT_PARAMS,
462 acx, sizeof(*acx));
463 if (ret < 0) {
464 wl1271_warning("failed to set connection monitor "
465 "parameters: %d", ret);
466 goto out;
467 }
468
469out:
470 kfree(acx);
471 return ret;
472}
473
474
445int wl1271_acx_sg_enable(struct wl1271 *wl) 475int wl1271_acx_sg_enable(struct wl1271 *wl)
446{ 476{
447 struct acx_bt_wlan_coex *pta; 477 struct acx_bt_wlan_coex *pta;