Changeset 13603
- Timestamp:
- 01/12/10 23:14:13 (3 years ago)
- Location:
- src/router/services/tools
- Files:
-
- 2 edited
-
site_survey_madwifi.c (modified) (1 diff)
-
site_survey_madwifi_11n.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/router/services/tools/site_survey_madwifi.c
r13227 r13603 203 203 eval("iwlist", sta, "scan"); 204 204 len = do80211priv(sta, IEEE80211_IOCTL_SCAN_RESULTS, buf, 24 * 1024); 205 char channel[16]; 206 char wl[16]; 207 sprintf(channel, "ath%s_channel", sta); 208 sprintf(wl, "ath%s_mode", sta); 209 char *apm = nvram_default_get(wl, "ap"); 210 if (strcmp(apm, "sta") && strcmp(apm, "wdssta") && strcmp(apm, "wet")) { 211 cprintf("set channel\n"); 212 char *ch = nvram_default_get(channel, "0"); 213 214 if (strcmp(ch, "0") == 0) { 215 sysprintf("iwconfig %s channel 0", sta); 216 } else { 217 sysprintf("iwconfig %s freq %sM", sta, ch); 218 } 219 } 205 220 206 221 if (len == -1) { -
src/router/services/tools/site_survey_madwifi_11n.c
r13227 r13603 196 196 len = do80211priv(sta, IEEE80211_IOCTL_SCAN_RESULTS, buf, 24 * 1024); 197 197 198 char channel[16]; 199 char wl[16]; 200 sprintf(channel, "ath%s_channel", sta); 201 sprintf(wl, "ath%s_mode", sta); 202 char *apm = nvram_default_get(wl, "ap"); 203 if (strcmp(apm, "sta") && strcmp(apm, "wdssta") && strcmp(apm, "wet")) { 204 cprintf("set channel\n"); 205 char *ch = nvram_default_get(channel, "0"); 206 207 if (strcmp(ch, "0") == 0) { 208 sysprintf("iwconfig %s channel 0", sta); 209 } else { 210 sysprintf("iwconfig %s freq %sM", sta, ch); 211 } 212 } 213 198 214 if (len == -1) { 199 215 fprintf(stderr, "unable to get scan results");
Note: See TracChangeset
for help on using the changeset viewer.
