Changeset 19007


Ignore:
Timestamp:
04/12/12 02:19:28 (14 months ago)
Author:
BrainSlayer
Message:

for future

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/visuals/wireless_broadcom.c

    r13630 r19007  
    198198                        || nvram_nmatch("n5-only", "%s_net_mode", prefix) 
    199199                        || nvram_nmatch("ng-only", "%s_net_mode", prefix)) 
    200                     && (nvram_nmatch("40", "%s_nbw", prefix)) 
    201200                    && (nvram_nmatch("ap", "%s_mode", prefix) 
    202201                        || nvram_nmatch("wdsap", "%s_mode", prefix) 
    203202                        || nvram_nmatch("infra", "%s_mode", prefix))) { 
    204                         websWrite(wp, "%d + ", 
    205                                   nvram_nmatch("upper", "%s_nctrlsb", 
    206                                                prefix) ? ci.hw_channel + 
    207                                   2 : ci.hw_channel - 2); 
     203                        if (nvram_nmatch("40", "%s_nbw", prefix)) { 
     204                                websWrite(wp, "%d + ", 
     205                                          nvram_nmatch("upper", "%s_nctrlsb", 
     206                                                       prefix) ? ci.hw_channel + 
     207                                          2 : ci.hw_channel - 2); 
     208                        } 
     209                        if (nvram_nmatch("80", "%s_nbw", prefix)) { 
     210                                int channel = ci.hw_channel - 8 + 2; 
     211                                if (nvram_nmatch("ll", "%s_nctrlsb", prefix)) 
     212                                        websWrite(wp, "%d + ", channel); 
     213                                if (nvram_nmatch("lu", "%s_nctrlsb", prefix)) 
     214                                        websWrite(wp, "%d + ", channel + 4); 
     215                                if (nvram_nmatch("ul", "%s_nctrlsb", prefix)) 
     216                                        websWrite(wp, "%d + ", channel + 8); 
     217                                if (nvram_nmatch("uu", "%s_nctrlsb", prefix)) 
     218                                        websWrite(wp, "%d + ", channel + 12); 
     219 
     220                        } 
    208221                } 
    209222                websWrite(wp, "%d", ci.hw_channel); 
Note: See TracChangeset for help on using the changeset viewer.