aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_acx.c
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2009-10-13 05:47:40 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-27 16:48:08 -0400
commit8793f9bb19c00b26532e37f1f516e1d9c7bc0476 (patch)
treecb1c12ec546584761894976f1258a7cb236f0287 /drivers/net/wireless/wl12xx/wl1271_acx.c
parent2b60100bf04aba28133ccb24efd85f72fb1a5494 (diff)
wl1271: Add config structure for RX path parameters
Add a configuration structure for RX path parameters, and set default configuration values there. 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.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_acx.c b/drivers/net/wireless/wl12xx/wl1271_acx.c
index d19d8605b9d2..63aa64618e1b 100644
--- a/drivers/net/wireless/wl12xx/wl1271_acx.c
+++ b/drivers/net/wireless/wl12xx/wl1271_acx.c
@@ -198,7 +198,7 @@ int wl1271_acx_mem_map(struct wl1271 *wl, struct acx_header *mem_map,
198 return 0; 198 return 0;
199} 199}
200 200
201int wl1271_acx_rx_msdu_life_time(struct wl1271 *wl, u32 life_time) 201int wl1271_acx_rx_msdu_life_time(struct wl1271 *wl)
202{ 202{
203 struct acx_rx_msdu_lifetime *acx; 203 struct acx_rx_msdu_lifetime *acx;
204 int ret; 204 int ret;
@@ -211,7 +211,7 @@ int wl1271_acx_rx_msdu_life_time(struct wl1271 *wl, u32 life_time)
211 goto out; 211 goto out;
212 } 212 }
213 213
214 acx->lifetime = life_time; 214 acx->lifetime = wl->conf.rx.rx_msdu_life_time;
215 ret = wl1271_cmd_configure(wl, DOT11_RX_MSDU_LIFE_TIME, 215 ret = wl1271_cmd_configure(wl, DOT11_RX_MSDU_LIFE_TIME,
216 acx, sizeof(*acx)); 216 acx, sizeof(*acx));
217 if (ret < 0) { 217 if (ret < 0) {
@@ -265,7 +265,7 @@ int wl1271_acx_pd_threshold(struct wl1271 *wl)
265 goto out; 265 goto out;
266 } 266 }
267 267
268 /* FIXME: threshold value not set */ 268 pd->threshold = wl->conf.rx.packet_detection_threshold;
269 269
270 ret = wl1271_cmd_configure(wl, ACX_PD_THRESHOLD, pd, sizeof(*pd)); 270 ret = wl1271_cmd_configure(wl, ACX_PD_THRESHOLD, pd, sizeof(*pd));
271 if (ret < 0) { 271 if (ret < 0) {
@@ -349,8 +349,8 @@ int wl1271_acx_service_period_timeout(struct wl1271 *wl)
349 349
350 wl1271_debug(DEBUG_ACX, "acx service period timeout"); 350 wl1271_debug(DEBUG_ACX, "acx service period timeout");
351 351
352 rx_timeout->ps_poll_timeout = RX_TIMEOUT_PS_POLL_DEF; 352 rx_timeout->ps_poll_timeout = wl->conf.rx.ps_poll_timeout;
353 rx_timeout->upsd_timeout = RX_TIMEOUT_UPSD_DEF; 353 rx_timeout->upsd_timeout = wl->conf.rx.upsd_timeout;
354 354
355 ret = wl1271_cmd_configure(wl, ACX_SERVICE_PERIOD_TIMEOUT, 355 ret = wl1271_cmd_configure(wl, ACX_SERVICE_PERIOD_TIMEOUT,
356 rx_timeout, sizeof(*rx_timeout)); 356 rx_timeout, sizeof(*rx_timeout));
@@ -557,7 +557,7 @@ int wl1271_acx_cca_threshold(struct wl1271 *wl)
557 goto out; 557 goto out;
558 } 558 }
559 559
560 detection->rx_cca_threshold = CCA_THRSH_DISABLE_ENERGY_D; 560 detection->rx_cca_threshold = wl->conf.rx.rx_cca_threshold;
561 detection->tx_energy_detection = 0; 561 detection->tx_energy_detection = 0;
562 562
563 ret = wl1271_cmd_configure(wl, ACX_CCA_THRESHOLD, 563 ret = wl1271_cmd_configure(wl, ACX_CCA_THRESHOLD,
@@ -966,10 +966,10 @@ int wl1271_acx_init_rx_interrupt(struct wl1271 *wl)
966 goto out; 966 goto out;
967 } 967 }
968 968
969 rx_conf->threshold = WL1271_RX_INTR_THRESHOLD_DEF; 969 rx_conf->threshold = wl->conf.rx.irq_pkt_threshold;
970 rx_conf->timeout = WL1271_RX_INTR_TIMEOUT_DEF; 970 rx_conf->timeout = wl->conf.rx.irq_timeout;
971 rx_conf->mblk_threshold = USHORT_MAX; /* Disabled */ 971 rx_conf->mblk_threshold = wl->conf.rx.irq_blk_threshold;
972 rx_conf->queue_type = RX_QUEUE_TYPE_RX_LOW_PRIORITY; 972 rx_conf->queue_type = wl->conf.rx.queue_type;
973 973
974 ret = wl1271_cmd_configure(wl, ACX_RX_CONFIG_OPT, rx_conf, 974 ret = wl1271_cmd_configure(wl, ACX_RX_CONFIG_OPT, rx_conf,
975 sizeof(*rx_conf)); 975 sizeof(*rx_conf));