aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1251_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1251_init.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1251_init.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_init.c b/drivers/net/wireless/wl12xx/wl1251_init.c
index b2ee4f468fc4..b538bdd7b320 100644
--- a/drivers/net/wireless/wl12xx/wl1251_init.c
+++ b/drivers/net/wireless/wl12xx/wl1251_init.c
@@ -23,6 +23,7 @@
23 23
24#include <linux/kernel.h> 24#include <linux/kernel.h>
25#include <linux/module.h> 25#include <linux/module.h>
26#include <linux/slab.h>
26 27
27#include "wl1251_init.h" 28#include "wl1251_init.h"
28#include "wl12xx_80211.h" 29#include "wl12xx_80211.h"
@@ -147,7 +148,8 @@ int wl1251_hw_init_beacon_filter(struct wl1251 *wl)
147{ 148{
148 int ret; 149 int ret;
149 150
150 ret = wl1251_acx_beacon_filter_opt(wl); 151 /* disable beacon filtering at this stage */
152 ret = wl1251_acx_beacon_filter_opt(wl, false);
151 if (ret < 0) 153 if (ret < 0)
152 return ret; 154 return ret;
153 155
@@ -293,6 +295,11 @@ static int wl1251_hw_init_tx_queue_config(struct wl1251 *wl)
293 goto out; 295 goto out;
294 } 296 }
295 297
298 wl1251_acx_ac_cfg(wl, AC_BE, CWMIN_BE, CWMAX_BE, AIFS_DIFS, TXOP_BE);
299 wl1251_acx_ac_cfg(wl, AC_BK, CWMIN_BK, CWMAX_BK, AIFS_DIFS, TXOP_BK);
300 wl1251_acx_ac_cfg(wl, AC_VI, CWMIN_VI, CWMAX_VI, AIFS_DIFS, TXOP_VI);
301 wl1251_acx_ac_cfg(wl, AC_VO, CWMIN_VO, CWMAX_VO, AIFS_DIFS, TXOP_VO);
302
296out: 303out:
297 kfree(config); 304 kfree(config);
298 return ret; 305 return ret;
@@ -364,6 +371,11 @@ int wl1251_hw_init(struct wl1251 *wl)
364 if (ret < 0) 371 if (ret < 0)
365 goto out_free_data_path; 372 goto out_free_data_path;
366 373
374 /* Initialize connection monitoring thresholds */
375 ret = wl1251_acx_conn_monit_params(wl);
376 if (ret < 0)
377 goto out_free_data_path;
378
367 /* Beacon filtering */ 379 /* Beacon filtering */
368 ret = wl1251_hw_init_beacon_filter(wl); 380 ret = wl1251_hw_init_beacon_filter(wl);
369 if (ret < 0) 381 if (ret < 0)