Changeset 9146


Ignore:
Timestamp:
02/29/08 03:25:20 (5 years ago)
Author:
BrainSlayer
Message:

do not UP wifiX interfaces anymore. its not required and may cause race conditions

Location:
src/router/services
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • src/router/services/networking/madwifi.c

    r9144 r9146  
    14981498 
    14991499 
    1500  
    1501  
    1502  
    1503 x 
    1504  
    15051500// vif netconfig 
    15061501  vifs = nvram_safe_get (wifivifs); 
     
    15561551      } 
    15571552    } 
     1553 
     1554  m = default_get (wl, "ap"); 
     1555  eval ("iwpriv", dev, "scandisable", "0"); 
     1556  if (strcmp (m, "sta") && strcmp (m, "wdssta") && strcmp (m, "wet")) 
     1557    { 
     1558      cprintf ("set channel\n"); 
     1559      char *ch = default_get (channel, "0"); 
     1560      if (strcmp (ch, "0") == 0) 
     1561        { 
     1562          eval ("iwconfig", dev, "channel", "0"); 
     1563        } 
     1564      else 
     1565        { 
     1566          char freq[64]; 
     1567          sprintf (freq, "%sM", ch); 
     1568          eval ("iwpriv", dev, "scandisable", "1"); 
     1569          eval ("iwconfig", dev, "freq", freq); 
     1570          sleep (1); 
     1571          eval ("ifconfig", dev, "down"); 
     1572          sleep (1); 
     1573          eval ("ifconfig", dev, "up"); 
     1574        } 
     1575    } 
     1576 
    15581577  for (s = 1; s <= 10; s++) 
    15591578    { 
     
    15791598    } 
    15801599 
    1581   m = default_get (wl, "ap"); 
    1582   eval ("iwpriv", dev, "scandisable", "0"); 
    1583   if (strcmp (m, "sta") && strcmp (m, "wdssta") && strcmp (m, "wet")) 
    1584     { 
    1585       cprintf ("set channel\n"); 
    1586       char *ch = default_get (channel, "0"); 
    1587       if (strcmp (ch, "0") == 0) 
    1588         { 
    1589           eval ("iwconfig", dev, "channel", "0"); 
    1590         } 
    1591       else 
    1592         { 
    1593           char freq[64]; 
    1594           sprintf (freq, "%sM", ch); 
    1595           eval ("iwpriv", dev, "scandisable", "1"); 
    1596           eval ("iwconfig", dev, "freq", freq); 
    1597           sleep (1); 
    1598           eval ("ifconfig", dev, "down"); 
    1599           sleep (1); 
    1600           eval ("ifconfig", dev, "up"); 
    1601         } 
    1602     } 
     1600 
    16031601} 
    16041602 
  • src/router/services/sysinit/sysinit-ca8.c

    r9124 r9146  
    113113  eval ("insmod", "ath_hal"); 
    114114  eval ("insmod", "ath_ahb"); 
    115   eval ("ifconfig", "wifi0", "up"); 
     115//  eval ("ifconfig", "wifi0", "up"); 
    116116 
    117117  eval ("insmod", "ipv6"); 
  • src/router/services/sysinit/sysinit-dir300.c

    r9124 r9146  
    126126  eval ("insmod", "ath_hal"); 
    127127  eval ("insmod", "ath_ahb"); 
    128   eval ("ifconfig", "wifi0", "up"); 
     128//  eval ("ifconfig", "wifi0", "up"); 
    129129  eval ("ifconfig", "eth0", "up");      // wan 
    130130  system ("echo 2 >/proc/sys/dev/wifi0/ledpin"); 
  • src/router/services/sysinit/sysinit-fonera.c

    r9124 r9146  
    109109  eval ("insmod", "ath_hal"); 
    110110  eval ("insmod", "ath_ahb"); 
    111   eval ("ifconfig", "wifi0", "up"); 
     111//  eval ("ifconfig", "wifi0", "up"); 
    112112#ifdef HAVE_LS2 
    113113  eval ("ifconfig", "eth0", "up");      // wan 
  • src/router/services/sysinit/sysinit-gateworx.c

    r9124 r9146  
    248248  // eval ("insmod", "ath_pci", "rfkill=0", "autocreate=none"); 
    249249 
    250   if (ifexists ("wifi0")) 
     250/*  if (ifexists ("wifi0")) 
    251251    eval ("ifconfig", "wifi0", "up"); 
    252252  if (ifexists ("wifi1")) 
     
    260260  if (ifexists ("wifi5")) 
    261261    eval ("ifconfig", "wifi5", "up"); 
    262  
     262*/ 
    263263 
    264264  //eval ("insmod", "ipv6"); 
  • src/router/services/sysinit/sysinit-ls5.c

    r9124 r9146  
    114114  eval ("insmod", "ath_ahb"); 
    115115 
    116   eval ("ifconfig", "wifi0", "up"); 
     116//  eval ("ifconfig", "wifi0", "up"); 
    117117 
    118118  eval ("insmod", "ipv6"); 
  • src/router/services/sysinit/sysinit-magicbox.c

    r9124 r9146  
    142142  eval ("insmod", "wlan_scan_sta"); 
    143143*/ 
    144   eval ("ifconfig", "wifi0", "up"); 
     144/*  eval ("ifconfig", "wifi0", "up"); 
    145145  eval ("ifconfig", "wifi1", "up"); 
    146146  eval ("ifconfig", "wifi2", "up"); 
     
    149149  eval ("ifconfig", "wifi5", "up"); 
    150150 
    151  
     151*/ 
    152152  eval ("insmod", "ipv6"); 
    153153 
  • src/router/services/sysinit/sysinit-mr3202a.c

    r9124 r9146  
    111111  system ("echo 1 >/proc/sys/dev/wifi0/softled"); 
    112112#endif 
    113   eval ("ifconfig", "wifi0", "up"); 
     113//  eval ("ifconfig", "wifi0", "up"); 
    114114  eval ("ifconfig", "eth0", "up"); 
    115115  vlan_init (5);                // 1 lan + 1 wan 
  • src/router/services/sysinit/sysinit-newmedia-dual.c

    r9124 r9146  
    126126//  eval ("insmod", "wlan_scan_sta"); 
    127127 
    128   eval ("ifconfig", "wifi0", "up"); 
     128/*  eval ("ifconfig", "wifi0", "up"); 
    129129  eval ("ifconfig", "wifi1", "up"); 
    130130  eval ("ifconfig", "wifi2", "up"); 
     
    132132  eval ("ifconfig", "wifi4", "up"); 
    133133  eval ("ifconfig", "wifi5", "up"); 
    134  
     134*/ 
    135135 
    136136  eval ("insmod", "ipv6"); 
  • src/router/services/sysinit/sysinit-pb42.c

    r9124 r9146  
    106106  eval ("insmod", "ath_mimo_pci"); 
    107107 
    108   eval ("ifconfig", "wifi0", "up"); 
     108//  eval ("ifconfig", "wifi0", "up"); 
    109109 
    110110 
  • src/router/services/sysinit/sysinit-rb532.c

    r9124 r9146  
    135135     eval ("insmod", "wlan_scan_sta"); 
    136136   */ 
    137   eval ("ifconfig", "wifi0", "up"); 
     137/*  eval ("ifconfig", "wifi0", "up"); 
    138138  eval ("ifconfig", "wifi1", "up"); 
    139139  eval ("ifconfig", "wifi2", "up"); 
     
    141141  eval ("ifconfig", "wifi4", "up"); 
    142142  eval ("ifconfig", "wifi5", "up"); 
    143  
     143*/ 
    144144 
    145145/*  eval ("insmod", "mii"); 
  • src/router/services/sysinit/sysinit-supergerry.c

    r9124 r9146  
    116116  eval ("insmod", "ath_pci"); 
    117117 
    118   eval ("ifconfig", "wifi0", "up"); 
     118/*  eval ("ifconfig", "wifi0", "up"); 
    119119  eval ("ifconfig", "wifi1", "up"); 
    120120  eval ("ifconfig", "wifi2", "up"); 
     
    122122  eval ("ifconfig", "wifi4", "up"); 
    123123  eval ("ifconfig", "wifi5", "up"); 
    124  
     124*/ 
    125125 
    126126  // eval ("insmod", "ipv6"); 
  • src/router/services/sysinit/sysinit-whrag108.c

    r9124 r9146  
    212212  system ("echo 1 >/proc/sys/dev/wifi1/softled"); 
    213213 
    214   eval ("ifconfig", "wifi0", "up"); 
    215   eval ("ifconfig", "wifi1", "up"); 
     214//  eval ("ifconfig", "wifi0", "up"); 
     215//  eval ("ifconfig", "wifi1", "up"); 
    216216 
    217217 
  • src/router/services/sysinit/sysinit-wrt300nv2.c

    r9124 r9146  
    154154  // eval ("insmod", "ath_pci", "rfkill=0", "autocreate=none"); 
    155155 
    156   if (ifexists ("wifi0")) 
     156/*  if (ifexists ("wifi0")) 
    157157    eval ("ifconfig", "wifi0", "up"); 
    158158  if (ifexists ("wifi1")) 
     
    166166  if (ifexists ("wifi5")) 
    167167    eval ("ifconfig", "wifi5", "up"); 
    168  
     168*/ 
    169169 
    170170/* 
  • src/router/services/sysinit/sysinit-x86.c

    r9124 r9146  
    348348#endif 
    349349 
    350   eval ("ifconfig", "wifi0", "up"); 
     350/*  eval ("ifconfig", "wifi0", "up"); 
    351351  eval ("ifconfig", "wifi1", "up"); 
    352352  eval ("ifconfig", "wifi2", "up"); 
    353353  eval ("ifconfig", "wifi3", "up"); 
    354354  eval ("ifconfig", "wifi4", "up"); 
    355   eval ("ifconfig", "wifi5", "up"); 
     355  eval ("ifconfig", "wifi5", "up");*/ 
    356356#endif 
    357357 
Note: See TracChangeset for help on using the changeset viewer.