Changeset 12411

Show
Ignore:
Timestamp:
06/30/2009 10:42:41 AM (4 months ago)
Author:
eko
Message:

check only sw disabled radio

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/router/services/services/wpa.c

    r12356 r12411  
    361361                for (deadcount = 0; deadcount < 5; deadcount++) { 
    362362                        wl_ioctl(get_wl_instance_name(c), WLC_GET_RADIO, &radiostate, sizeof(int)); 
    363                         if (radiostate == 0) 
     363                        if (radiostate & WL_RADIO_SW_DISABLE == 0)  //radio turned on - ready 
    364364                                break; 
    365365                        sleep (1); 
    366366                } 
    367367                 
    368                 if (radiostate != 0) 
     368                if (radiostate & WL_RADIO_SW_DISABLE != 0)  // radio turned off 
    369369                        continue; 
    370370                char wlname[32];