Changeset 16832
- Timestamp:
- 04/20/11 23:37:59 (2 years ago)
- Location:
- src/router/wiviz2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/router/wiviz2/Makefile
r16440 r16832 32 32 ifeq ($(CONFIG_RT2880),y) 33 33 CCOPTS+=-DHAVE_RT2880 34 endif 35 ifeq ($(CONFIG_ATH9K),y) 36 CCOPTS+=-DHAVE_ATH9K 37 CCOPTS+=-DHAVE_MADWIFI 34 38 endif 35 39 ifeq ($(CONFIG_RT61),y) -
src/router/wiviz2/wiviz.c
r13754 r16832 114 114 #ifdef HAVE_MADWIFI 115 115 // return to original channel 116 #ifdef HAVE_ATH9K 117 if (!is_ath9k(wl_dev)) 118 #endif 119 { 116 120 sysprintf("iwconfig %s channel %sM",get_monitor(),nvram_nget("%s_channel",nvram_safe_get("wifi_display"))); 117 121 sleep(1); … … 124 128 sysprintf("wlanconfig %s destroy",get_monitor()); 125 129 } 130 } 126 131 #elif HAVE_RT2880 127 132 nvram_set("wl0_mode",nvram_safe_get("wl0_oldmode")); … … 174 179 cfg.readFromWl = 1; 175 180 #else 181 #ifdef HAVE_ATH9K 182 if (!is_ath9k(nvram_safe_get("wifi_display"))) 183 #endif 184 { 176 185 if (is_ar5008(nvram_safe_get("wifi_display"))) 177 186 { … … 181 190 } 182 191 sysprintf("ifconfig %s up",get_monitor()); 192 } 183 193 cfg.readFromWl = 1; 184 194 #endif -
src/router/wiviz2/wl_access.c
r13754 r16832 80 80 char *get_monitor(void) 81 81 { 82 char *ifname = nvram_safe_get("wifi_display"); 83 #ifdef HAVE_ATH9K 84 if (is_ath9k(ifname)) 85 return "mon.ath0"; 86 else 87 #endif 88 { 82 89 int devcount; 83 char *ifname = nvram_safe_get("wifi_display");84 90 sscanf( ifname, "ath%d", &devcount ); 85 91 static char mon[32]; 86 92 sprintf(mon,"mon%d",devcount); 87 93 return mon; 94 } 88 95 } 89 96 #endif
Note: See TracChangeset
for help on using the changeset viewer.
