]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl819su: ieee80211_associate_procedure_wq() update
authorFlorian Schilhabel <florian.c.schilhabel@googlemail.com>
Thu, 15 Jul 2010 17:02:59 +0000 (19:02 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Jul 2010 19:00:20 +0000 (12:00 -0700)
Signed-off-by: Florian Schilhabel <florian.c.schilhabel@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192su/ieee80211/ieee80211_softmac.c

index c2028b433bcfca07b505fc9e2491660fab5b0a79..7cae63a7c012465cd35bb3eb9e4032d3b1759476 100644 (file)
@@ -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);