Changeset 31362


Ignore:
Timestamp:
Feb 13, 2017, 12:10:45 PM (8 days ago)
Author:
brainslayer
Message:

some 802.11ad code

Location:
src/router
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/visuals/dd-wrt.c

    r31357 r31362  
    18601860                websWrite(wp, "document.write(\"<option value=\\\"ac-only\\\" %s>\" + wl_basic.ac + \"</option>\");\n", nvram_match(wl_net_mode, "ac-only") ? "selected=\\\"selected\\\"" : "");
    18611861        }
     1862        if (has_ad(prefix)) {
     1863                websWrite(wp, "document.write(\"<option value=\\\"ad-only\\\" %s>\" + wl_basic.ad + \"</option>\");\n", nvram_match(wl_net_mode, "ad-only") ? "selected=\\\"selected\\\"" : "");
     1864        }
    18621865#else
    18631866#if HAVE_WHRAG108
     
    18891892                }
    18901893#endif
     1894        if (has_ad(prefix)) {
     1895                websWrite(wp, "document.write(\"<option value=\\\"ad-only\\\" %s>\" + wl_basic.ad + \"</option>\");\n", nvram_match(wl_net_mode, "ad-only") ? "selected=\\\"selected\\\"" : "");
     1896        }
    18911897        }
    18921898#endif
  • src/router/httpd/visuals/ejs.c

    r31207 r31362  
    23932393        if (nvram_match(mode, "ac-only"))
    23942394                websWrite(wp, "Capture(wl_basic.ac)");
     2395        if (nvram_match(mode, "ad-only"))
     2396                websWrite(wp, "Capture(wl_basic.ad)");
    23952397        if (nvram_match(mode, "acn-mixed"))
    23962398                websWrite(wp, "Capture(wl_basic.acn)");
  • src/router/libutils/mac80211info.c

    r31360 r31362  
    708708        int devnum;
    709709        sscanf(prefix, "ath%d", &devnum);
     710        if (has_ad(prefix))
     711                return 0;
    710712#ifdef HAVE_ATH9K
    711713        if (is_ath9k(prefix))
  • src/router/services/networking/madwifi_ath9k.c

    r31256 r31362  
    668668        if (chan)
    669669                free(chan);
    670         if (freq < 4000) {
     670        if (has_ad(prefix) && !strcmp(netmode, "ad-only")) {
     671                        fprintf(fp, "hw_mode=ad\n");
     672        } else if (freq < 4000) {
    671673                if (!strcmp(netmode, "b-only")) {
    672674                        fprintf(fp, "hw_mode=b\n");
Note: See TracChangeset for help on using the changeset viewer.