Ignore:
Timestamp:
08/05/11 16:57:14 (22 months ago)
Author:
chris
Message:

mac80211autochannel fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/libutils/mac80211autochannel.c

    r16655 r17422  
    297297 
    298298        /* strongly discourage the use of channels other than 1,6,11 */ 
    299         if (f->freq >= 2412 && idx < ARRAY_SIZE(bias_2g)) 
     299        if (f->freq >= 2412 && f->freq <=2484 && idx < ARRAY_SIZE(bias_2g)) 
    300300                c = (c * bias_2g[idx]) / 100; 
    301301 
     
    324324struct mac80211_ac *mac80211autochannel(char *interface, char *freq_range, int scans, int ammount, int enable_passive) { 
    325325        struct mac80211_ac *acs = NULL; 
    326         struct frequency *f; 
     326        struct frequency *f,*ftmp; 
    327327        struct unl unl; 
    328328        int verbose = 0; 
     
    384384                acs->quality=f->quality; 
    385385                acs->noise=f->noise; 
     386        } 
     387 
     388        list_for_each_entry_safe(f,ftmp, &frequencies, list) { 
     389                list_del(&f->list); 
     390                free(f); 
    386391        } 
    387392 
Note: See TracChangeset for help on using the changeset viewer.