Index: linux-2.6.17-rc3/net/ieee80211/softmac/ieee80211softmac_auth.c =================================================================== --- linux-2.6.17-rc3.orig/net/ieee80211/softmac/ieee80211softmac_auth.c +++ linux-2.6.17-rc3/net/ieee80211/softmac/ieee80211softmac_auth.c @@ -306,8 +306,6 @@ ieee80211softmac_deauth_from_net(struct /* can't transmit data right now... */ netif_carrier_off(mac->dev); - /* let's try to re-associate */ - schedule_work(&mac->associnfo.work); spin_unlock_irqrestore(&mac->lock, flags); } @@ -371,5 +369,8 @@ ieee80211softmac_deauth_resp(struct net_ } ieee80211softmac_deauth_from_net(mac, net); + + /* let's try to re-associate */ + schedule_work(&mac->associnfo.work); return 0; }