Commits on May 3, 2017
  1. ramips: enable ramdisk for mt7621

    aparcar authored and dangowrt committed May 3, 2017
    Fixes #758
    Signed-off-by: Paul Spooren <>
  2. ipq806x: fix EA8500 switch configuration

    jow- committed May 3, 2017
    Do not assign the CPU port twice, this confuses LuCI and possible other
    programs relying on topology information in board.json.
    Ref: openwrt/luci#1086
    Signed-off-by: Jo-Philipp Wich <>
  3. base-files: implement ucidef_set_hostname(), ucidef_set_ntpserver()

    jow- committed May 3, 2017
    Commit 2036ae4 (base-files: support hostname and ntp servers through board.d)
    was supposed to implement these procedures but lacked the required changes
    Add the missing procedures now to fix config generation on targets relying
    on hostname or NTP server presetting.
    Fixes FS#754.
    Reported-by: Cristian Morales Vega <>
    Signed-off-by: Jo-Philipp Wich <>
Commits on May 2, 2017
  1. mac80211: rt2800: fix mt7620 E2 channel registers

    psyborg55 authored and jow- committed Apr 14, 2017
    update RF register 47 and 54 values according to vendor driver
    Signed-off-by: Tomislav Požega <>
    Signed-off-by: Daniel Golle <>
    [ moved changes into a separate patch]
  2. mac80211: rt2800: fix mt7620 vco calibration registers

    psyborg55 authored and jow- committed Apr 16, 2017
    Use register values from init LNA function instead of the ones from
    restore LNA function. Apply register values based on rx path
    Signed-off-by: Tomislav Požega <>
    Signed-off-by: Daniel Golle <>
    [ moved changes into a separate patch]
  3. mac80211: rt2x00: fix MT7620 LNA gain and VCO-after-ALC

    dangowrt authored and jow- committed Apr 17, 2017
    This should fix issues with bad RX as well as AP not coming up and/or
    scanning failing.
    Signed-off-by: Daniel Golle <>
  4. mac80211: rt2x00: import upstream changes and rebase our patches

    dangowrt authored and jow- committed Mar 30, 2017
    Some of our local patches have been accepted upstream. And there are
    some more relevant changes (mostly for rt2800usb). Import them and
    rebase our remaining local patches on top.
    Signed-off-by: Daniel Golle <>
  5. rt2x00: mt7620: make fixes requested upstream

    dangowrt authored and jow- committed Mar 11, 2017
    Introduce RT6352 instead of matching against RF7620.
    Clean up channel setting rfvals.
    Port bandwidth filter calibration.
    Signed-off-by: Daniel Golle <>
  6. rt2x00: mt7620: yet another beauty session

    dangowrt authored and jow- committed Feb 13, 2017
    So here is another round of improvements for MT7620 WiFi.
    This commit fixes a few significant issues related to TX_PWR_CFG_x and
    TX_ALC and also makes the code more readable by adding register
    descriptions for things added for MT7620 and use the usual bit-field
    access macros and the now defined macros instead of plain bit-ops and
    magic numbers.
    Properly describe EEPROM_TARGET_POWER at word 0x68 (== byte 0xD0) and
    thereby fix internal TXALC which would otherwise just read
    out-of-bounds of the EEPROM map.
    Split-out tx-power/ALC related stuff into an additional function.
    Fix VCO calibration, it was carried out properly in the channel
    switching but incomplete in the actual VCO calibration function.
    Also there is no need to trigger VCO calibration in channel switching,
    the VCO calibration function is already being called at this point.
    Remove it from channel switching function to avoid redundant code.
    The TX power calibration differs significantly from all other
    Mediatek/Ralink chips: They finally allow 0.5dB steps stored as 8-bit
    values for (almost) each bitrate -- and promptly ran out of space and
    for some reason didn't want to change the EEPROM layout. The hence
    opted for a scheme of sharing values for some adjecent bitrates and
    a highly over-complicated (or obfuscated?) way to populate the
    TX_PWR_CFG_x registers with the values stored in the EEPROM.
    The code here now looks much less complicated than what you see in the
    vendor's driver, however, it does the exact same thing:
    bGpwrdeltaMinus is a constant and always TRUE, hence half of the
    code was dead. Gpwrdelta is always 0 (rather than using the value read
    from the EEPROM). What remains is some very grotesque effort to avoid
    0x20, probably some hardware bug related to some misunderstanding of
    what a singed 8-bit value is (imagine: if it was a signed 6-bit value
    then someone could believe that 0x20 == 0x0). And then they didn't
    clean it up once they later on anandonned that whole story of having a
    constant offset for 40 MHz channels and just set the offset to be
    constant 0 -- there is no effort for avoiding 0x20 for the 20 MHz
    values stored in the EEPROM, hence that's probably just a forbidden
    value in the EEPROM specs and won't appear anyway...
    Anyway, the whole thing felt like solving some college math test
    where in the end everything cancels out and the result equals 0 ;)
    To make sure that channel bandwidth power compensation really doesn't
    need to be taken care of, output a warning when the corresponding
    value stored in the EEPROM is non-zero.
    Also there is no apparent reason to refrain from initializing RFCSR
    register 13, it doesn't fail what-so-ever.
    Signed-off-by: Daniel Golle <>
  7. mac80211: add rt2x00 debug symbols to PKG_CONFIG_DEPENDS

    KanjiMonster authored and jow- committed Apr 12, 2017
    Chaning these symbols require a recompilation of the modules, so make the
    system aware of it.
    Signed-off-by: Jonas Gorski <>
  8. ath9k: fix power limits on init

    nbd168 authored and jow- committed Mar 22, 2017
    The tx power applied by set_txpower is limited by the CTL (conformance
    test limit) entries in the EEPROM. These can change based on the user
    configured regulatory domain.
    Depending on the EEPROM data this can cause the tx power to become too
    limited, if the original regdomain CTLs impose lowr limits than the CTLs
    of the user configured regdomain.
    To fix this issue, set the initial channel limits without any CTL
    restrictions and only apply the CTL at run time when setting the channel
    and the real tx power.
    Signed-off-by: Felix Fietkau <>
  9. ath: do not apply broken power limits with ATH_USER_REGD

    nbd168 authored and jow- committed Mar 22, 2017
    If a device uses the default EEPROM code, typically only the main CTLs
    are valid, and they do not apply properly when switching to a different
    regulatory domain. If the regdomain deviates from the EEPROM one, force
    the world roaming regdomain to ensure that power limits are sane
    Signed-off-by: Felix Fietkau <>
  10. odhcpd: update to version 2017-04-28 (FS#595)

    dedeckeh committed Apr 28, 2017
    9268ca6 ndp: don't trigger IPv6 ping when neighbor entry is invalid
    2b3355f ndp: fix adding proxy neighbor entries
    7dff5b4 ndp: fix wrong interface name in syslog message
    a54afb5 dhcpv6-ia: Fix segfault when writing DHCPv4 leases in state file
    c0e9dbf ubus: don't segfault when there're no leases
    Signed-off-by: Hans Dedecker <>
  11. odhcpd: update to version 2017-04-21

    dedeckeh committed Apr 24, 2017
    570069d ubus: rework dumping IPv6 and IPv4 leases
    4e579c4 dhcpv6-ia: simplify logic to write statefile and dhcpv6 logging
    Signed-off-by: Hans Dedecker <>
  12. build: fix symlinked .config handling

    rsa9000 authored and jow- committed Apr 20, 2017
    When running "make menuconfig" with symlinked .config (e.g. to
    env/.config) it renames symlink to .config.old, creates new .config file
    and writes updated configuration here.
    This breaks the desired workflow when changes in the configuration could
    be checked using "scripts/env diff" and commited with
    "scripts/env save". Since the env/.config file is not updated.
    Fix this issue by exporting KCONFIG_OVERWRITECONFIG=1, which forces
    mconf to overwrite the .config content, instead of renaming it and
    creating a new file. This variable is set only if .config is a symlink,
    otherwise the variable is not exported and the old behaviour is
    Signed-off-by: Sergey Ryazanov <>
Commits on Apr 28, 2017
  1. ramips: WN3000RPv3: do not setup switch

    f00b4r0 authored and jow- committed Feb 12, 2017
    The WN3000RPv3 is a repeater with a single ethernet port. Setting up the
    switch, even to disable it, is unnecessary and possibly confusing.
    Configure LAN as eth0 instead.
    Signed-off-by: Thibaut VARENE <>
  2. brcm63xx: Add Observa VH4032N support

    danitool authored and jow- committed Dec 3, 2016
    Add support for the Observa Telecom VH4032N router.
    This is another BCM6368 router, 128 MB RAM, 32MB flash and 3 USB
    host ports.
    The wifi chip is an onboard Broadcom BCM43222.
    Signed-off-by: Daniel Gonzalez Cabanelas <>
    [jonas.gorski: use gpio-hog instead of abusing ephy-reset]
    Signed-off-by: Jonas Gorski <>
  3. cns3xxx: use proper macro's for ID handling

    xback authored and jow- committed Feb 6, 2017
    Compiled & tested on cns3xxx
    Signed-off-by: Koen Vandeputte <>
  4. ramips: add support for Sanlinking D240

    kristrev authored and jow- committed Feb 4, 2017
    The Sanlinking Technologies D240
    ( is basically the same
    device as the ZBT WE826, so adding support for it in LEDE is straight forward.
    The differences is that the D240 has two mini-PCIe slots (instead of one), blue
    LEDs and supports PoE.
    * CPU: MT7620A
    * 1x 10/100Mbps POE (802.3af/802.3at) Ethernet, 4x 10/100Mbps.
    * 16 MB Flash.
    * 128 MB RAM.
    * 1x USB 2.0 port.
    * 2x mini-PCIe slots.
    * 2x SIM slots.
    * 1x 2.4Ghz WIFI.
    * 1x button.
    Wifi, USB, switch and both mini-PCIe slots are working. I have not been able to
    test the SD card reader.
    The device comes pre-installed with an older version of OpenWRT, including Luci.
    In order to install LEDE, you need to follow the existing procedure for updating
    OpenWRT/LEDE using Luci. I.e., you need to access the UI and update the firmware
    using the sysupgrade-image. Remember to select that you do not want to keep
    existing settings. The default router address is and
    username/password admin/root (at least on my devices).
    If you brick the device, the procedure for recovery is the same as for the
    WE826. Please see the wiki page for that device for instructions.
    Signed-off-by: Kristian Evensen <>
  5. ar71xx: select ATH79_NVRAM only by boards actually use it

    pepe2k authored and jow- committed Jan 27, 2017
    Signed-off-by: Piotr Dymacz <>
  6. ramips: fix Sercomm NA930 compatible string

    mkresin authored and jow- committed Feb 2, 2017
    The Sercomm NA930 is not a mt7620a evaluation board and shouldn't use
    the eval board compatible string.
    Signed-off-by: Mathias Kresin <>
  7. ramips: remove Planex CS-QR10 sound device tree node

    mkresin authored and jow- committed Feb 2, 2017
    The comptible string is neither added by any LEDE patch nor exists in
    in the kernel. Drop the sound node which was obviously added
    accidentally with 9195d8d ("ramips: DTS rework").
    Signed-off-by: Mathias Kresin <>
  8. ramips: cleanup SPI flash device tree properties usage

    mkresin authored and jow- committed Feb 2, 2017
    Use only the jedec,spi-nor compatible string. Everything else either
    never worked or is only support to keep compatibility.
    Remove the linux,modalias property. It is obsolete since kernel 4.4.
    Signed-off-by: Mathias Kresin <>
  9. ramips: remove DT pcie nodes for GL-MT300A/N

    nbd168 authored and jow- committed Feb 1, 2017
    These devices don't have a secondary wifi chip
    Signed-off-by: Felix Fietkau <>
  10. rpcd: Explicitly link with lcrypt

    ffainelli authored and jow- committed Jan 1, 2017
    Fixes build issues with some toolchains that don't add lcrypt in the default
    search paths:
    CMakeFiles/rpcd.dir/session.c.o: In function `rpc_login_test_password':
    build_dir/target-mipsel-linux-gnu/rpcd-2016-12-03-0577cfc1/session.c:823: undefined reference to `crypt'
    collect2: error: ld returned 1 exit status
    Signed-off-by: Florian Fainelli <>
  11. ramips: ZyXEL Keenetic Omni/Omni2: export gpio usb power

    13hakta authored and jow- committed Jan 20, 2017
    Export gpio usb to allow power management of USB port.
    Signed-off-by: Vitaly Chekryzhev <>
  12. ramips: ZyXEL Keenetic Viva: align factory images

    13hakta authored and jow- committed Jan 20, 2017
    ZyXEL web-flasher requires squashfs to be aligned to 64kb.
    Signed-off-by: Vitaly Chekryzhev <>
  13. ramips: ZyXEL Keenetic Viva: export gpio usb power

    13hakta authored and jow- committed Jan 3, 2017
    Export gpio usb to allow power management of USB port.
    Signed-off-by: Vitaly Chekryzhev <>
  14. ramips: add ip17xx support to WLI-TX4-AG300N

    ryahp authored and jow- committed Jan 26, 2017
    ramips/rt288x WLI-TX4-AG300N was missing support for its 100Mbit switch which
    should be included by default.
    Signed-off-by: Yo Abe <>
    [Jo-Philipp Wich: picked from OpenWrt PR#359, rewrap commit msg, fix Sob]
    Signed-off-by: Jo-Philipp Wich <>
  15. ramips: fix EX2700 wireless mac

    jclehner authored and jow- committed Jan 25, 2017
    On some EX2700 devices, the MAC address from the eeprom data differs
    from the actual MAC address. Fix that, and cleanup the DTS file
    while we're at it.
    Signed-off-by: Joseph C. Lehner <>
  16. ramips: ZyXEL Keenetic series update wan mac

    13hakta authored and jow- committed Jan 5, 2017
    Signed-off-by: Vitaly Chekryzhev <>
  17. ramips: ZyXEL Keenetic Omni align factory images

    13hakta authored and jow- committed Jan 5, 2017
    ZyXEL web-flasher requires squashfs to be aligned to 64kb.
    Signed-off-by: Vitaly Chekryzhev <>
  18. ramips: correct keenetic-series switch index

    13hakta authored and jow- committed Jan 1, 2017
    Fix switch name typo
    Signed-off-by: Vitaly Chekryzhev <>
  19. ramips: add support for Netgear WN3000RPv3

    f00b4r0 authored and jow- committed Jan 18, 2017
    This patch adds support for the Netgear WN3000RPv3
    - SoC: MediaTek MT7620A (580MHz, ramips)
    - RAM: 32MB DDR
    - Storage: 8MB NOR SPI flash
    - Wireless: builtin MT7620A, 2x2:2 with u.FL connectors
    - Ethernet: 1x100M
    - Serial: JP1 header, 57600-8N1
    - Stock firmware based on OpenWRT Kamikaze
    Like the EX2700, the bootloader expects a secondary image signature,
    This is why the same fakeroot image is used for the WN3000
    Signed-off-by: Thibaut VARENE <>
  20. ramips: fix mac address of miwifi-mini

    BangLang Huang authored and jow- committed Jan 18, 2017
    For the miwifi-mini, the offset of ethernet mac should be 0x28
    which you can easyily dump from 'Factory' partition.
    Signed-off-by: BangLang Huang <>