diff options
author | Eliad Peller <eliad@wizery.com> | 2011-08-14 06:17:19 -0400 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-08-22 05:35:27 -0400 |
commit | 3be4112cb2c53fcda85fb408aea9a6f94075683b (patch) | |
tree | b09ffedabc911a5eef05eccece24cf99b5d1df8a /drivers/net/wireless/wl12xx/acx.c | |
parent | 251c177f886027fbce494202e44935762f103137 (diff) |
wl12xx: update BT coex configuration params
The BT coex params api have been changed.
Update it, and init coex for both sta and ap.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/acx.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/acx.c | 40 |
1 files changed, 5 insertions, 35 deletions
diff --git a/drivers/net/wireless/wl12xx/acx.c b/drivers/net/wireless/wl12xx/acx.c index a784ba6a8ef6..d783fce45613 100644 --- a/drivers/net/wireless/wl12xx/acx.c +++ b/drivers/net/wireless/wl12xx/acx.c | |||
@@ -528,13 +528,13 @@ out: | |||
528 | return ret; | 528 | return ret; |
529 | } | 529 | } |
530 | 530 | ||
531 | int wl1271_acx_sta_sg_cfg(struct wl1271 *wl) | 531 | int wl12xx_acx_sg_cfg(struct wl1271 *wl) |
532 | { | 532 | { |
533 | struct acx_sta_bt_wlan_coex_param *param; | 533 | struct acx_bt_wlan_coex_param *param; |
534 | struct conf_sg_settings *c = &wl->conf.sg; | 534 | struct conf_sg_settings *c = &wl->conf.sg; |
535 | int i, ret; | 535 | int i, ret; |
536 | 536 | ||
537 | wl1271_debug(DEBUG_ACX, "acx sg sta cfg"); | 537 | wl1271_debug(DEBUG_ACX, "acx sg cfg"); |
538 | 538 | ||
539 | param = kzalloc(sizeof(*param), GFP_KERNEL); | 539 | param = kzalloc(sizeof(*param), GFP_KERNEL); |
540 | if (!param) { | 540 | if (!param) { |
@@ -543,38 +543,8 @@ int wl1271_acx_sta_sg_cfg(struct wl1271 *wl) | |||
543 | } | 543 | } |
544 | 544 | ||
545 | /* BT-WLAN coext parameters */ | 545 | /* BT-WLAN coext parameters */ |
546 | for (i = 0; i < CONF_SG_STA_PARAMS_MAX; i++) | 546 | for (i = 0; i < CONF_SG_PARAMS_MAX; i++) |
547 | param->params[i] = cpu_to_le32(c->sta_params[i]); | 547 | param->params[i] = cpu_to_le32(c->params[i]); |
548 | param->param_idx = CONF_SG_PARAMS_ALL; | ||
549 | |||
550 | ret = wl1271_cmd_configure(wl, ACX_SG_CFG, param, sizeof(*param)); | ||
551 | if (ret < 0) { | ||
552 | wl1271_warning("failed to set sg config: %d", ret); | ||
553 | goto out; | ||
554 | } | ||
555 | |||
556 | out: | ||
557 | kfree(param); | ||
558 | return ret; | ||
559 | } | ||
560 | |||
561 | int wl1271_acx_ap_sg_cfg(struct wl1271 *wl) | ||
562 | { | ||
563 | struct acx_ap_bt_wlan_coex_param *param; | ||
564 | struct conf_sg_settings *c = &wl->conf.sg; | ||
565 | int i, ret; | ||
566 | |||
567 | wl1271_debug(DEBUG_ACX, "acx sg ap cfg"); | ||
568 | |||
569 | param = kzalloc(sizeof(*param), GFP_KERNEL); | ||
570 | if (!param) { | ||
571 | ret = -ENOMEM; | ||
572 | goto out; | ||
573 | } | ||
574 | |||
575 | /* BT-WLAN coext parameters */ | ||
576 | for (i = 0; i < CONF_SG_AP_PARAMS_MAX; i++) | ||
577 | param->params[i] = cpu_to_le32(c->ap_params[i]); | ||
578 | param->param_idx = CONF_SG_PARAMS_ALL; | 548 | param->param_idx = CONF_SG_PARAMS_ALL; |
579 | 549 | ||
580 | ret = wl1271_cmd_configure(wl, ACX_SG_CFG, param, sizeof(*param)); | 550 | ret = wl1271_cmd_configure(wl, ACX_SG_CFG, param, sizeof(*param)); |