Changeset 17422 for src/router/libutils/mac80211autochannel.c
- Timestamp:
- 08/05/11 16:57:14 (22 months ago)
- File:
-
- 1 edited
-
src/router/libutils/mac80211autochannel.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/libutils/mac80211autochannel.c
r16655 r17422 297 297 298 298 /* 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)) 300 300 c = (c * bias_2g[idx]) / 100; 301 301 … … 324 324 struct mac80211_ac *mac80211autochannel(char *interface, char *freq_range, int scans, int ammount, int enable_passive) { 325 325 struct mac80211_ac *acs = NULL; 326 struct frequency *f ;326 struct frequency *f,*ftmp; 327 327 struct unl unl; 328 328 int verbose = 0; … … 384 384 acs->quality=f->quality; 385 385 acs->noise=f->noise; 386 } 387 388 list_for_each_entry_safe(f,ftmp, &frequencies, list) { 389 list_del(&f->list); 390 free(f); 386 391 } 387 392
Note: See TracChangeset
for help on using the changeset viewer.
