Changeset 11967


Ignore:
Timestamp:
04/22/09 00:47:50 (4 years ago)
Author:
BrainSlayer
Message:

optional serial fixes for gw2358 and gw2350

Location:
src/router
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/modules/upgrade.c

    r11772 r11967  
    174174    eval( "fischecksum" ); 
    175175#endif 
    176 #ifdef HAVE_MAKSAT 
     176/*#ifdef HAVE_MAKSAT 
    177177    if( nvram_match( "DD_BOARD2", "ADI Engineering Pronghorn Metro" ) ) 
    178178#else 
     
    183183        eval( "fischecksum" ); 
    184184    if( nvram_match( "DD_BOARD", "Netgear WG302v1" ) ) 
    185         eval( "fischecksum" ); 
     185*/       
     186eval( "fischecksum" ); 
    186187 
    187188    if( url ) 
  • src/router/libutils/utils.c

    r11898 r11967  
    543543        { 
    544544            setRouter( "Cambria GW2358-4" ); 
     545            insmod("8250_gw2358"); 
    545546            return ROUTER_BOARD_GATEWORX; 
    546547        } 
     
    548549        { 
    549550            setRouter( "Cambria GW2350" ); 
     551            insmod("8250_gw2350"); 
    550552            return ROUTER_BOARD_GATEWORX; 
    551553        } 
     
    26332635    return 0; 
    26342636#else 
    2635     int use_gpio = 0x0f; 
     2637    int use_gpio = 0x00f; 
    26362638    int gpio_value; 
    26372639    int enable; 
    26382640    int disable; 
    26392641 
    2640     int power_gpio = 0x0f; 
    2641     int diag_gpio = 0x0f; 
    2642     int dmz_gpio = 0x0f; 
    2643     int connected_gpio = 0x0f; 
    2644     int bridge_gpio = 0x0f; 
    2645     int vpn_gpio = 0x0f; 
    2646     int ses_gpio = 0x0f;        // use for SES1 (Linksys), AOSS (Buffalo) 
    2647     int ses2_gpio = 0x0f; 
    2648     int wlan_gpio = 0x0f;       // use this only if wlan led is not controlled by hardware! 
    2649     int usb_gpio = 0x0f; 
    2650     int sec0_gpio = 0x0f;       // security leds, wrt600n 
    2651     int sec1_gpio = 0x0f; 
     2642    int power_gpio = 0x00f; 
     2643    int diag_gpio = 0x00f; 
     2644    int dmz_gpio = 0x00f; 
     2645    int connected_gpio = 0x00f; 
     2646    int bridge_gpio = 0x00f; 
     2647    int vpn_gpio = 0x00f; 
     2648    int ses_gpio = 0x00f;       // use for SES1 (Linksys), AOSS (Buffalo) 
     2649    int ses2_gpio = 0x00f; 
     2650    int wlan_gpio = 0x00f;      // use this only if wlan led is not controlled by hardware! 
     2651    int usb_gpio = 0x00f; 
     2652    int sec0_gpio = 0x00f;      // security leds, wrt600n 
     2653    int sec1_gpio = 0x00f; 
    26522654    int v1func = 0; 
    26532655 
     
    26582660#ifndef HAVE_BUFFALO 
    26592661        case ROUTER_ALLNET01: 
    2660             connected_gpio = 0x10; 
     2662            connected_gpio = 0x100; 
    26612663            break; 
    26622664        case ROUTER_BOARD_WP54G: 
    2663             diag_gpio = 0x12; 
    2664             connected_gpio = 0x17; 
     2665            diag_gpio = 0x102; 
     2666            connected_gpio = 0x107; 
    26652667            break; 
    26662668        case ROUTER_BOARD_NP28G: 
    2667             diag_gpio = 0x12; 
    2668             connected_gpio = 0x16; 
     2669            diag_gpio = 0x102; 
     2670            connected_gpio = 0x106; 
    26692671            break; 
    26702672        case ROUTER_BOARD_GATEWORX: 
    26712673#ifdef HAVE_WG302V1 
    2672             diag_gpio = 0x14; 
    2673             wlan_gpio = 0x15; 
     2674            diag_gpio = 0x104; 
     2675            wlan_gpio = 0x105; 
    26742676#elif HAVE_WG302 
    2675             diag_gpio = 0x12; 
    2676             wlan_gpio = 0x14; 
     2677            diag_gpio = 0x102; 
     2678            wlan_gpio = 0x104; 
    26772679#else 
    2678             connected_gpio = 0x3; 
     2680        if (nvram_match("DD_BOARD","Cambria GW2350")) 
     2681            connected_gpio = 0x105; 
     2682        else if (nvram_match("DD_BOARD","Cambria GW2358-4")) 
     2683            connected_gpio = 0x119; 
     2684        else 
     2685            connected_gpio = 0x003; 
    26792686#endif 
    26802687            break; 
    26812688        case ROUTER_BOARD_GATEWORX_SWAP: 
    2682             connected_gpio = 0x4; 
     2689            connected_gpio = 0x004; 
    26832690            break; 
    26842691        case ROUTER_BOARD_STORM: 
    2685             connected_gpio = 0x5; 
    2686             diag_gpio = 0x3; 
     2692            connected_gpio = 0x005; 
     2693            diag_gpio = 0x003; 
    26872694            break; 
    26882695        case ROUTER_LINKSYS_WRH54G: 
    2689             diag_gpio = 0x11;   // power led blink / off to indicate factory 
     2696            diag_gpio = 0x101;  // power led blink / off to indicate factory 
    26902697            // defaults 
    26912698            break; 
     
    26932700        case ROUTER_WRT54G_V8: 
    26942701            power_gpio = 0x01; 
    2695             dmz_gpio = 0x17; 
    2696             connected_gpio = 0x13;      // ses orange 
    2697             ses_gpio = 0x12;    // ses white 
    2698             ses2_gpio = 0x13;   // ses orange 
     2702            dmz_gpio = 0x107; 
     2703            connected_gpio = 0x103;     // ses orange 
     2704            ses_gpio = 0x102;   // ses white 
     2705            ses2_gpio = 0x103;  // ses orange 
    26992706            break; 
    27002707        case ROUTER_WRT54G_V81: 
    2701             power_gpio = 0x11; 
    2702             dmz_gpio = 0x12; 
    2703             connected_gpio = 0x14;      // ses orange 
    2704             ses_gpio = 0x13;    // ses white 
    2705             ses2_gpio = 0x14;   // ses orange 
     2708            power_gpio = 0x101; 
     2709            dmz_gpio = 0x102; 
     2710            connected_gpio = 0x104;     // ses orange 
     2711            ses_gpio = 0x103;   // ses white 
     2712            ses2_gpio = 0x104;  // ses orange 
    27062713            break; 
    27072714        case ROUTER_WRT54G1X: 
    2708             connected_gpio = 0x13; 
     2715            connected_gpio = 0x103; 
    27092716            v1func = 1; 
    27102717            break; 
    27112718        case ROUTER_WRT350N: 
    2712             connected_gpio = 0x13; 
    2713             power_gpio = 0x01; 
    2714             ses2_gpio = 0x13;   // ses orange 
     2719            connected_gpio = 0x103; 
     2720            power_gpio = 0x001; 
     2721            ses2_gpio = 0x103;  // ses orange 
    27152722            // usb_gpio = 0x04;  
    27162723            break; 
    27172724        case ROUTER_WRT600N: 
    2718             power_gpio = 0x12; 
    2719             diag_gpio = 0x02; 
    2720             usb_gpio = 0x13; 
    2721             sec0_gpio = 0x19; 
    2722             sec1_gpio = 0x1b; 
     2725            power_gpio = 0x102; 
     2726            diag_gpio = 0x002; 
     2727            usb_gpio = 0x103; 
     2728            sec0_gpio = 0x109; 
     2729            sec1_gpio = 0x10b; 
    27232730            break; 
    27242731        case ROUTER_LINKSYS_WRT55AG: 
    2725             connected_gpio = 0x13; 
     2732            connected_gpio = 0x103; 
    27262733            break; 
    27272734        case ROUTER_DLINK_DIR330: 
    2728             diag_gpio = 0x16; 
    2729             connected_gpio = 0x14; 
     2735            diag_gpio = 0x106; 
     2736            connected_gpio = 0x104; 
    27302737            break; 
    27312738#endif 
    27322739        case ROUTER_BOARD_WHRG300N: 
    2733             diag_gpio = 0x17; 
    2734             connected_gpio = 0x19; 
    2735             ses_gpio = 0x1e; 
     2740            diag_gpio = 0x107; 
     2741            connected_gpio = 0x109; 
     2742            ses_gpio = 0x10e; 
    27362743            break; 
    27372744        case ROUTER_BUFFALO_WBR54G: 
    2738             diag_gpio = 0x17; 
     2745            diag_gpio = 0x107; 
    27392746            break; 
    27402747        case ROUTER_BUFFALO_WBR2G54S: 
    2741             diag_gpio = 0x01; 
    2742             ses_gpio = 0x06; 
     2748            diag_gpio = 0x001; 
     2749            ses_gpio = 0x006; 
    27432750            break; 
    27442751        case ROUTER_BUFFALO_WLA2G54C: 
    2745             diag_gpio = 0x14; 
    2746             ses_gpio = 0x13; 
     2752            diag_gpio = 0x104; 
     2753            ses_gpio = 0x103; 
    27472754            break; 
    27482755        case ROUTER_BUFFALO_WLAH_G54: 
    2749             diag_gpio = 0x17; 
    2750             ses_gpio = 0x16; 
     2756            diag_gpio = 0x107; 
     2757            ses_gpio = 0x106; 
    27512758            break; 
    27522759        case ROUTER_BUFFALO_WAPM_HP_AM54G54: 
    2753             diag_gpio = 0x17; 
    2754             ses_gpio = 0x11; 
     2760            diag_gpio = 0x107; 
     2761            ses_gpio = 0x101; 
    27552762            break; 
    27562763        case ROUTER_BOARD_WHRAG108: 
    2757             diag_gpio = 0x17; 
    2758             bridge_gpio = 0x14; 
    2759             ses_gpio = 0x10; 
     2764            diag_gpio = 0x107; 
     2765            bridge_gpio = 0x104; 
     2766            ses_gpio = 0x100; 
    27602767            break; 
    27612768        case ROUTER_BUFFALO_WHRG54S: 
    27622769        case ROUTER_BUFFALO_WLI_TX4_G54HP: 
    2763             diag_gpio = 0x17; 
    2764             bridge_gpio = 0x11; 
    2765             ses_gpio = 0x16; 
     2770            diag_gpio = 0x107; 
     2771            bridge_gpio = 0x101; 
     2772            ses_gpio = 0x106; 
    27662773            break; 
    27672774        case ROUTER_BUFFALO_WZRRSG54: 
    2768             diag_gpio = 0x17; 
    2769             vpn_gpio = 0x11; 
    2770             ses_gpio = 0x16; 
     2775            diag_gpio = 0x107; 
     2776            vpn_gpio = 0x101; 
     2777            ses_gpio = 0x106; 
    27712778            break; 
    27722779        case ROUTER_BUFFALO_WZRG300N: 
    2773             diag_gpio = 0x17; 
    2774             bridge_gpio = 0x11; 
     2780            diag_gpio = 0x107; 
     2781            bridge_gpio = 0x101; 
    27752782            break; 
    27762783        case ROUTER_BUFFALO_WZRG144NH: 
    2777             diag_gpio = 0x13; 
    2778             bridge_gpio = 0x11; 
    2779             ses_gpio = 0x12; 
     2784            diag_gpio = 0x103; 
     2785            bridge_gpio = 0x101; 
     2786            ses_gpio = 0x102; 
    27802787            break; 
    27812788#ifndef HAVE_BUFFALO 
    27822789#ifdef HAVE_DIR300 
    27832790        case ROUTER_BOARD_FONERA: 
    2784             diag_gpio = 0x03; 
    2785             bridge_gpio = 0x04; 
    2786             ses_gpio = 0x01; 
     2791            diag_gpio = 0x003; 
     2792            bridge_gpio = 0x004; 
     2793            ses_gpio = 0x001; 
    27872794            break; 
    27882795#endif 
    27892796#ifdef HAVE_BWRG1000 
    27902797        case ROUTER_BOARD_LS2: 
    2791             diag_gpio = 0x07; 
     2798            diag_gpio = 0x007; 
    27922799            break; 
    27932800#endif 
    27942801#ifdef HAVE_DIR400 
    27952802        case ROUTER_BOARD_FONERA2200: 
    2796             diag_gpio = 0x03; 
    2797             bridge_gpio = 0x04; 
    2798             ses_gpio = 0x01; 
     2803            diag_gpio = 0x003; 
     2804            bridge_gpio = 0x004; 
     2805            ses_gpio = 0x001; 
    27992806            break; 
    28002807#endif 
    28012808#ifdef HAVE_WRK54G 
    28022809        case ROUTER_BOARD_FONERA: 
    2803             diag_gpio = 0x17; 
    2804             dmz_gpio = 0x05; 
     2810            diag_gpio = 0x107; 
     2811            dmz_gpio = 0x005; 
    28052812            break; 
    28062813#endif 
    28072814        case ROUTER_BOARD_TW6600: 
    2808             diag_gpio = 0x17; 
    2809             bridge_gpio = 0x14; 
    2810             ses_gpio = 0x10; 
     2815            diag_gpio = 0x107; 
     2816            bridge_gpio = 0x104; 
     2817            ses_gpio = 0x100; 
    28112818            break; 
    28122819        case ROUTER_MOTOROLA: 
    2813             power_gpio = 0x01; 
    2814             diag_gpio = 0x11;   // power led blink / off to indicate factory 
     2820            power_gpio = 0x001; 
     2821            diag_gpio = 0x101;  // power led blink / off to indicate factory 
    28152822            // defaults 
    28162823            break; 
    28172824        case ROUTER_RT210W: 
    2818             power_gpio = 0x15; 
    2819             diag_gpio = 0x05;   // power led blink / off to indicate factory 
     2825            power_gpio = 0x105; 
     2826            diag_gpio = 0x005;  // power led blink / off to indicate factory 
    28202827            // defaults 
    2821             connected_gpio = 0x10; 
    2822             wlan_gpio = 0x13; 
     2828            connected_gpio = 0x100; 
     2829            wlan_gpio = 0x103; 
    28232830            break; 
    28242831        case ROUTER_RT480W: 
    28252832        case ROUTER_BELKIN_F5D7230_V2000: 
    28262833        case ROUTER_BELKIN_F5D7231: 
    2827             power_gpio = 0x15; 
    2828             diag_gpio = 0x05;   // power led blink / off to indicate factory 
     2834            power_gpio = 0x105; 
     2835            diag_gpio = 0x005;  // power led blink / off to indicate factory 
    28292836            // defaults 
    2830             connected_gpio = 0x10; 
     2837            connected_gpio = 0x100; 
    28312838            break; 
    28322839        case ROUTER_MICROSOFT_MN700: 
    2833             power_gpio = 0x06; 
    2834             diag_gpio = 0x16;   // power led blink / off to indicate factory 
     2840            power_gpio = 0x006; 
     2841            diag_gpio = 0x106;  // power led blink / off to indicate factory 
    28352842            // defaults 
    28362843            break; 
    28372844        case ROUTER_ASUS_WL500GD: 
    28382845        case ROUTER_ASUS_WL520GUGC: 
    2839             diag_gpio = 0x00;   // power led blink / off to indicate factory 
     2846            diag_gpio = 0x000;  // power led blink / off to indicate factory 
    28402847            // defaults 
    28412848            break; 
    28422849        case ROUTER_ASUS_WL500G_PRE: 
    2843             power_gpio = 0x11; 
    2844             diag_gpio = 0x01;   // power led blink / off to indicate factory 
     2850            power_gpio = 0x101; 
     2851            diag_gpio = 0x001;  // power led blink / off to indicate factory 
    28452852            // defaults 
    28462853            break; 
    28472854        case ROUTER_ASUS_WL550GE: 
    2848             power_gpio = 0x12; 
    2849             diag_gpio = 0x02;   // power led blink / off to indicate factory 
     2855            power_gpio = 0x102; 
     2856            diag_gpio = 0x002;  // power led blink / off to indicate factory 
    28502857            // defaults 
    28512858            break; 
    28522859        case ROUTER_WRT54G3G: 
    28532860        case ROUTER_WRTSL54GS: 
    2854             power_gpio = 0x01; 
    2855             dmz_gpio = 0x10; 
    2856             connected_gpio = 0x17;      // ses orange 
    2857             ses_gpio = 0x15;    // ses white 
    2858             ses2_gpio = 0x17;   // ses orange  
     2861            power_gpio = 0x001; 
     2862            dmz_gpio = 0x100; 
     2863            connected_gpio = 0x107;     // ses orange 
     2864            ses_gpio = 0x105;   // ses white 
     2865            ses2_gpio = 0x107;  // ses orange  
    28592866            break; 
    28602867        case ROUTER_MOTOROLA_WE800G: 
    28612868        case ROUTER_MOTOROLA_V1: 
    2862             diag_gpio = 0x13; 
    2863             wlan_gpio = 0x11; 
    2864             bridge_gpio = 0x15; 
     2869            diag_gpio = 0x103; 
     2870            wlan_gpio = 0x101; 
     2871            bridge_gpio = 0x105; 
    28652872            break; 
    28662873        case ROUTER_DELL_TRUEMOBILE_2300: 
    28672874        case ROUTER_DELL_TRUEMOBILE_2300_V2: 
    2868             power_gpio = 0x17; 
    2869             diag_gpio = 0x07;   // power led blink / off to indicate factory 
     2875            power_gpio = 0x107; 
     2876            diag_gpio = 0x007;  // power led blink / off to indicate factory 
    28702877            // defaults 
    2871             wlan_gpio = 0x16; 
     2878            wlan_gpio = 0x106; 
    28722879            break; 
    28732880        case ROUTER_NETGEAR_WNR834B: 
    2874             power_gpio = 0x14; 
    2875             diag_gpio = 0x15; 
    2876             wlan_gpio = 0x16; 
     2881            power_gpio = 0x104; 
     2882            diag_gpio = 0x105; 
     2883            wlan_gpio = 0x106; 
    28772884            break; 
    28782885        case ROUTER_SITECOM_WL105B: 
    2879             power_gpio = 0x03; 
    2880             diag_gpio = 0x13;   // power led blink / off to indicate factory 
     2886            power_gpio = 0x003; 
     2887            diag_gpio = 0x103;  // power led blink / off to indicate factory 
    28812888            // defaults 
    2882             wlan_gpio = 0x14; 
     2889            wlan_gpio = 0x104; 
    28832890            break; 
    28842891        case ROUTER_WRT150N: 
    28852892        case ROUTER_WRT300N: 
    2886             power_gpio = 0x01; 
    2887             diag_gpio = 0x11;   // power led blink / off to indicate fac.def. 
     2893            power_gpio = 0x001; 
     2894            diag_gpio = 0x101;  // power led blink / off to indicate fac.def. 
    28882895            break; 
    28892896        case ROUTER_WRT300NV11: 
    2890             ses_gpio = 0x15; 
     2897            ses_gpio = 0x105; 
    28912898            // diag_gpio = 0x11; //power led blink / off to indicate fac.def. 
    28922899            break; 
    28932900        case ROUTER_WRT310N: 
    2894             connected_gpio = 0x13; 
    2895             power_gpio = 0x01; 
    2896             diag_gpio = 0x11;   // power led blink / off to indicate fac.def. 
    2897             ses2_gpio = 0x13;   // ses orange 
     2901            connected_gpio = 0x103; 
     2902            power_gpio = 0x001; 
     2903            diag_gpio = 0x101;  // power led blink / off to indicate fac.def. 
     2904            ses2_gpio = 0x103;  // ses orange 
    28982905        case ROUTER_WRT160N: 
    2899             power_gpio = 0x01; 
    2900             diag_gpio = 0x11;   // power led blink / off to indicate fac.def.  
     2906            power_gpio = 0x001; 
     2907            diag_gpio = 0x101;  // power led blink / off to indicate fac.def.  
    29012908            //  
    2902             connected_gpio = 0x13;      // ses orange 
    2903             ses_gpio = 0x15;    // ses blue 
     2909            connected_gpio = 0x103;     // ses orange 
     2910            ses_gpio = 0x105;   // ses blue 
    29042911            break; 
    29052912        case ROUTER_ASUS_WL500G: 
    2906             power_gpio = 0x10; 
    2907             diag_gpio = 0x00;   // power led blink /off to indicate factory 
     2913            power_gpio = 0x100; 
     2914            diag_gpio = 0x000;  // power led blink /off to indicate factory 
    29082915            // defaults 
    29092916            break; 
    29102917        case ROUTER_ASUS_WL500W: 
    2911             power_gpio = 0x15; 
    2912             diag_gpio = 0x05;   // power led blink /off to indicate factory 
     2918            power_gpio = 0x105; 
     2919            diag_gpio = 0x005;  // power led blink /off to indicate factory 
    29132920            // defaults 
    29142921            break; 
    29152922        case ROUTER_LINKSYS_WTR54GS: 
    2916             diag_gpio = 0x01; 
     2923            diag_gpio = 0x001; 
    29172924            break; 
    29182925        case ROUTER_WAP54G_V1: 
    2919             diag_gpio = 0x13; 
    2920             wlan_gpio = 0x14;   // LINK led 
     2926            diag_gpio = 0x103; 
     2927            wlan_gpio = 0x104;  // LINK led 
    29212928            break; 
    29222929        case ROUTER_WAP54G_V3: 
    2923             ses_gpio = 0x1c; 
    2924             connected_gpio = 0x06; 
     2930            ses_gpio = 0x10c; 
     2931            connected_gpio = 0x006; 
    29252932            break; 
    29262933        case ROUTER_NETGEAR_WNR834BV2: 
    2927             power_gpio = 0x02; 
    2928             diag_gpio = 0x03;   // power led amber  
    2929             connected_gpio = 0x07;      // WAN led green  
     2934            power_gpio = 0x002; 
     2935            diag_gpio = 0x003;  // power led amber  
     2936            connected_gpio = 0x007;     // WAN led green  
    29302937            break; 
    29312938        case ROUTER_NETGEAR_WNDR3300: 
    2932             power_gpio = 0x05; 
    2933             diag_gpio = 0x15;   // power led blink /off to indicate factory defaults 
    2934             connected_gpio = 0x07;      // WAN led green  
     2939            power_gpio = 0x005; 
     2940            diag_gpio = 0x105;  // power led blink /off to indicate factory defaults 
     2941            connected_gpio = 0x007;     // WAN led green  
    29352942            break; 
    29362943        case ROUTER_ASKEY_RT220XD: 
    2937             wlan_gpio = 0x10; 
    2938             dmz_gpio = 0x11;    // not soldered  
     2944            wlan_gpio = 0x100; 
     2945            dmz_gpio = 0x101;   // not soldered  
    29392946            break; 
    29402947        case ROUTER_WRT610N: 
    2941             power_gpio = 0x01; 
    2942             connected_gpio = 0x13;      // ses amber 
    2943             ses_gpio = 0x19;    // ses blue 
    2944             usb_gpio = 0x10; 
     2948            power_gpio = 0x001; 
     2949            connected_gpio = 0x103;     // ses amber 
     2950            ses_gpio = 0x109;   // ses blue 
     2951            usb_gpio = 0x100; 
    29452952            break; 
    29462953        case ROUTER_USR_5461: 
    2947             usb_gpio = 0x01; 
     2954            usb_gpio = 0x001; 
    29482955            break; 
    29492956        case ROUTER_NETGEAR_WGR614L: 
    2950             // power_gpio = 0x17;       // don't use - resets router 
    2951             diag_gpio = 0x06; 
    2952             connected_gpio = 0x14; 
     2957            // power_gpio = 0x107;       // don't use - resets router 
     2958            diag_gpio = 0x006; 
     2959            connected_gpio = 0x104; 
    29532960            break; 
    29542961        case ROUTER_NETGEAR_WG602_V4: 
    2955             power_gpio = 0x11;  // trick: make lan led green for 100Mbps 
     2962            power_gpio = 0x101; // trick: make lan led green for 100Mbps 
    29562963            break; 
    29572964        case ROUTER_BELKIN_F5D7231_V2000: 
    2958             connected_gpio = 0x14; 
    2959             diag_gpio = 0x01;   // power led blink /off to indicate factory defaults 
     2965            connected_gpio = 0x104; 
     2966            diag_gpio = 0x001;  // power led blink /off to indicate factory defaults 
    29602967            break; 
    29612968 
     
    30093016            break; 
    30103017    } 
    3011     if( ( use_gpio & 0x0f ) != 0x0f ) 
    3012     { 
    3013         gpio_value = use_gpio & 0x0f; 
    3014         enable = ( use_gpio & 0x10 ) == 0 ? 1 : 0; 
    3015         disable = ( use_gpio & 0x10 ) == 0 ? 0 : 1; 
     3018    if( ( use_gpio & 0x0ff ) != 0x0ff ) 
     3019    { 
     3020        gpio_value = use_gpio & 0x0ff; 
     3021        enable = ( use_gpio & 0x100 ) == 0 ? 1 : 0; 
     3022        disable = ( use_gpio & 0x100 ) == 0 ? 0 : 1; 
    30163023        switch ( act ) 
    30173024        { 
  • src/router/services/sysinit/sysinit-gateworx.c

    r11909 r11967  
    6868#ifndef HAVE_NOP8670 
    6969 
    70 void checkupdate( void ) 
     70/*void checkupdate( void ) 
    7171{ 
    7272    int res, res2 = 0; 
     
    136136    } 
    137137} 
    138  
     138*/ 
    139139#endif 
    140140#endif 
     
    216216#ifndef HAVE_TONZE 
    217217#ifndef HAVE_NOP8670 
    218     checkupdate(  ); 
     218//    checkupdate(  ); 
    219219#endif 
    220220#endif 
Note: See TracChangeset for help on using the changeset viewer.