diff --git a/drivers/net/wireless/cw1200/sta.c b/drivers/net/wireless/cw1200/sta.c index 9255c19..bc73f92 100644 --- a/drivers/net/wireless/cw1200/sta.c +++ b/drivers/net/wireless/cw1200/sta.c @@ -179,11 +179,13 @@ void cw1200_cqm_bssloss_sm(struct cw1200_common *priv, int init, int good, int b /* Spit out a NULL packet if necessary */ if (tx) { struct sk_buff *skb; - + + priv->bss_loss_state++; + skb = ieee80211_nullfunc_get(priv->hw, priv->vif); + WARN_ON(!skb); if (skb) cw1200_tx(priv->hw, NULL, skb); /* Transmit NULL to AP */ - priv->bss_loss_state++; } spin_unlock(&priv->bss_loss_lock);