Browse Source

staging: rtl819su: ieee80211_associate_procedure_wq() update

Signed-off-by: Florian Schilhabel <florian.c.schilhabel@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Florian Schilhabel 15 years ago
parent
commit
26cc71540a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      drivers/staging/rtl8192su/ieee80211/ieee80211_softmac.c

+ 6 - 0
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);