Changeset 18840
- Timestamp:
- 03/28/12 22:35:49 (14 months ago)
- Location:
- src/router/libutils
- Files:
-
- 2 edited
-
mac80211autochannel.c (modified) (2 diffs)
-
mac80211info.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/router/libutils/mac80211autochannel.c
r17595 r18840 116 116 struct nl_msg *msg; 117 117 struct nlattr *band, *bands, *freqlist, *freq; 118 int rem, rem2, freq_mhz ;118 int rem, rem2, freq_mhz, chan; 119 119 120 120 msg = unl_genl_msg(unl, NL80211_CMD_GET_WIPHY, false); … … 145 145 if (!in_range(freq_mhz)) 146 146 continue; 147 147 #if defined(HAVE_BUFFALO_SA) && defined(HAVE_ATH9K) 148 if( (!strcmp(getUEnv("region"), "AP") || !strcmp(getUEnv("region"), "US")) 149 && ieee80211_mhz2ieee(freq_mhz) > 11 && ieee80211_mhz2ieee(freq_mhz) < 14 150 && !nvram_default_match("lachan_ovride", "1", "0")) 151 continue; 152 #endif 148 153 f = calloc(1, sizeof(*f)); 149 154 INIT_LIST_HEAD(&f->list); -
src/router/libutils/mac80211info.c
r18056 r18840 566 566 if (run == 1) { 567 567 regpower = rd->reg_rules[rrc].power_rule; 568 #if defined(HAVE_BUFFALO_SA) && defined(HAVE_ATH9K) 569 if( (!strcmp(getUEnv("region"), "AP") || !strcmp(getUEnv("region"), "US")) 570 && ieee80211_mhz2ieee(freq_mhz) > 11 && ieee80211_mhz2ieee(freq_mhz) < 14 571 && !nvram_default_match("lachan_ovride", "1", "0")) 572 continue; 573 #endif 568 574 list[count].channel = ieee80211_mhz2ieee(freq_mhz); 569 575 list[count].freq = freq_mhz;
Note: See TracChangeset
for help on using the changeset viewer.
