Changeset 16832


Ignore:
Timestamp:
04/20/11 23:37:59 (2 years ago)
Author:
BrainSlayer
Message:

ath9k try

Location:
src/router/wiviz2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/router/wiviz2/Makefile

    r16440 r16832  
    3232ifeq ($(CONFIG_RT2880),y) 
    3333CCOPTS+=-DHAVE_RT2880  
     34endif 
     35ifeq ($(CONFIG_ATH9K),y) 
     36CCOPTS+=-DHAVE_ATH9K 
     37CCOPTS+=-DHAVE_MADWIFI 
    3438endif 
    3539ifeq ($(CONFIG_RT61),y) 
  • src/router/wiviz2/wiviz.c

    r13754 r16832  
    114114#ifdef HAVE_MADWIFI 
    115115  // return to original channel 
     116#ifdef HAVE_ATH9K 
     117if (!is_ath9k(wl_dev)) 
     118#endif 
     119{ 
    116120  sysprintf("iwconfig %s channel %sM",get_monitor(),nvram_nget("%s_channel",nvram_safe_get("wifi_display"))); 
    117121  sleep(1); 
     
    124128     sysprintf("wlanconfig %s destroy",get_monitor());     
    125129    } 
     130} 
    126131#elif HAVE_RT2880 
    127132  nvram_set("wl0_mode",nvram_safe_get("wl0_oldmode")); 
     
    174179          cfg.readFromWl = 1; 
    175180#else 
     181#ifdef HAVE_ATH9K 
     182if (!is_ath9k(nvram_safe_get("wifi_display"))) 
     183#endif 
     184{ 
    176185  if (is_ar5008(nvram_safe_get("wifi_display"))) 
    177186    { 
     
    181190    } 
    182191          sysprintf("ifconfig %s up",get_monitor()); 
     192} 
    183193          cfg.readFromWl = 1; 
    184194#endif 
  • src/router/wiviz2/wl_access.c

    r13754 r16832  
    8080char *get_monitor(void) 
    8181{ 
     82char *ifname = nvram_safe_get("wifi_display"); 
     83#ifdef HAVE_ATH9K 
     84if (is_ath9k(ifname)) 
     85    return "mon.ath0"; 
     86else 
     87#endif 
     88{ 
    8289int devcount; 
    83 char *ifname = nvram_safe_get("wifi_display"); 
    8490sscanf( ifname, "ath%d", &devcount ); 
    8591static char mon[32]; 
    8692sprintf(mon,"mon%d",devcount); 
    8793return mon; 
     94} 
    8895} 
    8996#endif 
Note: See TracChangeset for help on using the changeset viewer.