From 3ae1845b9d97e0276cbc740e72b799df126d8c98 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 10 Apr 2013 14:23:19 -0400 Subject: [PATCH] Fix. --- drivers/net/wireless/cw1200/sta.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/net/wireless/cw1200/sta.c b/drivers/net/wireless/cw1200/sta.c index 0ea103e..9255c19 100644 --- a/drivers/net/wireless/cw1200/sta.c +++ b/drivers/net/wireless/cw1200/sta.c @@ -168,17 +168,9 @@ void cw1200_cqm_bssloss_sm(struct cw1200_common *priv, int init, int good, int b priv->bss_loss_state = 0; queue_work(priv->workqueue, &priv->bss_params_work); } else if (bad) { - /* Just keep going until we fail.. */ -#if 0 - if (priv->bss_loss_state > 3) { - queue_delayed_work(priv->workqueue, - &priv->bss_loss_work, - HZ/4); /* XXX 0 immediate ? */ - } else { + /* Just keep going until we fail? */ + if (priv->bss_loss_state < 3) /* XXX ?? */ tx = 1; - } - tx = 1; -#endif } else { cancel_delayed_work_sync(&priv->bss_loss_work); priv->bss_loss_state = 0;