Changeset 31360


Ignore:
Timestamp:
Feb 13, 2017, 11:59:45 AM (5 months ago)
Author:
brainslayer
Message:

some 802.11ad code

Location:
src/router
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/router/libutils/mac80211info.c

    r31356 r31360  
    11101110}
    11111111
     1112
     1113
     1114static struct wifi_channels ghz60channels[] = {
     1115        {.channel = 1,.freq = 58320,.max_eirp = 40, .hw_eirp = 40},
     1116        {.channel = 2,.freq = 60480,.max_eirp = 40, .hw_eirp = 40},
     1117        {.channel = 3,.freq = 62640,.max_eirp = 40, .hw_eirp = 40},
     1118        {.channel = -1,.freq = -1,.max_eirp = -1, .hw_eirp = -1},
     1119};
     1120
    11121121struct wifi_channels *mac80211_get_channels(char *interface, char *country, int max_bandwidth_khz, unsigned char checkband)
    11131122{
     
    11271136        int rrdcount = 0;
    11281137        int super = 0;
     1138        if (has_ad(interface)) {
     1139                return ghz60channels;
     1140        }
    11291141        phy = mac80211_get_phyidx_by_vifname(interface);
    11301142        if (phy == -1)
  • src/router/libutils/utils.c

    r31356 r31360  
    75167516{
    75177517        // get legacy interface count
    7518         return devicecountbydriver(prefix, "wil62102");
     7518        return devicecountbydriver(prefix, "wil6210");
    75197519}
    75207520
  • src/router/services/Makefile

    r31316 r31360  
    189189ATH9KCFLAGS += -DHAVE_MVEBU
    190190endif
     191ifeq ($(CONFIG_WIL6210),y)
     192  CFLAGS_EXTRA += -DHAVE_WIL6210
     193  ATH9KCFLAGS += -DHAVE_WIL6210
     194endif
     195
    191196ifeq ($(CONFIG_IPQ806X),y)
    192197CFLAGS_EXTRA += -DHAVE_IPQ806X
  • src/router/services/sysinit/sysinit-alpine.c

    r31348 r31360  
    256256        eval("/sbin/vconfig", "add", "eth2", "2");
    257257
     258        set_smp_affinity(249, 3);
     259        set_smp_affinity(250, 2);
     260
    258261        /*
    259262           ","*","Set","a","sane","date","
  • src/router/shared/utils.h

    r31289 r31360  
    10641064#define is_ath5k(prefix) 0
    10651065#endif
     1066#ifdef HAVE_WIL6210
     1067int is_wil6210(const char *prefix);
     1068#else
     1069#define is_wil6210(prefix) 0
     1070#endif
     1071
    10661072#ifdef HAVE_ATH9K
    10671073extern int is_ath9k(const char *prefix);
Note: See TracChangeset for help on using the changeset viewer.