Ignore:
Timestamp:
07/08/09 19:14:46 (4 years ago)
Author:
eko
Message:

fix for radio state

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/services/services/wpa.c

    r12460 r12465  
    361361                for (deadcount = 0; deadcount < 5; deadcount++) { 
    362362                        wl_ioctl(get_wl_instance_name(c), WLC_GET_RADIO, &radiostate, sizeof(int)); 
    363                         if (radiostate & WL_RADIO_SW_DISABLE == 0)  //radio turned on - ready 
     363                        if ((radiostate & WL_RADIO_SW_DISABLE) == 0)  //radio turned on - ready 
    364364                                break; 
    365365                        sleep (1); 
    366366                } 
    367367                 
    368                 if (radiostate & WL_RADIO_SW_DISABLE != 0)  // radio turned off 
     368                if ((radiostate & WL_RADIO_SW_DISABLE) != 0)  // radio turned off 
    369369                        continue; 
    370370                char wlname[32]; 
Note: See TracChangeset for help on using the changeset viewer.