Don't process bssloss state machine if we have a pending unjoin.

This commit is contained in:
Solomon Peachy 2013-04-11 13:25:51 -04:00
parent cb9d4bbcd2
commit a821f0b7bd
1 changed files with 7 additions and 2 deletions

View File

@ -149,10 +149,15 @@ void __cw1200_cqm_bssloss_sm(struct cw1200_common *priv, int init, int good, int
priv->delayed_link_loss = 0;
cancel_work_sync(&priv->bss_params_work);
pr_debug("[STA] CQM BSSLOSS_SM: state: %d init %d good %d bad: %d txlock: %d\n",
pr_debug("[STA] CQM BSSLOSS_SM: state: %d init %d good %d bad: %d txlock: %d uj: %d\n",
priv->bss_loss_state,
init, good, bad,
atomic_read(&priv->tx_lock));
atomic_read(&priv->tx_lock),
priv->delayed_unjoin);
/* If we have a pending unjoin */
if (priv->delayed_unjoin)
return;
if (init) {
queue_delayed_work(priv->workqueue,