Changeset 17273


Ignore:
Timestamp:
07/05/11 15:30:40 (23 months ago)
Author:
BrainSlayer
Message:

more unifi ap code

Location:
src/router
Files:
4 edited

Legend:

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

    r17271 r17273  
    10431043                {"Ubiquiti 3G Station Outdoor", 0xe6c2, "3", "3", ROUTER_BOARD_BS2M, 0},        // 
    10441044                {"Ubiquiti WispStation M5", 0xe2a5, "3", "3", ROUTER_BOARD_BS5M, 0},    // 
    1045                 {"Ubiquiti UniFi AP", 0xe502, "3", "3", ROUTER_BOARD_BS2M, 0},  // 
     1045                {"Ubiquiti UniFi AP", 0xe502, "3", "3", ROUTER_BOARD_UNIFI, 0}, // 
    10461046                {NULL, 0, NULL, NULL, 0},       // 
    10471047        }; 
     
    32193219        { 
    32203220#ifndef HAVE_BUFFALO 
     3221        case ROUTER_BOARD_UNIFI: 
     3222            diag_gpio=0x001; 
     3223        break; 
    32213224        case ROUTER_BOARD_DANUBE: 
    32223225#ifdef HAVE_WMBR_G300NH 
  • src/router/services/networking/network.c

    r17243 r17273  
    11681168        switch (brand) { 
    11691169        case ROUTER_BOARD_BS2M: 
     1170        case ROUTER_BOARD_UNIFI: 
    11701171        case ROUTER_BOARD_BS5M: 
    11711172        case ROUTER_BOARD_R2M: 
  • src/router/services/sysinit/sysinit-ubntm.c

    r15714 r17273  
    9494        detect_wireless_devices(); 
    9595 
     96        int brand = getRouterBrand(); 
     97        if (brand==ROUTER_BOARD_UNIFI) 
     98        { 
     99        system2("echo 0 >/proc/sys/dev/wifi0/ledpin"); 
     100        system2("echo 1 >/proc/sys/dev/wifi0/softled"); 
     101        }else{ 
    96102        system2("echo 0 >/proc/sys/dev/wifi0/softled"); 
     103        } 
    97104 
    98105        /* ubnt has a hardware fault as it seems, so the power bridge feature can break the hardware which causes endless reboot loops. we keep it disabled here. devices which are already broken will work again then */       
  • src/router/shared/utils.h

    r17268 r17273  
    546546#define ROUTER_NETCORE_NW715P 0xad0f 
    547547 
     548#define ROUTER_BOARD_UNIFI 0xac1c       //bullet 2m 
    548549 
    549550 
Note: See TracChangeset for help on using the changeset viewer.