Changeset 8994


Ignore:
Timestamp:
02/11/08 00:55:55 (5 years ago)
Author:
BrainSlayer
Message:

okay final solution, but driver modified as well

Location:
src/router/wlconf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/router/wlconf/wlconf.c

    r8993 r8994  
    744744        if (wl_ap_build) { 
    745745                /* Enable MSSID mode if appropriate */ 
     746                WL_IOVAR_SETINT(name, "mssid", (bclist->count > 1)); 
    746747                if (!ure_enab) { 
    747                 WL_IOVAR_SETINT(name, "mssid", (bclist->count > 1)); 
    748748                WL_IOVAR_SETINT(name, "mbss", (bclist->count > 1)); //compatiblitiy with newer drivers 
     749                }else{ 
     750                WL_IOVAR_SETINT(name, "mbss", 0); //compatiblitiy with newer drivers 
     751                 
    749752                } 
    750753                /* 
     
    764767        } 
    765768cprintf("set local addr %s\n",name); 
    766         if (nvram_get("il0macaddr")!=NULL) 
    767             { 
    768             ether_atoe(nvram_safe_get("il0macaddr"),vif_addr); 
    769             } 
    770769        if (!ure_enab) { 
     770//      if (nvram_get("il0macaddr")!=NULL) 
     771//          { 
     772//          ether_atoe(nvram_safe_get("il0macaddr"),vif_addr); 
     773//          } 
    771774                /* set local bit for our MBSS vif base */ 
    772775                ETHER_SET_LOCALADDR(vif_addr); 
    773                 vif_addr[5] +=1; 
    774776                /* construct and set other wlX.Y_hwaddr */ 
    775777                for (i = 1; i < max_no_vifs; i++) { 
     
    777779                        addr = nvram_safe_get(tmp); 
    778780                        //if (!strcmp(addr, "")) { 
    779                                 vif_addr[5] = (vif_addr[5] & ~(max_no_vifs-1)) 
    780                                         | ((max_no_vifs-1) & (vif_addr[5]+1)); 
     781                                vif_addr[5]++; 
    781782 
    782783                                nvram_set(tmp, ether_etoa((uchar *)vif_addr, 
Note: See TracChangeset for help on using the changeset viewer.