Changeset 10603


Ignore:
Timestamp:
10/24/08 23:56:25 (5 years ago)
Author:
BrainSlayer
Message:

disable wan if you switch back from station into ap mode, to prevent inaccessible devices (with one ethernet port)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/validate/webs.c

    r10511 r10603  
    26212621    copytonv( wp, "%s_ap_isolate", prefix ); 
    26222622    sprintf( n, "%s_mode", prefix ); 
     2623    if (nvram_match(n,"sta")) 
     2624        { 
     2625        char *wl = websGetVar( wp, n, NULL ); 
     2626        if (!strcmp(wl,"ap") || !strcmp(wl,"wdsap") || !strcmp(wl,"infra") || !strcmp(wl,"wdssta")) 
     2627            { 
     2628            nvram_set("wan_proto","disabled"); 
     2629            } 
     2630        } 
    26232631    copytonv( wp, n ); 
    26242632    if( !strcmp( prefix, "wl0" ) || !strcmp( prefix, "wl1" ) ) 
Note: See TracChangeset for help on using the changeset viewer.