From: Florian Schilhabel Date: Thu, 15 Jul 2010 17:02:59 +0000 (+0200) Subject: staging: rtl819su: ieee80211_associate_procedure_wq() update X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=26cc71540ab80714f7635139526b4c0cb6fe465d;p=linux-beck.git staging: rtl819su: ieee80211_associate_procedure_wq() update Signed-off-by: Florian Schilhabel Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192su/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192su/ieee80211/ieee80211_softmac.c index c2028b433bcf..7cae63a7c012 100644 --- a/drivers/staging/rtl8192su/ieee80211/ieee80211_softmac.c +++ b/drivers/staging/rtl8192su/ieee80211/ieee80211_softmac.c @@ -1407,6 +1407,12 @@ void ieee80211_associate_procedure_wq(struct work_struct *work) //ieee->set_chan(ieee->dev, ieee->current_network.channel); HTSetConnectBwMode(ieee, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT); + if(ieee->eRFPowerState == eRfOff) + { + printk("=============>%s():Rf state is eRfOff, schedule ipsleave wq again,return\n",__FUNCTION__); + up(&ieee->wx_sem); + return; + } ieee->associate_seq = 1; ieee80211_associate_step1(ieee);